Commit 32065c91 by Dudás Ádám

vm: better name of local var

parent 4bf7ec58
......@@ -28,11 +28,11 @@ class Operation(object):
def __prelude(self, kwargs):
"""This method contains the shared prelude of call and async.
skip_checks = kwargs.setdefault('system', False)
skip_auth_check = kwargs.setdefault('system', False)
user = kwargs.setdefault('user', None)
parent_activity = kwargs.pop('parent_activity', None)
if not skip_checks:
if not skip_auth_check:
return self.create_activity(parent=parent_activity, user=user)
......@@ -42,8 +42,7 @@ class Operation(object):
with activity_context(activity, on_abort=self.on_abort,
return self._operation(activity=activity, user=user,
return self._operation(activity=activity, user=user, **kwargs)
def _operation(self, activity, user, system, **kwargs):
"""This method is the operation's particular implementation.
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 sign in to comment