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

def CPSSkins::PortalTheme::PortalTheme::findStyles (   self,
  title = None,
  meta_type = None 
)

Returns a list of style(s) that has/have a given title or meta type

Definition at line 474 of file PortalTheme.py.

00474                                                     :
        """
        Returns a list of style(s) that has/have a given title or meta type
        """

        styles_dir = self.getStylesFolder()
        list = []
        for (id, o) in styles_dir.objectItems():
            if not getattr(aq_base(o), 'isportalstyle', 0):
                continue

            if title is not None:
                if getattr(aq_base(o), 'title', None) != title:
                    continue

            if meta_type is not None:
                if getattr(aq_base(o), 'meta_type', None) != meta_type:
                    continue

            list.append(o)
        return list

    security.declarePublic('findIdenticalStyles')
    def findIdenticalStyles(self):


Generated by  Doxygen 1.6.0   Back to index