From 01fc73ca4c23471752b456edff6573069ed1f79e Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Tue, 7 Nov 2006 14:01:22 +0000 Subject: [PATCH] remove factory type information git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11164 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/MetaResource.py | 45 ----------------------- product/ERP5/Document/PaySheetLine.py | 53 --------------------------- 2 files changed, 98 deletions(-) diff --git a/product/ERP5/Document/MetaResource.py b/product/ERP5/Document/MetaResource.py index fb6e7c5b4b..6c6dc22a47 100644 --- a/product/ERP5/Document/MetaResource.py +++ b/product/ERP5/Document/MetaResource.py @@ -56,48 +56,3 @@ class MetaResource(Resource, CoreMetaResource): , PropertySheet.Resource ) - # Factory Type Information - factory_type_information = \ - { 'id' : portal_type - , 'meta_type' : meta_type - , 'description' : """\ -An Organisation object holds the information about -an organisation (ex. a division in a company, a company, -a service in a public administration).""" - , 'icon' : 'organisation_icon.gif' - , 'product' : 'ERP5' - , 'factory' : 'addOrganisation' - , 'immediate_view' : 'organisation_edit' - , 'actions' : - ( { 'id' : 'view' - , 'name' : 'View' - , 'category' : 'object_view' - , 'action' : 'organisation_edit' - , 'permissions' : ( - Permissions.View, ) - } - , { 'id' : 'print' - , 'name' : 'Print' - , 'category' : 'object_print' - , 'action' : 'organisation_print' - , 'permissions' : ( - Permissions.View, ) - } - , { 'id' : 'metadata' - , 'name' : 'Metadata' - , 'category' : 'object_edit' - , '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/PaySheetLine.py b/product/ERP5/Document/PaySheetLine.py index 2c3ed9a6be..16bb1bdea4 100644 --- a/product/ERP5/Document/PaySheetLine.py +++ b/product/ERP5/Document/PaySheetLine.py @@ -72,59 +72,6 @@ class PaySheetLine(InvoiceLine): , PropertySheet.CopyrightTax ) - # Factory Type Information - factory_type_information = \ - { 'id' : portal_type - , 'meta_type' : meta_type - , 'description' : """\ -""" - , 'icon' : 'order_line_icon.gif' - , 'product' : 'ERP5' - , 'factory' : 'addPaySheetLine' - , 'immediate_view' : 'PaySheetLine_view' - , 'allow_discussion' : 1 - , 'allowed_content_types': ('Pay Sheet Cell', - ) - , 'filter_content_types' : 1 - , 'global_allow' : 1 - , 'actions' : - ( { 'id' : 'view' - , 'name' : 'View' - , 'category' : 'object_view' - , 'action' : 'PaySheetLine_view' - , 'permissions' : ( - Permissions.View, ) - } - , { 'id' : 'list' - , 'name' : 'Object Contents' - , 'category' : 'object_action' - , 'action' : 'folder_contents' - , 'permissions' : ( - Permissions.View, ) - } - , { 'id' : 'quantity' - , 'name' : 'Quantity' - , 'category' : 'object_view' - , 'action' : 'PaySheetLine_quantityView' - , '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, ) - } - ) - } # Cell Related security.declareProtected( Permissions.ModifyPortalContent, 'newCellContent' ) -- 2.30.9