hi folks, I'm migrating a project to SA 0.4 and toscawidgets. When
making a new object I used to do:

p = Page( **val_dic )
p.flush()
# or
session.flush()
id = p.id
# continue on my merry way using the id in restful urls

now I see that with SA 0.4 neither of the above work. I am using. How
should I flush newly created objects if I want them to exist in the
database before the end of my request/reponse cycle transaction?

Thanks
Iain


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to