On Feb 14, 8:04 pm, "[email protected]"
<[email protected]> wrote:
[...]
>
> Second, how do I delete objects from database? In TG1 I could do:
>
> user.destroySelf()
>
> but that doesn't seem to work now.
DBSession.delete(user)
is the correct command. At some point you will need to issue the
command
transaction.commit()
to commit the change to the database.
user.destroySelf() is the command used in SQLObject, which is the
default ORM for TG1.
Regards,
Bruce
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---