Andre Dalle | 18 Oct 2011 19:42
Picon
Favicon

Storm with MySQL Set()

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]

--

-- 
storm mailing list
storm <at> lists.canonical.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/storm
(Continue reading)


Gmane