Commit f2071c39 authored by Rafael Monnerat's avatar Rafael Monnerat Committed by Xiaowu Zhang

Remove logs for debug only.

parent 53360432
......@@ -649,7 +649,6 @@ class ERP5Form(ZMIForm, ZopePageTemplate):
here=obj,
context=obj,
)
LOG('ERP5Form/Form.py:__call__', 0, '%s %s ' % (self.pt, extra_context))
security = getSecurityManager()
......@@ -660,14 +659,12 @@ class ERP5Form(ZMIForm, ZopePageTemplate):
keyset = {'here': self._getContext(),
'options': kwargs}
LOG('ERP5Form/Form.py:__call__', 0, '%s %s %s' % (self.pt, keyset, self.ZCacheable_isCachingEnabled()))
result = self.ZCacheable_get(keywords=keyset)
if result is not None:
# Got a cached value.
return result
# Execute the template in a new security context.
LOG('ERP5Form/Form.py:__call__', 0, '%s %s %s' % (self.pt, keyset, self.ZCacheable_isCachingEnabled()))
result = pt.pt_render(extra_context=extra_context)
if keyset is not None:
# Store the result in the cache.
......@@ -676,7 +673,6 @@ class ERP5Form(ZMIForm, ZopePageTemplate):
def _exec(self, bound_names, args, kw):
pt = getattr(self,self.pt)
LOG('ERP5Form/Form.py:_exec', 0, '%s %s ' % (self.pt, bound_names))
return pt._exec(self, bound_names, args, kw)
def manage_renameObject(self, id, new_id, REQUEST=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