Commit 2ed3db2a authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

Base.py: clean the code.

parent be0a0566
......@@ -110,7 +110,6 @@ _MARKER = []
global registered_workflow_method_set
wildcard_interaction_method_id_match = re.compile(r'[[.?*+{(\\]').search
workflow_method_registry = [] # XXX A set() would be better but would require a hash in WorkflowMethod class
erp5workflow_method_registry = []
def resetRegisteredWorkflowMethod(portal_type=None):
"""
......@@ -119,10 +118,6 @@ def resetRegisteredWorkflowMethod(portal_type=None):
for method in workflow_method_registry:
method.reset(portal_type=portal_type)
def resetRegisteredERP5WorkflowMethod(portal_type=None):
for method in erp5workflow_method_registry:
method.reset(portal_type=portal_type)
class WorkflowMethod(Method):
def __init__(self, method, id=None, reindex=1):
......@@ -363,7 +358,6 @@ class PropertyHolder(object):
self.__name__ = name
self.security = ClassSecurityInfo() # We create a new security info object
self.workflow_method_registry = {}
self.erp5workflow_method_registry ={}
self._categories = []
self._properties = []
......
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