Author: jmorliaguet
Date: Fri Nov 18 01:06:33 2005
New Revision: 1880

Modified:
   cpsskins/branches/jmo-perspectives/browser/negociation/__init__.py
   cpsskins/branches/jmo-perspectives/browser/negociation/configure.zcml
   cpsskins/branches/jmo-perspectives/browser/negociation/interfaces.py
   cpsskins/branches/jmo-perspectives/interfaces.py
   cpsskins/branches/jmo-perspectives/thememanager.py
Log:

- removed unused methods



Modified: cpsskins/branches/jmo-perspectives/browser/negociation/__init__.py
==============================================================================
--- cpsskins/branches/jmo-perspectives/browser/negociation/__init__.py  
(original)
+++ cpsskins/branches/jmo-perspectives/browser/negociation/__init__.py  Fri Nov 
18 01:06:33 2005
@@ -37,11 +37,6 @@
         page = tmutil.getDefaultPage()
         return zapi.getMultiAdapter((page, self.request), IViewer)
 
-    def getDefaultThemeUrl(self):
-        tmutil = getThemeManager()
-        theme = tmutil.getDefaultTheme()
-        return zapi.getPath(theme)
-
     def getPerspective(self):
         pkg_id = 'cpsskins'
         session = ISession(self.request)[pkg_id]

Modified: cpsskins/branches/jmo-perspectives/browser/negociation/configure.zcml
==============================================================================
--- cpsskins/branches/jmo-perspectives/browser/negociation/configure.zcml       
(original)
+++ cpsskins/branches/jmo-perspectives/browser/negociation/configure.zcml       
Fri Nov 18 01:06:33 2005
@@ -27,11 +27,6 @@
     />
 
     <page
-        name="getDefaultThemeUrl"
-        attribute="getDefaultThemeUrl"
-    />
-
-    <page
         name="getPerspective"
         attribute="getPerspective"
     />

Modified: cpsskins/branches/jmo-perspectives/browser/negociation/interfaces.py
==============================================================================
--- cpsskins/branches/jmo-perspectives/browser/negociation/interfaces.py        
(original)
+++ cpsskins/branches/jmo-perspectives/browser/negociation/interfaces.py        
Fri Nov 18 01:06:33 2005
@@ -27,10 +27,6 @@
     def getDefaultPageView():
         """ """
 
-    def getDefaultThemeUrl():
-        """ """
-
     def getPerspective():
         """ """
 
-

Modified: cpsskins/branches/jmo-perspectives/interfaces.py
==============================================================================
--- cpsskins/branches/jmo-perspectives/interfaces.py    (original)
+++ cpsskins/branches/jmo-perspectives/interfaces.py    Fri Nov 18 01:06:33 2005
@@ -73,12 +73,6 @@
         A context must be provided with.
         """
 
-    def getPageInContext(context):
-        """Return the page in which the element is located
-
-        A context must be provided with.
-        """
-
     # TODO: move somewhere else
     def removeDisplays(object):
         """Remove the display of an element

Modified: cpsskins/branches/jmo-perspectives/thememanager.py
==============================================================================
--- cpsskins/branches/jmo-perspectives/thememanager.py  (original)
+++ cpsskins/branches/jmo-perspectives/thememanager.py  Fri Nov 18 01:06:33 2005
@@ -158,20 +158,6 @@
             context = getattr(context, '__parent__', None)
         return None
 
-    def getPageInContext(self, context=None):
-        """Return the page in a given context.
-        """
-        if context is None:
-            return None
-        page = None
-        isPage = IThemePage.providedBy
-
-        while context is not None:
-            if isPage(context):
-                return context
-            context = getattr(context, '__parent__', None)
-        return page
-
     def setAsDefault(self, object=None):
         """Set the default theme
         """
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to