Commit 3ff80c38 authored by Jérome Perrin's avatar Jérome Perrin

remove LOG


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3765 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 91c4d67b
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from Globals import InitializeClass, DTMLFile from Globals import InitializeClass, DTMLFile
from Acquisition import aq_base from Acquisition import aq_base
from zLOG import LOG, DEBUG, BLATHER from zLOG import LOG, DEBUG
from Products.CMFCore.utils import getToolByName from Products.CMFCore.utils import getToolByName
from Products.ERP5Type.Tool.BaseTool import BaseTool from Products.ERP5Type.Tool.BaseTool import BaseTool
...@@ -71,8 +71,6 @@ class PreferenceTool(BaseTool): ...@@ -71,8 +71,6 @@ 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',
# 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 +87,6 @@ class PreferenceTool(BaseTool): ...@@ -89,8 +87,6 @@ class PreferenceTool(BaseTool):
else : else :
value = attr value = attr
if value not in (None, '', (), []) : if value not in (None, '', (), []) :
# LOG('PreferenceTool.getPreference',
# BLATHER, "found preference %s on %s"%(pref_name, pref))
return attr return attr
if found : if found :
return attr return attr
...@@ -137,7 +133,6 @@ class PreferenceTool(BaseTool): ...@@ -137,7 +133,6 @@ 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)
return attr_list return attr_list
_getValidPreferenceNames = CachingMethod( _getValidPreferenceNames = CachingMethod(
_getValidPreferenceNames, cache_duration = 600, _getValidPreferenceNames, cache_duration = 600,
...@@ -176,8 +171,6 @@ class PreferenceTool(BaseTool): ...@@ -176,8 +171,6 @@ 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',
# 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