Commit f6a7f159 authored by Jérome Perrin's avatar Jérome Perrin

clean up some commented out code

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28458 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8c4efa3a
...@@ -328,24 +328,16 @@ class PropertyHolder: ...@@ -328,24 +328,16 @@ class PropertyHolder:
accessor = Base._doNothing accessor = Base._doNothing
else: else:
# Case 2 : a workflow method over an accessor # Case 2 : a workflow method over an accessor
#LOG('createAccessor', 0, "%s %s %s" % (ptype, id, fake_accessor))
(accessor_class, accessor_args, key) = fake_accessor (accessor_class, accessor_args, key) = fake_accessor
accessor = accessor_class(id, key, *accessor_args) accessor = accessor_class(id, key, *accessor_args)
#permission = getattr(self, '%s__roles__' % id, None)
#if permission is not None:
#LOG('Found security declaration', 0, id)
#accessor.__roles__ = permission.__of__(self)
#LOG('Found security declaration2', 0, repr(permission.__of__(self)))
for wf_id, tr_id, once in self.workflow_method_registry.get(id, ()): for wf_id, tr_id, once in self.workflow_method_registry.get(id, ()):
if not isinstance(accessor, WorkflowMethod): if not isinstance(accessor, WorkflowMethod):
#LOG('createWorkflowMethod', 0, "%s %s %s %s" % (ptype, id, wf_id, tr_id))
accessor = WorkflowMethod(accessor) accessor = WorkflowMethod(accessor)
if once: if once:
accessor.registerTransitionOncePerTransaction(ptype, wf_id, tr_id) accessor.registerTransitionOncePerTransaction(ptype, wf_id, tr_id)
else: else:
accessor.registerTransitionAlways(ptype, wf_id, tr_id) accessor.registerTransitionAlways(ptype, wf_id, tr_id)
else: else:
#LOG('registerTransition', 0, "%s %s %s %s" % (ptype, id, wf_id, tr_id))
if once: if once:
accessor.registerTransitionOncePerTransaction(ptype, wf_id, tr_id) accessor.registerTransitionOncePerTransaction(ptype, wf_id, tr_id)
else: else:
......
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