[Grok-dev] Grok ORM with Storm

Peter Bengtsson peter at fry-it.com
Tue Jan 22 12:58:00 EST 2008


> 
> This is the example Model of the Howto [2]:
> 
>   class Contact(grok.Model, Storm):
>       grok.implements(IContact)
>       __storm_table__ = "Contacts"
> 
>       id = Int(primary=True)
>       name = Unicode()
>       city = Unicode()
> 
> Maybe we can do something like megrok.storm.StormTable('Contacts') 
> instead of __storm_table__ = Contacts.
> 

I'm not an expert at this but if using Storm on its own without any 
Grok, isn't __storm_table__ the natural way to do it. I personally think 
that looks easier and neater.

-- 
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com


More information about the Grok-dev mailing list