Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
32065c91
authored
Apr 18, 2014
by
Dudás Ádám
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: better name of local var
parent
4bf7ec58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
circle/common/operations.py
+3
-4
No files found.
circle/common/operations.py
View file @
32065c91
...
@@ -28,11 +28,11 @@ class Operation(object):
...
@@ -28,11 +28,11 @@ class Operation(object):
def
__prelude
(
self
,
kwargs
):
def
__prelude
(
self
,
kwargs
):
"""This method contains the shared prelude of call and async.
"""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
)
user
=
kwargs
.
setdefault
(
'user'
,
None
)
parent_activity
=
kwargs
.
pop
(
'parent_activity'
,
None
)
parent_activity
=
kwargs
.
pop
(
'parent_activity'
,
None
)
if
not
skip_
checks
:
if
not
skip_
auth_check
:
self
.
check_auth
(
user
)
self
.
check_auth
(
user
)
self
.
check_precond
()
self
.
check_precond
()
return
self
.
create_activity
(
parent
=
parent_activity
,
user
=
user
)
return
self
.
create_activity
(
parent
=
parent_activity
,
user
=
user
)
...
@@ -42,8 +42,7 @@ class Operation(object):
...
@@ -42,8 +42,7 @@ class Operation(object):
"""
"""
with
activity_context
(
activity
,
on_abort
=
self
.
on_abort
,
with
activity_context
(
activity
,
on_abort
=
self
.
on_abort
,
on_commit
=
self
.
on_commit
):
on_commit
=
self
.
on_commit
):
return
self
.
_operation
(
activity
=
activity
,
user
=
user
,
return
self
.
_operation
(
activity
=
activity
,
user
=
user
,
**
kwargs
)
**
kwargs
)
def
_operation
(
self
,
activity
,
user
,
system
,
**
kwargs
):
def
_operation
(
self
,
activity
,
user
,
system
,
**
kwargs
):
"""This method is the operation's particular implementation.
"""This method is the operation's particular implementation.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment