Commit 66451cdb authored by Romain Courteaud's avatar Romain Courteaud

Remove Factory Type Information.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3413 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ee4470e3
......@@ -56,9 +56,6 @@ class AppliedRule(XMLObject):
# CMF Type Definition
meta_type = 'ERP5 Applied Rule'
portal_type = 'Applied Rule'
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
# Declarative security
security = ClassSecurityInfo()
......@@ -72,59 +69,6 @@ class AppliedRule(XMLObject):
, PropertySheet.AppliedRule
)
# CMF Factory Type Information
factory_type_information = \
{ 'id' : portal_type
, 'meta_type' : meta_type
, 'description' : """\
An ERP5 Rule..."""
, 'icon' : 'applied_rule_icon.gif'
, 'product' : 'ERP5'
, 'factory' : 'addAppliedRule'
, 'immediate_view' : 'applied_rule_view'
, 'allow_discussion' : 1
, 'allowed_content_types': ('Simulation Movement',)
, 'filter_content_types' : 1
, 'global_allow' : 1
, 'actions' :
( { 'id' : 'view'
, 'name' : 'View'
, 'category' : 'object_view'
, 'action' : 'applied_rule_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' : 'applied_rule_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.AccessContentsInformation, 'getCausalityState')
def getCausalityState(self, id_only=1):
"""
......@@ -175,7 +119,8 @@ An ERP5 Rule..."""
rule = self.getSpecialiseValue()
if rule is not None:
if self.isRootAppliedRule():
rule._v_notify_dict = {} # We should capture here a list of url/uids of deliveires to update
# We should capture here a list of url/uids of deliveires to update
rule._v_notify_dict = {}
rule.expand(self,**kw)
if self.isRootAppliedRule():
self.activate(after_method_id=["immediateReindexObject", "recursiveImmediateReindexObject"]).notifySimulationChange(rule._v_notify_dict)
......
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