Author: jmorliaguet
Date: Sun May 14 01:05:24 2006
New Revision: 3129

Modified:
   cpsskins/branches/paris-sprint-2006/ui/editing/views.py
   cpsskins/branches/paris-sprint-2006/ui/panels/element_editor.pt

Log:

- simplifications



Modified: cpsskins/branches/paris-sprint-2006/ui/editing/views.py
==============================================================================
--- cpsskins/branches/paris-sprint-2006/ui/editing/views.py     (original)
+++ cpsskins/branches/paris-sprint-2006/ui/editing/views.py     Sun May 14 
01:05:24 2006
@@ -150,22 +150,17 @@
         # Formats
         format = None
         formats_info = []
-        format_is_setting = False
         for f in formattable.getFormats(resolve=False):
             is_setting = ISetting.providedBy(f)
             if is_setting:
                 f = IResource(f).getResource()
-            else:
-                id = f.identifier
 
             name = IType(f).getTypeName()
             selected = name == format_name
             if selected:
                 edited = f
-                if is_setting:
-                    format_is_setting = True
 
-            formats_info.append({'name': name, 'id': id})
+            formats_info.append({'name': name})
 
         viewer = getMultiAdapter((context, request), IViewer)
         preview = viewer()

Modified: cpsskins/branches/paris-sprint-2006/ui/panels/element_editor.pt
==============================================================================
--- cpsskins/branches/paris-sprint-2006/ui/panels/element_editor.pt     
(original)
+++ cpsskins/branches/paris-sprint-2006/ui/panels/element_editor.pt     Sun May 
14 01:05:24 2006
@@ -30,7 +30,7 @@
     <a i18n:translate=""
        tal:repeat="format info/formats"
        tal:attributes="
-         href 
string:javascript:CPSSkins.getModelById('element-editor').updateData({'script': 
'/++skin++cpsskins/@@/++resource++style_editor.js', 'form': {'id': '$id', 
'format': '${format/name}'}})"
+         href 
string:javascript:CPSSkins.getModelById('element-editor').updateData({'script': 
'/++skin++cpsskins/++resource++style_editor.js', 'form': {'id': $id, 'format': 
'${format/name}'}})"
        tal:content="format/name" />
 
     <a i18n:translate=""
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to