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

def Install::install_SubSkin (   self,
  outStream,
  skinFolder 
)

Installs a subskin, should be just 1 folder.

Definition at line 35 of file Install.py.

00035                                                 :
    """ Installs a subskin, should be just 1 folder.
    """
    skinstool=getToolByName(self, 'portal_skins')
    for skin in skinstool.getSkinSelections():
        path = skinstool.getSkinPath(skin)
        path = map( string.strip, string.split( path,',' ) )
        if not skinFolder in path:
            try:
                path.insert( path.index( 'custom')+1, skinFolder )
            except ValueError:
                path.append(skinFolder)
            path = string.join( path, ', ' )
            skinstool.addSkinSelection( skin, path )
            outStream.write('CMFForum subskin successfully installed into %s.\n' % skin)    
        else:
            outStream.write('CMFForum subskin was already installed into %s.\n' % skin)    


Generated by  Doxygen 1.6.0   Back to index