Author: jmorliaguet
Date: Fri Jun  2 16:40:51 2006
New Revision: 3288

Modified:
   
cpsskins/branches/paris-sprint-2006/ui/screens/elementeditor/element_editor.pt
   cpsskins/branches/paris-sprint-2006/ui/screens/sitemanager/views.py

Log:

- display '(no preset)' to not use a preset



Modified: 
cpsskins/branches/paris-sprint-2006/ui/screens/elementeditor/element_editor.pt
==============================================================================
--- 
cpsskins/branches/paris-sprint-2006/ui/screens/elementeditor/element_editor.pt  
    (original)
+++ 
cpsskins/branches/paris-sprint-2006/ui/screens/elementeditor/element_editor.pt  
    Fri Jun  2 16:40:51 2006
@@ -45,7 +45,7 @@
           tal:attributes="action string:${display/@@absolute_url}/@@usePreset">
       Use preset:
       <select name="uri">
-        <option value=""></option>
+        <option value="_">(no preset)</option>
         <option tal:repeat="preset preset_info/?edited_type"
                 tal:attributes="value preset/uri;
                                 selected python: preset_uri == preset['uri']">

Modified: cpsskins/branches/paris-sprint-2006/ui/screens/sitemanager/views.py
==============================================================================
--- cpsskins/branches/paris-sprint-2006/ui/screens/sitemanager/views.py 
(original)
+++ cpsskins/branches/paris-sprint-2006/ui/screens/sitemanager/views.py Fri Jun 
 2 16:40:51 2006
@@ -105,6 +105,8 @@
 
         """
         context = self.context
+        if uri == u'_':
+            uri = u''
         if not uri and not current_uri:
             raise ValueError("Must specify a URI to use or a URI to stop 
using")
         if not uri:
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to