[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/form/browser/
Finally made the addform available as a macro. This is really
great,
Stephan Richter
srichter at cosmos.phy.tufts.edu
Sun May 23 13:24:37 EDT 2004
Log message for revision 24909:
Finally made the addform available as a macro. This is really great,
since I can now write add forms that simply can extend the standard add
form. The book's messageboard chapter demonstrates this nicely.
-=-
Modified: Zope3/trunk/src/zope/app/form/browser/add.pt
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/add.pt 2004-05-23 16:57:51 UTC (rev 24908)
+++ Zope3/trunk/src/zope/app/form/browser/add.pt 2004-05-23 17:24:36 UTC (rev 24909)
@@ -2,7 +2,7 @@
<body>
<div metal:fill-slot="body">
- <div metal:define-macro="body">
+ <div metal:define-macro="addform">
<form action="." tal:attributes="action request/URL" method="post"
enctype="multipart/form-data">
Modified: Zope3/trunk/src/zope/app/form/browser/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/configure.zcml 2004-05-23 16:57:51 UTC (rev 24908)
+++ Zope3/trunk/src/zope/app/form/browser/configure.zcml 2004-05-23 17:24:36 UTC (rev 24909)
@@ -19,6 +19,13 @@
template="widget_macros.pt"
/>
+ <browser:page
+ for="*"
+ name="addform_macros"
+ permission="zope.Public"
+ template="add.pt"
+ />
+
<!-- Views for Widget Errors -->
<view
Modified: Zope3/trunk/src/zope/app/form/browser/macros.py
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/macros.py 2004-05-23 16:57:51 UTC (rev 24908)
+++ Zope3/trunk/src/zope/app/form/browser/macros.py 2004-05-23 17:24:36 UTC (rev 24909)
@@ -20,4 +20,4 @@
class FormMacros(StandardMacros):
- macro_pages = ('widget_macros',)
+ macro_pages = ('widget_macros', 'addform_macros')
More information about the Zope3-Checkins
mailing list