Author: jmorliaguet
Date: Fri Apr 21 17:34:26 2006
New Revision: 2928

Modified:
   CPSSkins4Five/trunk/CPSSkinsSiteInstaller.py
   CPSSkins4Five/trunk/configure.zcml
   CPSSkins4Five/trunk/info.pt
   CPSSkins4Five/trunk/views.py
Log:

- saving work



Modified: CPSSkins4Five/trunk/CPSSkinsSiteInstaller.py
==============================================================================
--- CPSSkins4Five/trunk/CPSSkinsSiteInstaller.py        (original)
+++ CPSSkins4Five/trunk/CPSSkinsSiteInstaller.py        Fri Apr 21 17:34:26 2006
@@ -41,8 +41,6 @@
 
 Globals.InitializeClass(Installer)
 
-from OFS.Folder import Folder
-
 def manage_addCPSSkinsSite(dispatcher, id, REQUEST=None):
     """CPSSkins Site installer"""
 
@@ -63,6 +61,7 @@
     # register the themes folder as a local utility
     sm.registerUtility(IThemeManagementFolder, tmutil)
 
+
     if REQUEST is not None:
         url = dispatcher.DestinationURL()
         REQUEST.RESPONSE.redirect('%s/manage_main' % url)

Modified: CPSSkins4Five/trunk/configure.zcml
==============================================================================
--- CPSSkins4Five/trunk/configure.zcml  (original)
+++ CPSSkins4Five/trunk/configure.zcml  Fri Apr 21 17:34:26 2006
@@ -8,16 +8,32 @@
 
   <include file="views.zcml" />
 
-  <!-- demo site -->
+  <!-- CPSSkins site -->
 
   <five:localsite class=".site.CPSSkinsSite" />
 
   <five:traversable class=".site.CPSSkinsSite" />
 
 
+  <!-- zope2 -->
+
   <five:traversable class="OFS.Folder.Folder" />
 
 
+  <!-- name choosers -->
+
+  <adapter
+      provides="zope.app.container.interfaces.INameChooser"
+      for="cpsskins.storage.interfaces.IStorage"
+      factory="zope.app.container.contained.NameChooser"
+  />
+
+  <adapter
+      provides="zope.app.container.interfaces.INameChooser"
+      for="cpsskins.thememanager.IThemeManagementFolder"
+      factory="zope.app.container.contained.NameChooser"
+  />
+
   <!-- cpsskins v3 zcml configuration -->
 
   <include package="cpsskins" />

Modified: CPSSkins4Five/trunk/info.pt
==============================================================================
--- CPSSkins4Five/trunk/info.pt (original)
+++ CPSSkins4Five/trunk/info.pt Fri Apr 21 17:34:26 2006
@@ -26,6 +26,12 @@
 <h2>Theme management folder</h2>
 <tal:block content="view/getThemeManagementFolder" />
 
+<h2>Themes</h2>
+<tal:block content="view/getThemes" />
+
+<h2>Perspectives</h2>
+<tal:block content="view/listPerspectives" />
+
 <h2>Id registry</h2>
 <tal:block content="view/getIdRegistry" />
 

Modified: CPSSkins4Five/trunk/views.py
==============================================================================
--- CPSSkins4Five/trunk/views.py        (original)
+++ CPSSkins4Five/trunk/views.py        Fri Apr 21 17:34:26 2006
@@ -60,3 +60,9 @@
     def getSettings(self):
         return self.getThemeManagementFolder().getSettings()
 
+    def getThemes(self):
+        return self.getThemeManagementFolder().getThemes()
+
+    def listPerspectives(self):
+        return self.getThemeManagementFolder().listPerspectives()
+
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to