[Zope] python script, from string to dictionary.
Chris Withers
chris at simplistix.co.uk
Fri Feb 8 06:13:56 EST 2008
sguglia at arrows.it wrote:
> I 'serialized' mysql data in order to flat one-to-many related tables. the
> resulting dictionaries (one per record) are i.e. as:
>
> mydict [ brandcode ] =
> {
> 'itemcode': 'some value',
> 'itemsizeavail':
> [
> ('XL',),
> ('XXL',),
> ('S',)
> ],
> 'keythree': '',
> 'keyfour': [ ],
> ...
> }
>
> now then I can index the whole content in order to get it searchable from the
> Plone quick search form.
This is more than a little insane...
> mydict [ ] records are then saved as strings in a DB table records.
?!
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope
mailing list