[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/Browser - ZPTPageEval.py:1.1.2.2 edit.pt:1.1.2.2

Steve Alexander steve@cat-box.net
Mon, 1 Apr 2002 04:53:14 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv17619/lib/python/Zope/App/OFS/Content/ZPTPage/Views/Browser

Modified Files:
      Tag: Zope-3x-branch
	ZPTPageEval.py edit.pt 
Log Message:
Changed here -> context and container -> view
as described in http://collector.zope.org/Zope3-dev/43


=== Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/Browser/ZPTPageEval.py 1.1.2.1 => 1.1.2.2 ===
              }
         if inst is not None:
-            c['here'] = inst.getContext()
-            c['container'] = inst
+            c['context'] = inst.getContext()
+            c['view'] = inst
             c['views'] = ViewMapper(inst.getContext(), REQUEST)
         return c
 


=== Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/Browser/edit.pt 1.1.2.1 => 1.1.2.2 ===
  
  
-      <p tal:content="here/msg"
-         tal:condition="python: hasattr(here, 'msg')">
+      <p tal:content="context/msg"
+         tal:condition="python: hasattr(context, 'msg')">
         Message will go here.
       </p>
 
-      <p tal:content="container/description">
+      <p tal:content="view/description">
         Description of the Form.
       </p>
 
@@ -39,7 +39,7 @@
         <table class="EditTable">      
 	  <tbody>   
   
-	    <tr tal:repeat="fieldView python:container.getFieldViews(request)">
+	    <tr tal:repeat="fieldView python:view.getFieldViews(request)">
 	      <th class="EditAttributeName"
                   tal:content="python: fieldView.getContext().getValue('title')">Title</th>
 	      <td class="EditAttributeValue"