Author: jmorliaguet
Date: Wed May 10 10:43:07 2006
New Revision: 3093

Modified:
   cpsskins/branches/paris-sprint-2006/ui/manager/configure.zcml
   cpsskins/branches/paris-sprint-2006/ui/manager/registration.pt
   cpsskins/branches/paris-sprint-2006/ui/manager/views.py

Log:

- updated API



Modified: cpsskins/branches/paris-sprint-2006/ui/manager/configure.zcml
==============================================================================
--- cpsskins/branches/paris-sprint-2006/ui/manager/configure.zcml       
(original)
+++ cpsskins/branches/paris-sprint-2006/ui/manager/configure.zcml       Wed May 
10 10:43:07 2006
@@ -18,13 +18,13 @@
       class=".ThemeManagerView">
 
       <page
-          name="enableThemes.html"
-          attribute="enableThemes"
+          name="activateThemes.html"
+          attribute="activateThemes"
       />
 
       <page
-          name="disableThemes.html"
-          attribute="disableThemes"
+          name="deactivateThemes.html"
+          attribute="deactivateThemes"
       />
       <page
           name="addTheme.html"

Modified: cpsskins/branches/paris-sprint-2006/ui/manager/registration.pt
==============================================================================
--- cpsskins/branches/paris-sprint-2006/ui/manager/registration.pt      
(original)
+++ cpsskins/branches/paris-sprint-2006/ui/manager/registration.pt      Wed May 
10 10:43:07 2006
@@ -5,7 +5,7 @@
 
       <h4>Registration</h4>
       <form tal:condition="not:enabled"
-            action="./@@enableThemes.html" method="post">
+            action="./@@activateThemes.html" method="post">
         <p style="color:red">Themes are currently deactivated.</p>
         <p>
           <input type="submit" value="Activate themes" />
@@ -13,7 +13,7 @@
       </form>
 
       <form tal:condition="enabled"
-            action="./@@disableThemes.html" method="post">
+            action="./@@deactivateThemes.html" method="post">
         <p style="color:green">Themes are currently activated.</p>
         <p>
           <input type="submit" value="Deactivate themes" />

Modified: cpsskins/branches/paris-sprint-2006/ui/manager/views.py
==============================================================================
--- cpsskins/branches/paris-sprint-2006/ui/manager/views.py     (original)
+++ cpsskins/branches/paris-sprint-2006/ui/manager/views.py     Wed May 10 
10:43:07 2006
@@ -38,11 +38,11 @@
         (id, title, url)
         """
 
-    def enableThemes():
-        """Enable themes."""
+    def activateThemes():
+        """Activate themes."""
 
-    def disableThemes():
-        """Disable themes."""
+    def deactivateThemes():
+        """Deactivate themes."""
 
 class ThemeManagerView:
     """Themes manager view.
@@ -68,13 +68,13 @@
                 return True
         return False
 
-    def enableThemes(self):
+    def activateThemes(self):
         sm = self._getSiteManager()
         sm.registerUtility(removeSecurityProxy(self.context),
                            IThemeManagementFolder)
         self.request.response.redirect('@@registration.html')
 
-    def disableThemes(self):
+    def deactivateThemes(self):
         sm = self._getSiteManager()
         sm.unregisterUtility(self.context, IThemeManagementFolder)
         self.request.response.redirect('@@registration.html')
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to