[Erp5-report] r16720 - /erp5/trunk/products/ERP5/Tool/IdTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Sat Sep 29 05:50:49 CEST 2007
Author: yo
Date: Sat Sep 29 05:50:49 2007
New Revision: 16720
URL: http://svn.erp5.org?rev=16720&view=rev
Log:
Use BaseTool as a base class.
Modified:
erp5/trunk/products/ERP5/Tool/IdTool.py
Modified: erp5/trunk/products/ERP5/Tool/IdTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/IdTool.py?rev=16720&r1=16719&r2=16720&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/IdTool.py (original)
+++ erp5/trunk/products/ERP5/Tool/IdTool.py Sat Sep 29 05:50:49 2007
@@ -26,11 +26,9 @@
#
##############################################################################
-from Products.CMFCore.utils import UniqueObject
-
from AccessControl import ClassSecurityInfo
from Globals import InitializeClass, DTMLFile, PersistentMapping
-from Products.ERP5Type.Core.Folder import Folder
+from Products.ERP5Type.Tool.BaseTool import BaseTool
from Products.ERP5Type import Permissions
from Products.CMFCore.utils import getToolByName
@@ -38,10 +36,9 @@
import threading
-from zLOG import LOG
from BTrees.Length import Length
-class IdTool(UniqueObject, Folder):
+class IdTool(BaseTool):
"""
This tools handles the generation of IDs.
@@ -54,23 +51,8 @@
# Declarative Security
security = ClassSecurityInfo()
- #
- # ZMI methods
- #
- manage_options = ( ( { 'label' : 'Overview'
- , 'action' : 'manage_overview'
- }
- ,
- )
- + Folder.manage_options
- )
-
security.declareProtected( Permissions.ManagePortal, 'manage_overview' )
manage_overview = DTMLFile( 'explainIdTool', _dtmldir )
-
- # Filter content (ZMI))
- def __init__(self):
- return Folder.__init__(self, IdTool.id)
security.declareProtected(Permissions.AccessContentsInformation,
'getLastGeneratedId')
More information about the Erp5-report
mailing list