[CMF-checkins] CVS: CMF/CMFCore - URLTool.py:1.3.2.1 UndoTool.py:1.13.2.1

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


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

Modified Files:
      Tag: yuppie-collector123-branch
	URLTool.py UndoTool.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/URLTool.py 1.3 => 1.3.2.1 ===
--- CMF/CMFCore/URLTool.py:1.3	Tue Feb  4 17:24:25 2003
+++ CMF/CMFCore/URLTool.py	Sat Feb  8 10:10:58 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.
@@ -40,7 +39,7 @@
 
     id = 'portal_url'
     meta_type = 'CMF URL Tool'
-    _actions = []
+    _actions = ()
 
     security = ClassSecurityInfo()
     security.declareObjectProtected(View)


=== CMF/CMFCore/UndoTool.py 1.13 => 1.13.2.1 ===
--- CMF/CMFCore/UndoTool.py:1.13	Tue Feb  4 17:24:25 2003
+++ CMF/CMFCore/UndoTool.py	Sat Feb  8 10:10:58 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.
@@ -34,13 +33,14 @@
 
 
 class UndoTool (UniqueObject, SimpleItem, ActionProviderBase):
+    """ This tool is used to undo changes.
+    """
 
     __implements__ = (IUndoTool, ActionProviderBase.__implements__)
 
     id = 'portal_undo'
     meta_type = 'CMF Undo Tool'
-    # This tool is used to undo changes.
-    _actions = [ActionInformation(id='undo'
+    _actions = (ActionInformation(id='undo'
                                 , title='Undo'
                                 , action=Expression(
                text='string: ${portal_url}/undo_form')
@@ -49,8 +49,9 @@
                                 , permissions=(ListUndoableChanges,)
                                 , category='global'
                                 , visible=1
-                                 )]
-
+                                 )
+               ,
+               )
 
     security = ClassSecurityInfo()