[Checkins]
SVN: plone.z3cform/branches/infrae-grok/plone/z3cform/components.py
- Use five views instead of Grok one by default.
Sylvain Viollon
sylvain at infrae.com
Fri Aug 8 04:11:03 EDT 2008
Log message for revision 89532:
- Use five views instead of Grok one by default.
Changed:
U plone.z3cform/branches/infrae-grok/plone/z3cform/components.py
-=-
Modified: plone.z3cform/branches/infrae-grok/plone/z3cform/components.py
===================================================================
--- plone.z3cform/branches/infrae-grok/plone/z3cform/components.py 2008-08-08 02:13:57 UTC (rev 89531)
+++ plone.z3cform/branches/infrae-grok/plone/z3cform/components.py 2008-08-08 08:11:01 UTC (rev 89532)
@@ -6,7 +6,7 @@
from zope.pagetemplate.interfaces import IPageTemplate
import martian
-from grokcore import view
+from five import grok
from grokcore.view.interfaces import ITemplate as IGrokTemplate
from z3c.form import form, field
@@ -44,7 +44,7 @@
grok.Views. It will be called before any form processing
happens."""
- def update_form(self):
+ def updateForm(self):
"""Update the form, i.e. process form input using widgets.
On z3c.form forms, this is what the update() method is.
@@ -82,18 +82,18 @@
return
z2.switch_on(self, request_layer=IFormLayer)
- self.update_form()
+ self.updateForm()
return self.render()
-class Form(GrokForm, form.Form, view.View):
+class Form(GrokForm, form.Form, grok.View):
"""Normal z3c form.
"""
martian.baseclass()
-class AddForm(GrokForm, form.AddForm, view.View):
+class AddForm(GrokForm, form.AddForm, grok.View):
"""z3c add form.
"""
@@ -101,14 +101,14 @@
martian.baseclass()
-class EditForm(GrokForm, form.EditForm, view.View):
+class EditForm(GrokForm, form.EditForm, grok.View):
"""z3c edit form.
"""
martian.baseclass()
-class DisplayForm(GrokForm, form.DisplayForm, view.View):
+class DisplayForm(GrokForm, form.DisplayForm, grok.View):
"""z3c display form.
"""
More information about the Checkins
mailing list