From 94e32900c770c2f68bae4000d3870385dfdfa5ac Mon Sep 17 00:00:00 2001 From: Jean-Paul Smets <jp@nexedi.com> Date: Sun, 17 Sep 2006 12:27:20 +0000 Subject: [PATCH] Removed Factory Type Information git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10046 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/ProjectReport.py | 46 +------------------ product/ERP5/Document/SetPricing.py | 54 ----------------------- product/ERP5/Document/Transaction.py | 54 ----------------------- product/ERP5/Document/VariatedProperty.py | 43 ------------------ 4 files changed, 1 insertion(+), 196 deletions(-) diff --git a/product/ERP5/Document/ProjectReport.py b/product/ERP5/Document/ProjectReport.py index 9fd71620b2..b68d400ad8 100644 --- a/product/ERP5/Document/ProjectReport.py +++ b/product/ERP5/Document/ProjectReport.py @@ -43,6 +43,7 @@ class ProjectReport(Delivery): The amount of time on a particular project relates to a client. A expense relates to a project. + OUTPHASED BY TASK REPORT """ meta_type = 'ERP5 Project Report' @@ -67,48 +68,3 @@ class ProjectReport(Delivery): # Declarative Interface __implements__ = ( ) - # Factory Type Information - factory_type_information = \ - { 'id' : portal_type - , 'meta_type' : meta_type - , 'description' : 'Use Project Report to track times and expenses in a consulting firm' - , 'icon' : 'document_icon.gif' - , 'product' : 'ERP5' - , 'factory' : 'addProjectReport' - , 'immediate_view' : 'project_report_view' - , 'allow_discussion' : 1 - , 'allowed_content_types': ('Delivery Line', - ) - , 'actions' : - ( { 'id' : 'view' - , 'name' : 'View' - , 'action' : 'project_report_view' - , 'category' : 'object_view' - , 'permissions' : ( - Permissions.View, ) - } - , { 'id' : 'print' - , 'name' : 'Print' - , 'action' : 'project_report_print' - , 'category' : 'object_print' - , 'permissions' : ( - Permissions.View, ) - } - , { 'id' : 'metadata' - , 'name' : 'Metadata' - , 'action' : 'metadata_edit' - , 'category' : 'object_view' - , 'permissions' : ( - Permissions.ModifyPortalContent, ) - } - , { 'id' : 'translate' - , 'name' : 'Translate' - , 'action' : 'translation_template' - , 'category' : 'object_action' - , 'permissions' : ( - Permissions.View, ) - } - ) - } - - diff --git a/product/ERP5/Document/SetPricing.py b/product/ERP5/Document/SetPricing.py index a4387ca8ad..075691aac0 100644 --- a/product/ERP5/Document/SetPricing.py +++ b/product/ERP5/Document/SetPricing.py @@ -58,60 +58,6 @@ class SetPricing(MappedValue, XMLMatrix): , PropertySheet.Pricing ) - # Factory Type Information - factory_type_information = \ - { 'id' : portal_type - , 'meta_type' : meta_type - , 'description' : """\ -Une ligne tarifaire.""" - , 'icon' : 'pricing_icon.gif' - , 'product' : 'ERP5' - , 'factory' : 'addPricing' - , 'immediate_view' : 'pricing_view' - , 'allow_discussion' : 1 - , 'allowed_content_types': ('', - ) - , 'filter_content_types' : 1 - , 'global_allow' : 1 - , 'actions' : - ( { 'id' : 'view' - , 'name' : 'View' - , 'category' : 'object_view' - , 'action' : 'pricing_view' - , 'permissions' : ( - Permissions.View, ) - } - , { 'id' : 'list' - , 'name' : 'Object Contents' - , 'category' : 'object_action' - , 'action' : 'folder_contents' - , 'permissions' : ( - Permissions.View, ) - } - , { 'id' : 'print' - , 'name' : 'Print' - , 'category' : 'object_print' - , 'action' : 'pricing_print' - , '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.ModifyPortalContent, '_setQuantityRangeList') def _setQuantityRangeList(self, category_list): """ diff --git a/product/ERP5/Document/Transaction.py b/product/ERP5/Document/Transaction.py index 8d2f512ed1..eb78638cca 100644 --- a/product/ERP5/Document/Transaction.py +++ b/product/ERP5/Document/Transaction.py @@ -62,57 +62,3 @@ class Transaction(Delivery): , PropertySheet.Reference ) - # CMF Factory Type Information - factory_type_information = \ - { 'id' : portal_type - , 'meta_type' : meta_type - , 'description' : """\ -An order...""" - , 'icon' : 'transaction_icon.gif' - , 'product' : 'ERP5' - , 'factory' : 'addTransaction' - , 'immediate_view' : 'transaction_view' - , 'allow_discussion' : 1 - , 'allowed_content_types': ('Movement', - ) - , 'filter_content_types' : 1 - , 'global_allow' : 1 - , 'actions' : - ( { 'id' : 'view' - , 'name' : 'View' - , 'category' : 'object_view' - , 'action' : 'transaction_view' - , 'permissions' : ( - Permissions.View, ) - } - , { 'id' : 'list' - , 'name' : 'Object Contents' - , 'category' : 'object_action' - , 'action' : 'folder_contents' - , 'permissions' : ( - Permissions.View, ) - } - , { 'id' : 'print' - , 'name' : 'Print' - , 'category' : 'object_print' - , 'action' : 'transaction_print' - , '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, ) - } - ) - } - diff --git a/product/ERP5/Document/VariatedProperty.py b/product/ERP5/Document/VariatedProperty.py index 88fb222ce5..a4ccad6c28 100644 --- a/product/ERP5/Document/VariatedProperty.py +++ b/product/ERP5/Document/VariatedProperty.py @@ -67,49 +67,6 @@ class VariatedProperty(XMLObject, XMLMatrix): # Declarative interfaces __implements__ = ( Interface.Variated, ) - # Factory Type Information - factory_type_information = \ - { 'id' : portal_type - , 'meta_type' : meta_type - , 'description' : """\ -A VariatedProperty.""" - , 'icon' : 'variated_reference_icon.gif' - , 'product' : 'ERP5' - , 'factory' : 'addVariatedProperty' - , 'immediate_view' : 'variated_property_view' - , 'actions' : - ( { 'id' : 'view' - , 'name' : 'View' - , 'category' : 'object_view' - , 'action' : 'variated_property_view' - , 'permissions' : ( - Permissions.View, ) - } - , { 'id' : 'print' - , 'name' : 'Print' - , 'category' : 'object_print' - , 'action' : 'variated_reference_print' - , '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.ModifyPortalContent, 'newCellContent' ) def newCellContent(self, id, **kw): """ -- 2.30.9