Author: jmorliaguet
Date: Sat May 20 16:10:14 2006
New Revision: 3173

Modified:
   cpsskins/branches/paris-sprint-2006/setup/manager.py

Log:

- reverted: resources in settings are already identified by setting names



Modified: cpsskins/branches/paris-sprint-2006/setup/manager.py
==============================================================================
--- cpsskins/branches/paris-sprint-2006/setup/manager.py        (original)
+++ cpsskins/branches/paris-sprint-2006/setup/manager.py        Sat May 20 
16:10:14 2006
@@ -46,8 +46,7 @@
                        custom=False, context=None):
         """Register the setting as a utility.
         """
-        mgr = getThemeManager(context)
-        settings = mgr.getSettings()
+        settings = getThemeManager(context).getSettings()
         chooser = INameChooser(settings)
         name = name or chooser.chooseName(title, context)
         if context is None:
@@ -63,8 +62,6 @@
         settings[uri] = setting
         settings.registerUtility(setting, ISetting, uri)
 
-        mgr.registerElement(resource)
-
         return setting
 
     def unregister(self, uri=u'', context=None):
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to