Re: Proposal for contrib feature (DictionaryField in models)

2009-08-11 Thread Russell Keith-Magee
On Wed, Aug 12, 2009 at 9:02 AM, Jerome Leclanche wrote: > Might be slightly off-topic, but, if that's the main criterion, are we ever > going to include django-tagging in contrib? "Ever" is a very long time. I wouldn't be surprised if _eventually_ django-tagging is added to django.contrib. It is

Re: Proposal for contrib feature (DictionaryField in models)

2009-08-11 Thread Jerome Leclanche
Might be slightly off-topic, but, if that's the main criterion, are we ever going to include django-tagging in contrib? J. Leclanche / Adys On Wed, Aug 12, 2009 at 3:20 AM, Russell Keith-Magee wrote: > > Regardless of my opinion, this is a feature that can happily live > external to the Django c

Re: Proposal for contrib feature (DictionaryField in models)

2009-08-11 Thread corn13r...@gmail.com
I would like to see the code for this. I have been waiting for something like it. TIA -- Sent from my Palm Pre Mark Ferrer wrote: Hi everyone, This is my first time here, and I've been holding on to some code for a custom model field type for a little while now. I call it a DictionaryField and

Re: Proposal for contrib feature (DictionaryField in models)

2009-08-11 Thread Russell Keith-Magee
On Wed, Aug 12, 2009 at 3:11 AM, Mark Ferrer wrote: > Hi everyone, > This is my first time here, and I've been holding on to some code for a > custom model field type for a little while now. I call it a DictionaryField > and it takes a Python dictionary object and stores it in a database as a > te

Re: Proposal for contrib feature (DictionaryField in models)

2009-08-11 Thread Dave Jeffery
On Tue, Aug 11, 2009 at 11:58 PM, Mark Ferrer wrote: > > You're right. I forgot about JSON. I guess it can be encoded and > stored as a JSON string and then decoded afterward. > See django-jsonfield: http://github.com/bradjasper/django-jsonfield/tree/master Personally I use JSONField often and I

Re: Proposal for contrib feature (DictionaryField in models)

2009-08-11 Thread Mark Ferrer
You're right. I forgot about JSON. I guess it can be encoded and stored as a JSON string and then decoded afterward. On Aug 11, 3:19 pm, Javier Guerra wrote: > On Tue, Aug 11, 2009 at 2:11 PM, Mark Ferrer wrote: > > I call it a DictionaryField and it takes a Python dictionary object and > > stor

Re: Proposal for contrib feature (DictionaryField in models)

2009-08-11 Thread Javier Guerra
On Tue, Aug 11, 2009 at 2:11 PM, Mark Ferrer wrote: > I call it a DictionaryField and it takes a Python dictionary object and > stores it in a database as a text field i usually just encode it as JSON. not as dense; but more universal syntax, so you get faster decoders in every language -- Jav

Proposal for contrib feature (DictionaryField in models)

2009-08-11 Thread Mark Ferrer
Hi everyone, This is my first time here, and I've been holding on to some code for a custom model field type for a little while now. I call it a DictionaryField and it takes a Python dictionary object and stores it in a database as a text field. The default storage format is "key1=foo;key2=bar". Th