[storm] django, column vs. attribute names

Michael Radziej mir at noris.de
Wed Jul 18 15:33:35 BST 2007


Hi Gustavo,

On Wed, Jul 18, Gustavo Niemeyer wrote:

> Hey Michael,
> 
> I hope you've made a safe flight back home.

Thanks ... safe, but hot, due to a broken air conditioning in one of the
airplanes :-( I hope that yours was better ;-)

> 
> (...)
> > class DjangoModel(meta.Model):
> >   bla = IntegerField(db_column="foo")
> 
> The equivalent in Storm is:
> 
> class MyClass(object):
>     bla = Int("foo")

Thanks! 

The (very small) function to create a storm class from a Django model is
basically finished.

Michael

-- 
noris network AG - Deutschherrnstraße 15-19 - D-90429 Nürnberg -
Tel +49-911-9352-0 - Fax +49-911-9352-100
http://www.noris.de - The IT-Outsourcing Company
 
Vorstand: Ingo Kraupa (Vorsitzender), Joachim Astel, Hansjochen Klenk - 
Vorsitzender des Aufsichtsrats: Stefan Schnabel - AG Nürnberg HRB 17689



More information about the storm mailing list