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
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to