Hi all
I'm using Pylons with Elixir and have the following problem
in controller I'm creating model object and save it after that I need
to know generated id of it and do flushing.
            main_image =
model.Image(file_name=main_image_file.filename);
            elixir.objectstore.flush()
            print main_image.id

Then id is not null, but if some exception occurs after that - object
get written to the DB
is there any receipt how to handle this as a transaction?

Thanks in advance for help
Mykola


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLElixir" 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/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to