Commit 9e3af3d7 authored by Jean-Paul Smets's avatar Jean-Paul Smets

added portal_type in class def


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@480 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 292c6f90
...@@ -42,6 +42,7 @@ class CategoryTool( CategoryTool ): ...@@ -42,6 +42,7 @@ class CategoryTool( CategoryTool ):
id = 'portal_categories' id = 'portal_categories'
meta_type = 'ERP5 Categories' meta_type = 'ERP5 Categories'
portal_type = 'Category Tool'
allowed_types = ( 'ERP5 Base Category',) allowed_types = ( 'ERP5 Base Category',)
# Declarative Security # Declarative Security
......
...@@ -45,6 +45,7 @@ class IdTool(UniqueObject, Folder): ...@@ -45,6 +45,7 @@ class IdTool(UniqueObject, Folder):
""" """
id = 'portal_ids' id = 'portal_ids'
meta_type = 'ERP5 Id Tool' meta_type = 'ERP5 Id Tool'
portal_type = 'Id Tool'
allowed_types = ( 'ERP5 Order Rule', 'ERP5 Transformation Rule',) allowed_types = ( 'ERP5 Order Rule', 'ERP5 Transformation Rule',)
# Declarative Security # Declarative Security
......
...@@ -59,6 +59,7 @@ class InterpolationTool (UniqueObject): ...@@ -59,6 +59,7 @@ class InterpolationTool (UniqueObject):
""" """
id = 'portal_interactions' id = 'portal_interactions'
meta_type = 'ERP5 Interaction Tool' meta_type = 'ERP5 Interaction Tool'
portal_type = 'Interpolation Tool'
security = ClassSecurityInfo() security = ClassSecurityInfo()
manage_options = ( { 'label' : 'Overview', 'action' : 'manage_overview' } manage_options = ( { 'label' : 'Overview', 'action' : 'manage_overview' }
......
...@@ -83,6 +83,7 @@ class RuleTool (UniqueObject, Folder): ...@@ -83,6 +83,7 @@ class RuleTool (UniqueObject, Folder):
""" """
id = 'portal_rules' id = 'portal_rules'
meta_type = 'ERP5 Rule Tool' meta_type = 'ERP5 Rule Tool'
portal_type = 'Rule Tool'
allowed_types = ( 'ERP5 Order Rule', 'ERP5 Transformation Rule', 'ERP5 Zero Stock Rule', 'ERP5 Delivery Rule') allowed_types = ( 'ERP5 Order Rule', 'ERP5 Transformation Rule', 'ERP5 Zero Stock Rule', 'ERP5 Delivery Rule')
# Declarative Security # Declarative Security
......
...@@ -89,6 +89,7 @@ class SimulationTool (Folder, UniqueObject): ...@@ -89,6 +89,7 @@ class SimulationTool (Folder, UniqueObject):
""" """
id = 'portal_simulation' id = 'portal_simulation'
meta_type = 'ERP5 Simulation Tool' meta_type = 'ERP5 Simulation Tool'
portal_type = 'Simulation Tool'
allowed_types = ( 'ERP5 Applied Rule', ) allowed_types = ( 'ERP5 Applied Rule', )
# Declarative Security # Declarative Security
......
...@@ -96,8 +96,8 @@ class TemplateTool (BaseTool): ...@@ -96,8 +96,8 @@ class TemplateTool (BaseTool):
""" """
id = 'portal_templates' id = 'portal_templates'
meta_type = 'ERP5 Template Tool' meta_type = 'ERP5 Template Tool'
allowed_types = ( 'ERP5 Business Template',)
portal_type = 'Template Tool' portal_type = 'Template Tool'
allowed_types = ( 'ERP5 Business Template',)
# Declarative Security # Declarative Security
security = ClassSecurityInfo() security = ClassSecurityInfo()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment