Dear list,

I used to use a certain ORM base class with SQLA 0.4 for a while. It 
defined __init__, __repr__ and update so that I could preset mapped 
objects with values like

        leo = User(name='leo', age=23)

or just

        print leo

and especially

        leo.update(dictionary_from_web_form)

I couldn't find it on the wiki anymore. And what I use here doesn't work 
properly on 0.5 (it relies heavily on the 'c' attribute and just removing 
it doesn't solve things because it tries "if a_certain_attribute in 
this_object.c").

If anyone has "ported" that few lines of code to 0.5 please let me know. 

I thought that the declarative_base helps here but it's just helping with 
the declaration.

Cheers
 Christoph

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to