[Zope3-Users] Updating just a single object
Frank Burkhardt
fbo2 at gmx.net
Wed Jun 28 10:53:45 EDT 2006
Hi,
when I raise an exception in a view, no changes done to the any object
are saved to zodb.
I would like to change that for a single object:
class MyView(BrowserView):
def __call__(self):
[...]
if some_test:
save_object(self.context)
raise MyException()
[...]
No other object should be saved - just self.context. How could I do that?
Regards,
Frank
More information about the Zope3-users
mailing list