[CMF-checkins] CVS: CMF/CMFCore - SkinsTool.py:1.22.2.1 TypesTool.py:1.48.2.1

Yvo Schubbe schubbe@web.de
Sat, 8 Feb 2003 10:10:12 -0500


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

Modified Files:
      Tag: yuppie-collector123-branch
	SkinsTool.py TypesTool.py 
Log Message:
- changed _actions' making them tuples (Collector #123)
- reverted copyright updates (I was told it's policy *not* to update copyright statements)

=== CMF/CMFCore/SkinsTool.py 1.22 => 1.22.2.1 ===
--- CMF/CMFCore/SkinsTool.py:1.22	Tue Feb  4 17:18:07 2003
+++ CMF/CMFCore/SkinsTool.py	Sat Feb  8 10:10:11 2003
@@ -1,7 +1,6 @@
 ##############################################################################
 #
-# Copyright (c) 2001-2003 Zope Corporation and Contributors.
-# All Rights Reserved.
+# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
 #
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
@@ -60,15 +59,15 @@
     return tuple(rval)
 
 class SkinsTool(UniqueObject, SkinsContainer, Folder, ActionProviderBase):
-    '''
-    This tool is used to supply skins to a portal.
-    '''
+    """ This tool is used to supply skins to a portal.
+    """
 
     __implements__ = (ISkinsTool, ActionProviderBase.__implements__)
 
     id = 'portal_skins'
     meta_type = 'CMF Skins Tool'
-    _actions = []
+    _actions = ()
+
     cookie_persistence = 0
 
     security = ClassSecurityInfo()


=== CMF/CMFCore/TypesTool.py 1.48 => 1.48.2.1 ===
--- CMF/CMFCore/TypesTool.py:1.48	Tue Feb  4 17:18:07 2003
+++ CMF/CMFCore/TypesTool.py	Sat Feb  8 10:10:11 2003
@@ -1,7 +1,6 @@
 ##############################################################################
 #
-# Copyright (c) 2001-2003 Zope Corporation and Contributors.
-# All Rights Reserved.
+# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
 #
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
@@ -16,8 +15,9 @@
 $Id$
 """
 
-import OFS
 from Globals import InitializeClass, DTMLFile
+from OFS.Folder import Folder
+
 from utils import _checkPermission
 from utils import _dtmldir
 from utils import cookString
@@ -608,7 +608,7 @@
     ]
 
 
-class TypesTool( UniqueObject, OFS.Folder.Folder, ActionProviderBase ):
+class TypesTool(UniqueObject, Folder, ActionProviderBase):
     """
         Provides a configurable registry of portal content types.
     """
@@ -617,11 +617,11 @@
 
     id = 'portal_types'
     meta_type = 'CMF Types Tool'
-    _actions = []
+    _actions = ()
 
     security = ClassSecurityInfo()
 
-    manage_options = ( OFS.Folder.Folder.manage_options +
+    manage_options = ( Folder.manage_options +
                       ActionProviderBase.manage_options +
                       ({ 'label' : 'Overview', 'action' : 'manage_overview' }
                      ,