On 8/6/09 09:30 , werner wrote:
> IIRC correctly the __init__ section is only needed if you want to do:
> add = Address('an email address')
>
> I never do this, i.e. I assign like this
> add = Address()
> add.email_address = 'an email address'

You can also do this with the default declarative base constructor:

   add = Address(email_address='j...@example.com')

All columns can be used as named parameters.

Wichert.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to