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

def CPSSkins::PortalTheme::PortalTheme::edit (   self,
  kw 
)

Default edit method, changes the properties.

Definition at line 1067 of file PortalTheme.py.

01067                         :
        """
        Default edit method, changes the properties.
        """

        # remove unknown properties
        for prop in kw.keys():
            if self.hasProperty(prop):
                continue
            del kw[prop]

        self.manage_changeProperties(**kw)

        # default theme
        tmtool = getToolByName(self, 'portal_themes')
        if kw.get('default', 0):
            tmtool.setDefaultTheme(default_theme=self.getId())

    security.declareProtected(ManageThemes, 'duplicate')
    def duplicate(self, id=None):


Generated by  Doxygen 1.6.0   Back to index