[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - edit.pt:1.5

Jim Fulton jim@zope.com
Fri, 7 Mar 2003 07:03:33 -0500


Update of /cvs-repository/Zope3/src/zope/app/browser/form
In directory cvs.zope.org:/tmp/cvs-serv4698

Modified Files:
	edit.pt 
Log Message:
Changed call to apply the form to happen before any rendering. This
way, changes made can affect the rendering, especially the rendering
of tabs.  Unfortunately, this required making status a global
variable. 


=== Zope3/src/zope/app/browser/form/edit.pt 1.4 => 1.5 ===
--- Zope3/src/zope/app/browser/form/edit.pt:1.4	Thu Jan 16 14:50:28 2003
+++ Zope3/src/zope/app/browser/form/edit.pt	Fri Mar  7 07:03:30 2003
@@ -1,5 +1,8 @@
-<html metal:use-macro="views/standard_macros/page">
+<tal:Process_the_form_first
+ tal:define="global status view/update"
+/><html metal:use-macro="views/standard_macros/page">
   <body>
+
   <div metal:fill-slot="body">
 
   <div metal:define-macro="body">
@@ -15,8 +18,7 @@
             metal:define-slot="heading"
             >Edit something</h3>
 
-        <p tal:define="status view/update"
-           tal:condition="status"
+        <p tal:condition="status"
            tal:content="status" />
 
         <div tal:condition="view/errors">