From c978861b0411b42f01b6ab948851894772ca1f3a Mon Sep 17 00:00:00 2001 From: helmutm Date: Mon, 27 Aug 2007 17:17:25 +0000 Subject: [PATCH] work in progress: enable form validation for editing with dojo dialog git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1963 fd906abe-77d9-0310-91a1-e0d9ade77398 --- browser/view.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/browser/view.py b/browser/view.py index 4af67b9..074c10d 100644 --- a/browser/view.py +++ b/browser/view.py @@ -85,14 +85,15 @@ class GenericView(object): # return self.index(*args, **kw) def update(self): + result = True if not self._updated: action = self.request.form.get('form.action') if action: fc = component.getMultiAdapter((self, self.request), name=action) - fc.update() + result = fc.update() self._updated = True - return True + return result def setupController(self): """ May be called by __init__() if there is already a controller