Commit 8e01f703 authored by Vincent Pelletier's avatar Vincent Pelletier

Shortcut security checks on ActiveWrapper and Method.

Without this, __getattr__ is executed 3 times per restricted_getattr call.
With, it's (still) called twice.
parent 9c247304
......@@ -459,6 +459,9 @@ class Method:
allow_class(Method)
class ActiveWrapper:
# Shortcut security lookup (avoid calling __getattr__)
__parent__ = None
def __init__(self, portal_activities, passive_self, activity, active_process, kw, request):
# second parameter can be an object or an object's path
self.__dict__['__portal_activities'] = portal_activities
......
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