From 9e3af3d70dc3635156dd25863e10d41d0f1e1ad3 Mon Sep 17 00:00:00 2001 From: Jean-Paul Smets <jp@nexedi.com> Date: Mon, 16 Feb 2004 16:54:43 +0000 Subject: [PATCH] added portal_type in class def git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@480 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Tool/CategoryTool.py | 1 + product/ERP5/Tool/IdTool.py | 1 + product/ERP5/Tool/InterpolationTool.py | 1 + product/ERP5/Tool/RuleTool.py | 1 + product/ERP5/Tool/SimulationTool.py | 1 + product/ERP5/Tool/TemplateTool.py | 2 +- 6 files changed, 6 insertions(+), 1 deletion(-) diff --git a/product/ERP5/Tool/CategoryTool.py b/product/ERP5/Tool/CategoryTool.py index a98bbe6799..7d74fee9a1 100755 --- a/product/ERP5/Tool/CategoryTool.py +++ b/product/ERP5/Tool/CategoryTool.py @@ -42,6 +42,7 @@ class CategoryTool( CategoryTool ): id = 'portal_categories' meta_type = 'ERP5 Categories' + portal_type = 'Category Tool' allowed_types = ( 'ERP5 Base Category',) # Declarative Security diff --git a/product/ERP5/Tool/IdTool.py b/product/ERP5/Tool/IdTool.py index 679e57c6dd..816684489e 100755 --- a/product/ERP5/Tool/IdTool.py +++ b/product/ERP5/Tool/IdTool.py @@ -45,6 +45,7 @@ class IdTool(UniqueObject, Folder): """ id = 'portal_ids' meta_type = 'ERP5 Id Tool' + portal_type = 'Id Tool' allowed_types = ( 'ERP5 Order Rule', 'ERP5 Transformation Rule',) # Declarative Security diff --git a/product/ERP5/Tool/InterpolationTool.py b/product/ERP5/Tool/InterpolationTool.py index d14949938c..4303521863 100755 --- a/product/ERP5/Tool/InterpolationTool.py +++ b/product/ERP5/Tool/InterpolationTool.py @@ -59,6 +59,7 @@ class InterpolationTool (UniqueObject): """ id = 'portal_interactions' meta_type = 'ERP5 Interaction Tool' + portal_type = 'Interpolation Tool' security = ClassSecurityInfo() manage_options = ( { 'label' : 'Overview', 'action' : 'manage_overview' } diff --git a/product/ERP5/Tool/RuleTool.py b/product/ERP5/Tool/RuleTool.py index a30f2c8e57..10961ae35e 100755 --- a/product/ERP5/Tool/RuleTool.py +++ b/product/ERP5/Tool/RuleTool.py @@ -83,6 +83,7 @@ class RuleTool (UniqueObject, Folder): """ id = 'portal_rules' meta_type = 'ERP5 Rule Tool' + portal_type = 'Rule Tool' allowed_types = ( 'ERP5 Order Rule', 'ERP5 Transformation Rule', 'ERP5 Zero Stock Rule', 'ERP5 Delivery Rule') # Declarative Security diff --git a/product/ERP5/Tool/SimulationTool.py b/product/ERP5/Tool/SimulationTool.py index ae8592a570..005e886c6d 100755 --- a/product/ERP5/Tool/SimulationTool.py +++ b/product/ERP5/Tool/SimulationTool.py @@ -89,6 +89,7 @@ class SimulationTool (Folder, UniqueObject): """ id = 'portal_simulation' meta_type = 'ERP5 Simulation Tool' + portal_type = 'Simulation Tool' allowed_types = ( 'ERP5 Applied Rule', ) # Declarative Security diff --git a/product/ERP5/Tool/TemplateTool.py b/product/ERP5/Tool/TemplateTool.py index bd0fdfefcd..67360a0743 100755 --- a/product/ERP5/Tool/TemplateTool.py +++ b/product/ERP5/Tool/TemplateTool.py @@ -96,8 +96,8 @@ class TemplateTool (BaseTool): """ id = 'portal_templates' meta_type = 'ERP5 Template Tool' - allowed_types = ( 'ERP5 Business Template',) portal_type = 'Template Tool' + allowed_types = ( 'ERP5 Business Template',) # Declarative Security security = ClassSecurityInfo() -- 2.30.9