[CMF-checkins] CVS: CMF/CMFDefault - DefaultWorkflow.py:1.15.2.1 DiscussionItem.py:1.29.2.1
Yvo Schubbe
schubbe@web.de
Sun, 12 Jan 2003 08:12:20 -0500
Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv3833/CMFDefault
Modified Files:
Tag: yuppie-buglets1-branch
DefaultWorkflow.py DiscussionItem.py
Log Message:
use string methods:
- replaced string functions
- removed useless imports
- updated copyright statement
=== CMF/CMFDefault/DefaultWorkflow.py 1.15 => 1.15.2.1 ===
--- CMF/CMFDefault/DefaultWorkflow.py:1.15 Mon Jan 6 15:41:34 2003
+++ CMF/CMFDefault/DefaultWorkflow.py Sun Jan 12 08:12:17 2003
@@ -1,25 +1,26 @@
##############################################################################
#
-# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
-#
+# Copyright (c) 2001-2003 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.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
-#
+#
##############################################################################
-''' A simple submit/review/publish workflow.
+""" A simple submit/review/publish workflow.
$Id$
-'''
+"""
-import sys
-import Globals
from Acquisition import aq_base, aq_inner, aq_parent
from AccessControl import ClassSecurityInfo
from DateTime import DateTime
+from Globals import InitializeClass
+
from Products.CMFCore.utils import _modifyPermissionMappings
from Products.CMFCore.utils import _checkPermission
from Products.CMFCore.utils import getToolByName
@@ -316,7 +317,7 @@
}
return _modifyPermissionMappings(ob, new_map)
-Globals.InitializeClass(DefaultWorkflowDefinition)
+InitializeClass(DefaultWorkflowDefinition)
addWorkflowClass(DefaultWorkflowDefinition)
=== CMF/CMFDefault/DiscussionItem.py 1.29 => 1.29.2.1 ===
--- CMF/CMFDefault/DiscussionItem.py:1.29 Mon Jan 6 15:41:34 2003
+++ CMF/CMFDefault/DiscussionItem.py Sun Jan 12 08:12:17 2003
@@ -1,18 +1,22 @@
##############################################################################
#
-# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
-#
+# Copyright (c) 2001-2003 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.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
-#
+#
##############################################################################
+""" Discussion item portal type.
-import urllib, string
-from Globals import HTMLFile, Persistent, PersistentMapping, InitializeClass
+$Id$
+"""
+
+from Globals import Persistent, PersistentMapping, InitializeClass
from AccessControl import ClassSecurityInfo
from Acquisition import Implicit, aq_base, aq_inner, aq_parent
from OFS.Traversable import Traversable