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:
parent
9a600b7388
commit
c978861b04
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue