Author: jmorliaguet
Date: Sun Jun  4 21:05:31 2006
New Revision: 3303

Modified:
   cpsskins/branches/paris-sprint-2006/ui/screens/common/perspective_selector.pt
   cpsskins/branches/paris-sprint-2006/ui/screens/common/views.py

Log:

- fix for when no perspective is selected (this is a bug in cpsskins.js
  in the form serializer that ignores <option value="">...)



Modified: 
cpsskins/branches/paris-sprint-2006/ui/screens/common/perspective_selector.pt
==============================================================================
--- 
cpsskins/branches/paris-sprint-2006/ui/screens/common/perspective_selector.pt   
    (original)
+++ 
cpsskins/branches/paris-sprint-2006/ui/screens/common/perspective_selector.pt   
    Sun Jun  4 21:05:31 2006
@@ -4,7 +4,7 @@
                   perspectives tmutil/listPerspectives;
                   current context/@@negotiation/getPerspective">
   <select name="perspective">
-    <option value="" i18n:translate="">default</option>
+    <option value="_" i18n:translate="">(no perspective)</option>
     <option tal:repeat="perspective perspectives"
             tal:content="perspective/title"
             tal:attributes="value perspective/name;

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      Sun Jun 
 4 21:05:31 2006
@@ -180,6 +180,8 @@
     def setPerspective(self, perspective=u''):
         """Set the perspective
         """
+        if perspective == u'_':
+            perspective = u''
         session_info = self.getSessionInfo()
         if not perspective:
             del session_info['perspective']
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to