Logo Search packages:      
Sourcecode: zope-cpsskins version File versions  Download package

def CPSSkins::PortalThemesTool::PortalThemesTool::_getLocalTheme (   self,
  folder = None,
  level = None 
) [private]

Return the name of the first theme assigned to a given level
    relative to a folder.

Definition at line 631 of file PortalThemesTool.py.

00631                                                      :
        """ Return the name of the first theme assigned to a given level
            relative to a folder.
        """

        if level is None:
            return None

        themes = self.getLocalThemes(folder=folder)
        if themes is None:
            return None

        level = int(level)
        for (n, m), theme in themes:
            if n > 0 and n > level:
                continue
            if m > 0 and m < level:
                continue
            return theme

        return None

    security.declarePublic('getLocalThemesAncestor')
    def getLocalThemesAncestor(self, context=None):


Generated by  Doxygen 1.6.0   Back to index