[CMF-checkins] CVS: CMF/CMFCore - ActionInformation.py:1.5

Tres Seaver tseaver@zope.com
Wed, 3 Jul 2002 09:09:21 -0400


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

Modified Files:
	ActionInformation.py 
Log Message:


  - Remove unused propertysheet cruft (AI instances never manage their
    own ZMI presentation).

  - Remove unused 'priority' attribute.


=== CMF/CMFCore/ActionInformation.py 1.4 => 1.5 ===
 from Globals import DTMLFile
 from Acquisition import aq_inner, aq_parent
+from OFS.SimpleItem import SimpleItem
 
 from CMFCorePermissions import View
 from CMFCorePermissions import ManagePortal
-from utils import SimpleItemWithProperties
 from utils import _dtmldir
 from utils import getToolByName
 
-class ActionInformation( SimpleItemWithProperties ):
+class ActionInformation( SimpleItem ):
 
     """ Represent a single selectable action.
     
@@ -36,49 +36,7 @@
     _isActionInformation = 1
     __allow_access_to_unprotected_subobjects__ = 1
 
-    manage_options = ( SimpleItemWithProperties.manage_options[:1]
-                     + ( { 'label': 'Actions'
-                         , 'action': 'manage_editActionsForm'
-                         }
-                       ,
-                       )
-                     + SimpleItemWithProperties.manage_options[1:]
-                     )
     security = ClassSecurityInfo()
-    security.declareProtected( ManagePortal
-                             , 'manage_editProperties'
-                             , 'manage_changeProperties'
-                             , 'manage_propertiesForm'
-                             )
-
-    _basic_properties = ( { 'id'    : 'title'
-                          , 'type'  : 'string'
-                          , 'mode'  : 'w'
-                          , 'label' : 'Title'
-                          }
-                        , { 'id'    : 'description'
-                          , 'type'  : 'text'
-                          , 'mode'  : 'w'
-                          , 'label' : 'Description'
-                          }
-                        , { 'id'    : 'category'
-                          , 'type'  : 'string'
-                          , 'mode'  : 'w'
-                          , 'label' : 'Category'
-                          }
-                        , { 'id'    : 'priority'
-                          , 'type'  : 'boolean'
-                          , 'mode'  :  'w'
-                          , 'label' : 'Priority'
-                          }
-                        )
-    title = ''
-    description = ''
-    category = ''
-    priority = 0
-    visible = 1
-    action = ''
-    condition = ''
 
     def __init__( self
                 , id