[CMF-checkins] CVS: CMF/CMFCore - SkinsTool.py:1.18

Florent Guillaume fg@nuxeo.com
Sun, 4 Aug 2002 17:39:10 -0400


Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv28755

Modified Files:
	SkinsTool.py 
Log Message:
Made SkinsTool derive from Folder and not PortalFolder, like the all
other tools.


=== CMF/CMFCore/SkinsTool.py 1.17 => 1.18 ===
 
 from string import split
 from utils import UniqueObject, getToolByName, _dtmldir
-from PortalFolder import PortalFolder
 import Globals
 from Globals import DTMLFile, PersistentMapping
 from SkinsContainer import SkinsContainer
@@ -30,6 +29,7 @@
 from ActionInformation import ActionInformation
 from Expression import Expression
 
+from OFS.Folder import Folder
 from OFS.Image import Image
 from OFS.DTMLMethod import DTMLMethod
 from OFS.ObjectManager import REPLACEABLE
@@ -46,7 +46,7 @@
     # Remove the existing "Properties" option and add our own.
     rval = []
     pos = -1
-    for o in PortalFolder.manage_options:
+    for o in Folder.manage_options:
         label = o.get('label', None)
         if label != 'Properties':
             rval.append(o)
@@ -54,7 +54,7 @@
                   'action':'manage_propertiesForm'}]
     return tuple(rval)
 
-class SkinsTool(UniqueObject, SkinsContainer, PortalFolder, ActionProviderBase):
+class SkinsTool(UniqueObject, SkinsContainer, Folder, ActionProviderBase):
     '''
     This tool is used to supply skins to a portal.
     '''