[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - add.py:1.32
editview.py:1.39
Garrett Smith
garrett at mojave-corp.com
Tue Sep 23 21:13:00 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/browser/form
In directory cvs.zope.org:/tmp/cvs-serv11517/src/zope/app/browser/form
Modified Files:
add.py editview.py
Log Message:
Added 'form' class attributes to allow view subclasses to use template
macros.
=== Zope3/src/zope/app/browser/form/add.py 1.31 => 1.32 ===
--- Zope3/src/zope/app/browser/form/add.py:1.31 Thu Aug 28 18:40:25 2003
+++ Zope3/src/zope/app/browser/form/add.py Tue Sep 23 21:12:59 2003
@@ -39,6 +39,8 @@
to be edited.
"""
+ form = ViewPageTemplateFile('add.pt')
+
def _setUpWidgets(self):
setUpWidgets(self, self.schema, names=self.fieldNames)
=== Zope3/src/zope/app/browser/form/editview.py 1.38 => 1.39 ===
--- Zope3/src/zope/app/browser/form/editview.py:1.38 Sun Sep 21 13:30:35 2003
+++ Zope3/src/zope/app/browser/form/editview.py Tue Sep 23 21:12:59 2003
@@ -44,6 +44,8 @@
update_status = None
label = ''
+ form = ViewPageTemplateFile('edit.pt')
+
# Fall-back field names computes from schema
fieldNames = property(lambda self: getFieldNamesInOrder(self.schema))
# Fall-back template
More information about the Zope3-Checkins
mailing list