Commit 91033a59 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Disable too many LOG messages.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1496 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 496b7f84
...@@ -73,14 +73,14 @@ aq_method_generated = {} ...@@ -73,14 +73,14 @@ aq_method_generated = {}
def initializeDynamicProperties(self, klass): def initializeDynamicProperties(self, klass):
id = '' id = ''
LOG('before aq_method_generated %s' % id, 0, str(klass.__name__)) #LOG('before aq_method_generated %s' % id, 0, str(klass.__name__))
if not aq_method_generated.has_key(klass): if not aq_method_generated.has_key(klass):
aq_method_generated[klass] = 1 aq_method_generated[klass] = 1
# Recurse to superclasses # Recurse to superclasses
for super_klass in klass.__bases__: for super_klass in klass.__bases__:
if getattr(super_klass, 'isRADContent', 0): initializeDynamicProperties(None, super_klass) if getattr(super_klass, 'isRADContent', 0): initializeDynamicProperties(None, super_klass)
# Initialize default properties # Initialize default properties
LOG('in aq_method_generated %s' % id, 0, str(klass.__name__)) #LOG('in aq_method_generated %s' % id, 0, str(klass.__name__))
from Utils import initializeDefaultProperties from Utils import initializeDefaultProperties
initializeDefaultProperties([klass]) initializeDefaultProperties([klass])
if self is not None: if self is not None:
...@@ -105,7 +105,7 @@ def initializeDynamicProperties(self, klass): ...@@ -105,7 +105,7 @@ def initializeDynamicProperties(self, klass):
'Could not generate worklow state method for workflow %s on class %s.' % (wf_id, klass), 'Could not generate worklow state method for workflow %s on class %s.' % (wf_id, klass),
error=sys.exc_info()) error=sys.exc_info())
try: try:
LOG('in aq_method_generated %s' % id, 0, "found transition workflow %s" % wf.id) #LOG('in aq_method_generated %s' % id, 0, "found transition workflow %s" % wf.id)
if wf.__class__.__name__ in ('DCWorkflowDefinition', ): if wf.__class__.__name__ in ('DCWorkflowDefinition', ):
for tr_id in wf.transitions.objectIds(): for tr_id in wf.transitions.objectIds():
tdef = wf.transitions.get(tr_id, None) tdef = wf.transitions.get(tr_id, None)
......
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