Author: jmorliaguet
Date: Thu May 25 12:00:46 2006
New Revision: 3214

Added:
   cpsskins/branches/paris-sprint-2006/ui/screens/elementeditor/edit.pt   
(contents, props changed)
Modified:
   cpsskins/branches/paris-sprint-2006/ui/screens/elementeditor/configure.zcml
   cpsskins/branches/paris-sprint-2006/ui/screens/elementeditor/views.py

Log:

- fixes



Modified: 
cpsskins/branches/paris-sprint-2006/ui/screens/elementeditor/configure.zcml
==============================================================================
--- cpsskins/branches/paris-sprint-2006/ui/screens/elementeditor/configure.zcml 
(original)
+++ cpsskins/branches/paris-sprint-2006/ui/screens/elementeditor/configure.zcml 
Thu May 25 12:00:46 2006
@@ -9,6 +9,41 @@
       layer="cpsskins.browser.skin.cpsskins"
   />
 
+  <page
+      for="cpsskins.elements.interfaces.IElement"
+      layer="cpsskins.browser.skin.cpsskins"
+      name="edit.html"
+      permission="zope.ManageContent"
+      template="edit.pt"
+  />
+
+  <view
+      for="cpsskins.elements.interfaces.IElement"
+      name="editpanel"
+      provides=".views.IEditPanel"
+      class=".views.EditPanel"
+      permission="zope.ManageContent"
+      layer="cpsskins.browser.skin.cpsskins"
+  />
+
+  <pages
+      for="cpsskins.elements.interfaces.IElement"
+      layer="cpsskins.browser.skin.cpsskins"
+      class=".views.ElementForm"
+      permission="zope.ManageContent">
+
+    <page
+      name="getFormData"
+      attribute="getFormData"
+    />
+
+    <page
+      name="submitFormData"
+      attribute="submitFormData"
+    />
+
+  </pages>
+
   <pages
       for="*"
       layer="cpsskins.browser.skin.cpsskins"

Added: cpsskins/branches/paris-sprint-2006/ui/screens/elementeditor/edit.pt
==============================================================================
--- (empty file)
+++ cpsskins/branches/paris-sprint-2006/ui/screens/elementeditor/edit.pt        
Thu May 25 12:00:46 2006
@@ -0,0 +1,11 @@
+
+
+  <form action="." tal:attributes="action 
string:${context/@@absolute_url}/@@submitFormData">
+    <table>
+      <tr tal:repeat="formdata context/@@getFormData">
+        <td tal:content="formdata/label" />
+        <td tal:content="structure formdata" />
+      </tr>
+    </table>
+    <button type="submit">SAVE</button>
+  </form>

Modified: cpsskins/branches/paris-sprint-2006/ui/screens/elementeditor/views.py
==============================================================================
--- cpsskins/branches/paris-sprint-2006/ui/screens/elementeditor/views.py       
(original)
+++ cpsskins/branches/paris-sprint-2006/ui/screens/elementeditor/views.py       
Thu May 25 12:00:46 2006
@@ -19,6 +19,7 @@
 
 from zope.formlib import form
 from zope.component import getMultiAdapter
+from zope.interface import implements, Interface
 
 from cpsskins.browser.negotiation.interfaces import INegotiation
 from cpsskins.browser.rendering.interfaces import IViewer
@@ -48,9 +49,13 @@
         changed = form.applyChanges(self.context, self.form_fields, data)
         return u''
 
+class IEditPanel(Interface):
+    """Edit panel"""
 
 class EditPanel:
 
+    implements(IEditPanel)
+
     def __init__(self, context, request):
         self.context = context
         self.request = request
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to