Commit d66e5c9b authored by Yoshinori Okuji's avatar Yoshinori Okuji

Be quiet.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1738 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a5538f97
...@@ -73,14 +73,14 @@ class ValueGetter(Method): ...@@ -73,14 +73,14 @@ class ValueGetter(Method):
else: else:
default_result = self._default default_result = self._default
o = None o = None
LOG('ValueGetter.__call__, default',0,self._default) #LOG('ValueGetter.__call__, default',0,self._default)
LOG('ValueGetter.__call__, storage_id_list',0,self._storage_id_list) #LOG('ValueGetter.__call__, storage_id_list',0,self._storage_id_list)
LOG('ValueGetter.__call__, portal_type',0,self._portal_type) #LOG('ValueGetter.__call__, portal_type',0,self._portal_type)
for k in self._storage_id_list: for k in self._storage_id_list:
o = getattr(instance, k, None) o = getattr(instance, k, None)
LOG('ValueGetter.__call__, o',0,o) #LOG('ValueGetter.__call__, o',0,o)
if o is not None and (o.portal_type is None or o.portal_type in self._portal_type): if o is not None and (o.portal_type is None or o.portal_type in self._portal_type):
LOG('ValueGetter.__call__, o will be returned...',0,'ok') #LOG('ValueGetter.__call__, o will be returned...',0,'ok')
return o return o
return default_result return default_result
......
...@@ -74,14 +74,14 @@ class ValueGetter(Method): ...@@ -74,14 +74,14 @@ class ValueGetter(Method):
else: else:
default_result = self._default default_result = self._default
o = None o = None
LOG('ValueGetter.__call__, default',0,self._default) #LOG('ValueGetter.__call__, default',0,self._default)
LOG('ValueGetter.__call__, storage_id_list',0,self._storage_id_list) #LOG('ValueGetter.__call__, storage_id_list',0,self._storage_id_list)
LOG('ValueGetter.__call__, portal_type',0,self._portal_type) #LOG('ValueGetter.__call__, portal_type',0,self._portal_type)
for k in self._storage_id_list: for k in self._storage_id_list:
o = getattr(instance, k, None) o = getattr(instance, k, None)
LOG('ValueGetter.__call__, o',0,o) #LOG('ValueGetter.__call__, o',0,o)
if o is not None and (o.portal_type is None or o.portal_type in self._portal_type): if o is not None and (o.portal_type is None or o.portal_type in self._portal_type):
LOG('ValueGetter.__call__, o will be returned...',0,'ok') #LOG('ValueGetter.__call__, o will be returned...',0,'ok')
return o return o
return default_result return default_result
......
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