[storm] Storm with MySQL Set()
Andre Dalle
adalle at ncf.ca
Tue Oct 18 17:42:44 UTC 2011
Hey all,
I'm looking at migrating to Storm for our Python ORM needs.
I couldn't find from the tutorials/manuals, or from experimenting in ipython, how to
properly map python fields to MySQL Set() columns.
Given: Set('one', 'two')
Storm List() mapping:
['o','n','e',',','t','w','o']
Storm Unicode() mapping:
u'one,two'
The Unicode() method seems to work. I can build simple methods to add/remove items from the Set, and saving
as a Unicode() attribute seems to work.
Is there a better way I'm missing?
----
André Dalle
Systems Administrator
National Capital FreeNet [http://www.ncf.ca]
More information about the storm
mailing list