Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gutyán Gábor
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
01bd7884
authored
Jul 24, 2014
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: wait for renew's result
parent
61a38f2e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
circle/dashboard/views.py
+8
-0
No files found.
circle/dashboard/views.py
View file @
01bd7884
...
...
@@ -849,6 +849,7 @@ class VmRenewView(FormOperationMixin, TokenOperationView, VmOperationView):
effect
=
'info'
show_in_toolbar
=
False
form_class
=
VmRenewForm
wait_for_result
=
0.5
def
get_form_kwargs
(
self
):
choices
=
Lease
.
get_objects_with_level
(
"user"
,
self
.
request
.
user
)
...
...
@@ -861,6 +862,13 @@ class VmRenewView(FormOperationMixin, TokenOperationView, VmOperationView):
val
.
update
({
'choices'
:
choices
,
'default'
:
default
})
return
val
def
get_response_data
(
self
,
result
,
extra
,
**
kwargs
):
extra
=
super
(
VmRenewView
,
self
)
.
get_response_data
(
result
,
extra
,
**
kwargs
)
extra
[
"new_suspend_time"
]
=
unicode
(
self
.
get_op
()
.
instance
.
time_of_suspend
)
return
extra
vm_ops
=
OrderedDict
([
(
'deploy'
,
VmOperationView
.
factory
(
...
...
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