From c9aebfffd03e911abfc11e3417087b52bda32c90 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Mon, 6 Feb 2006 10:39:44 +0000
Subject: [PATCH] remove FTI and 'getEventState' workflow state method getter

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5568 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/Event.py | 53 +---------------------------------
 1 file changed, 1 insertion(+), 52 deletions(-)

diff --git a/product/ERP5/Document/Event.py b/product/ERP5/Document/Event.py
index 1ccdb08863..273eae05f2 100755
--- a/product/ERP5/Document/Event.py
+++ b/product/ERP5/Document/Event.py
@@ -50,7 +50,7 @@ class Event(Document):
     portal_type = 'Event'
     isPortalContent = 1
     isRADContent = 1
-
+    
     # Declarative security
     security = ClassSecurityInfo()
     security.declareObjectProtected(Permissions.AccessContentsInformation)
@@ -62,54 +62,3 @@ class Event(Document):
                       , PropertySheet.Task
                       )
 
-    # Factory Type Information
-    factory_type_information = \
-      {    'id'             : portal_type
-         , 'meta_type'      : meta_type
-         , 'description'    : """\
-An Event object holds the information about
-an event."""
-         , 'icon'           : 'event_icon.gif'
-         , 'product'        : 'ERP5'
-         , 'factory'        : 'addEvent'
-         , 'immediate_view' : 'event_edit'
-         , 'actions'        :
-        ( { 'id'            : 'view'
-          , 'name'          : 'View'
-          , 'category'      : 'object_view'
-          , 'action'        : 'event_view'
-          , 'permissions'   : (
-              Permissions.View, )
-          }
-        , { 'id'            : 'print'
-          , 'name'          : 'Print'
-          , 'category'      : 'object_print'
-          , 'action'        : 'event_view'
-          , 'permissions'   : (
-              Permissions.View, )
-          }
-        , { 'id'            : 'metadata'
-          , 'name'          : 'Metadata'
-          , 'category'      : 'object_view'
-          , 'action'        : 'metadata_edit'
-          , 'permissions'   : (
-              Permissions.View, )
-          }
-        , { 'id'            : 'translate'
-          , 'name'          : 'Translate'
-          , 'category'      : 'object_action'
-          , 'action'        : 'translation_template_view'
-          , 'permissions'   : (
-              Permissions.TranslateContent, )
-          }
-        )
-      }
-
-    security.declareProtected(Permissions.AccessContentsInformation, 'getSimulationState')
-    def getEventState(self, id_only=1):
-      """
-        Returns the current state in simulation
-      """
-      portal_workflow = getToolByName(self, 'portal_workflow')
-      wf = portal_workflow.getWorkflowById('event_workflow')
-      return wf._getWorkflowStateOf(self, id_only=id_only )
-- 
2.30.9