diff --git a/product/ERP5Type/Accessor/Content.py b/product/ERP5Type/Accessor/Content.py index a481d94823536df35a35e7e3a1ac9e3bc5b7e70c..1f26f09afbbddff021f175098db998ad235e64e7 100755 --- a/product/ERP5Type/Accessor/Content.py +++ b/product/ERP5Type/Accessor/Content.py @@ -73,14 +73,14 @@ class ValueGetter(Method): else: default_result = self._default o = None - LOG('ValueGetter.__call__, default',0,self._default) - LOG('ValueGetter.__call__, storage_id_list',0,self._storage_id_list) - LOG('ValueGetter.__call__, portal_type',0,self._portal_type) + #LOG('ValueGetter.__call__, default',0,self._default) + #LOG('ValueGetter.__call__, storage_id_list',0,self._storage_id_list) + #LOG('ValueGetter.__call__, portal_type',0,self._portal_type) for k in self._storage_id_list: 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): - LOG('ValueGetter.__call__, o will be returned...',0,'ok') + #LOG('ValueGetter.__call__, o will be returned...',0,'ok') return o return default_result diff --git a/product/ERP5Type/Accessor/ContentProperty.py b/product/ERP5Type/Accessor/ContentProperty.py index f39b22b288983cbf39ee8cddb61c3d9de9d06a38..1722ae211725c83bd0d4bd05a2f45fef509dde08 100755 --- a/product/ERP5Type/Accessor/ContentProperty.py +++ b/product/ERP5Type/Accessor/ContentProperty.py @@ -74,14 +74,14 @@ class ValueGetter(Method): else: default_result = self._default o = None - LOG('ValueGetter.__call__, default',0,self._default) - LOG('ValueGetter.__call__, storage_id_list',0,self._storage_id_list) - LOG('ValueGetter.__call__, portal_type',0,self._portal_type) + #LOG('ValueGetter.__call__, default',0,self._default) + #LOG('ValueGetter.__call__, storage_id_list',0,self._storage_id_list) + #LOG('ValueGetter.__call__, portal_type',0,self._portal_type) for k in self._storage_id_list: 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): - LOG('ValueGetter.__call__, o will be returned...',0,'ok') + #LOG('ValueGetter.__call__, o will be returned...',0,'ok') return o return default_result