Commit d661b64a authored by Romain Courteaud's avatar Romain Courteaud

Please do not commit to many LOG.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3211 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4b9232a2
...@@ -1884,12 +1884,12 @@ def new_traverse(self, path, response=None, validated_hook=None) : ...@@ -1884,12 +1884,12 @@ def new_traverse(self, path, response=None, validated_hook=None) :
portal_type_object = getattr(object.portal_types, portal_type_getter(), None) portal_type_object = getattr(object.portal_types, portal_type_getter(), None)
if portal_type_object is not None : if portal_type_object is not None :
allowed = portal_type_object.isActionAllowed(action=object_id) allowed = portal_type_object.isActionAllowed(action=object_id)
LOG('My Traverse allowed', 0, repr(( path, object, allowed ))) # LOG('My Traverse allowed', 0, repr(( path, object, allowed )))
if allowed == 0 : if allowed == 0 :
LOG('My Traverse failed after TIMEEEEEEEEEEE', 0, time.time() - start_time) LOG('My Traverse failed after TIMEEEEEEEEEEE', 0, time.time() - start_time)
response.unauthorized() response.unauthorized()
LOG('My Traverse succeded after TIMEEEEEEEEEEE', 0, time.time() - start_time) # LOG('My Traverse succeded after TIMEEEEEEEEEEE', 0, time.time() - start_time)
return object return object
BaseRequest.traverse = new_traverse BaseRequest.traverse = new_traverse
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