Author: jmorliaguet
Date: Sun Apr 23 13:50:51 2006
New Revision: 2945

Modified:
   cpsskins/branches/paris-sprint-2006/ui/authoring/configure.zcml
   cpsskins/branches/paris-sprint-2006/ui/authoring/views.py
Log:

- re-added the getThemeManager method



Modified: cpsskins/branches/paris-sprint-2006/ui/authoring/configure.zcml
==============================================================================
--- cpsskins/branches/paris-sprint-2006/ui/authoring/configure.zcml     
(original)
+++ cpsskins/branches/paris-sprint-2006/ui/authoring/configure.zcml     Sun Apr 
23 13:50:51 2006
@@ -34,6 +34,11 @@
       class=".views.Authoring">
 
       <browser:page
+          name="getThemeManager"
+          attribute="getThemeManager"
+      />
+ 
+      <browser:page
           name="setSelection"
           attribute="setSelection"
       />

Modified: cpsskins/branches/paris-sprint-2006/ui/authoring/views.py
==============================================================================
--- cpsskins/branches/paris-sprint-2006/ui/authoring/views.py   (original)
+++ cpsskins/branches/paris-sprint-2006/ui/authoring/views.py   Sun Apr 23 
13:50:51 2006
@@ -50,8 +50,13 @@
     def __init__(self, context, request):
         self.context = context
         self.request = request
+
+        self.tmutil = getThemeManager(context)
         self.session_info = ISession(request)['cpsskins']
 
+    def getThemeManager(self):
+        return self.tmutil
+
     def _redirect(self):
         request = self.request
         target = request.get('HTTP_REFERER', '.')
@@ -150,7 +155,7 @@
     def _getElementById(self, id):
         """Return an element by id.
         """
-        return getThemeManager(self.context).getElementById(id)
+        return self.tmutil.getElementById(id)
 
     def renderElement(self, id=u'', engine=u'default'):
         """Render the element and return the markup
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to