>
> More proper would be:
>
> hub.begin()
> try:
>     do stuff
> except:
>     hub.rollback()
>     raise
> else:
>     hub.commit()
>
>
> Though of course in the "else:" block you could commit or rollback based
> on some flag, if you didn't want to automatically commit.
>
> --
> Ian Bicking  |  [EMAIL PROTECTED]  |  http://blog.ianbicking.org

That looks like nice and simple - I like it.
No one seems to be including hub.end() in their examples.  I wondered
if this step is optional or if bad things would happen if I skiped it.

-- 
DS

Reply via email to