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
This commit is contained in:
helmutm 2007-08-27 17:17:25 +00:00
parent 9a600b7388
commit c978861b04

View file

@ -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