Commit 0c670c35 authored by Romain Courteaud's avatar Romain Courteaud

Remove some boring LOG messages.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3758 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ccd0a231
...@@ -71,8 +71,8 @@ class PreferenceTool(BaseTool): ...@@ -71,8 +71,8 @@ class PreferenceTool(BaseTool):
if aq_base_name is not None : if aq_base_name is not None :
return aq_base_name return aq_base_name
if name in self.getValidPreferenceNames() : if name in self.getValidPreferenceNames() :
LOG('PreferenceTool._aq_dynamic', # LOG('PreferenceTool._aq_dynamic',
BLATHER, "good preference %s, looking up ..."%name) # BLATHER, "good preference %s, looking up ..."%name)
return self.getPreference(name) return self.getPreference(name)
security.declareProtected(Permissions.View, "getPreference") security.declareProtected(Permissions.View, "getPreference")
...@@ -89,8 +89,8 @@ class PreferenceTool(BaseTool): ...@@ -89,8 +89,8 @@ class PreferenceTool(BaseTool):
else : else :
value = attr value = attr
if value not in (None, '', (), []) : if value not in (None, '', (), []) :
LOG('PreferenceTool.getPreference', # LOG('PreferenceTool.getPreference',
BLATHER, "found preference %s on %s"%(pref_name, pref)) # BLATHER, "found preference %s on %s"%(pref_name, pref))
return attr return attr
if found : if found :
return attr return attr
...@@ -137,7 +137,7 @@ class PreferenceTool(BaseTool): ...@@ -137,7 +137,7 @@ class PreferenceTool(BaseTool):
'get%sIdList' % convertToUpperCase(attribute), 'get%sIdList' % convertToUpperCase(attribute),
'get%sTitleList' % convertToUpperCase(attribute), 'get%sTitleList' % convertToUpperCase(attribute),
'get%sList' % convertToUpperCase(attribute), ] 'get%sList' % convertToUpperCase(attribute), ]
LOG('PreferenceTool.getValidPreferenceNames', BLATHER, attr_list) # LOG('PreferenceTool.getValidPreferenceNames', BLATHER, attr_list)
return attr_list return attr_list
_getValidPreferenceNames = CachingMethod( _getValidPreferenceNames = CachingMethod(
_getValidPreferenceNames, cache_duration = 600, _getValidPreferenceNames, cache_duration = 600,
...@@ -176,8 +176,8 @@ class PreferenceTool(BaseTool): ...@@ -176,8 +176,8 @@ class PreferenceTool(BaseTool):
if hasattr(doc, 'getTemplateDestinationUidList') and \ if hasattr(doc, 'getTemplateDestinationUidList') and \
folder.getUid() in doc.getTemplateDestinationUidList() : folder.getUid() in doc.getTemplateDestinationUidList() :
acceptable_templates.append (doc) acceptable_templates.append (doc)
LOG('PreferenceTool.getDocumentTemplatesForFolder', # LOG('PreferenceTool.getDocumentTemplatesForFolder',
BLATHER, 'templates for %s : %s' % (folder, acceptable_templates)) # BLATHER, 'templates for %s : %s' % (folder, acceptable_templates))
return acceptable_templates return acceptable_templates
security.declareProtected(Permissions.ManagePortal, security.declareProtected(Permissions.ManagePortal,
......
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