Author: jmorliaguet
Date: Sat May 27 23:24:44 2006
New Revision: 3253

Modified:
   cpsskins/branches/paris-sprint-2006/ui/screens/common/configure.zcml
   cpsskins/branches/paris-sprint-2006/ui/screens/common/views.py

Log:

- add some info about the element's order



Modified: cpsskins/branches/paris-sprint-2006/ui/screens/common/configure.zcml
==============================================================================
--- cpsskins/branches/paris-sprint-2006/ui/screens/common/configure.zcml        
(original)
+++ cpsskins/branches/paris-sprint-2006/ui/screens/common/configure.zcml        
Sat May 27 23:24:44 2006
@@ -114,7 +114,7 @@
     name="authoring"
     provides=".views.IAuthoring"
     class=".views.Authoring"
-    permission="zope.Public"
+    permission="zope.ManageContent"
     allowed_interface=".views.IAuthoring"
     layer="cpsskins.browser.skin.cpsskins"
   />

Modified: cpsskins/branches/paris-sprint-2006/ui/screens/common/views.py
==============================================================================
--- cpsskins/branches/paris-sprint-2006/ui/screens/common/views.py      
(original)
+++ cpsskins/branches/paris-sprint-2006/ui/screens/common/views.py      Sat May 
27 23:24:44 2006
@@ -86,12 +86,17 @@
         return icon_url
 
     def getModel(self):
+        context = self.context
+        request = self.request
         id = self.context.identifier
+        authoring = getMultiAdapter((context, request), IAuthoring,
+                                    name='authoring')
         return json.write({
             'id': u'm%s' % id,
             'data': {
                 'id': id,
                 'editable': True,
+                'order': authoring.getElementOrder(id),
                 }
             })
 
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to