Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
c851d508
authored
Aug 19, 2014
by
Csók Tamás
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
views.py: views.py: Added connect_uri to response[]
parent
933e9587
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
circle/dashboard/views.py
+3
-2
No files found.
circle/dashboard/views.py
View file @
c851d508
...
@@ -924,7 +924,7 @@ class VmRenewView(FormOperationMixin, TokenOperationView, VmOperationView):
...
@@ -924,7 +924,7 @@ class VmRenewView(FormOperationMixin, TokenOperationView, VmOperationView):
val
=
super
(
VmRenewView
,
self
)
.
get_form_kwargs
()
val
=
super
(
VmRenewView
,
self
)
.
get_form_kwargs
()
val
.
update
({
'choices'
:
choices
,
'default'
:
default
})
val
.
update
({
'choices'
:
choices
,
'default'
:
default
})
return
val
return
val
def
get_response_data
(
self
,
result
,
done
,
extra
=
None
,
**
kwargs
):
def
get_response_data
(
self
,
result
,
done
,
extra
=
None
,
**
kwargs
):
extra
=
super
(
VmRenewView
,
self
)
.
get_response_data
(
result
,
done
,
extra
=
super
(
VmRenewView
,
self
)
.
get_response_data
(
result
,
done
,
extra
,
**
kwargs
)
extra
,
**
kwargs
)
...
@@ -2460,7 +2460,8 @@ def vm_activity(request, pk):
...
@@ -2460,7 +2460,8 @@ def vm_activity(request, pk):
show_show_all
=
len
(
activities
)
>
10
show_show_all
=
len
(
activities
)
>
10
if
not
show_all
:
if
not
show_all
:
activities
=
activities
[:
10
]
activities
=
activities
[:
10
]
response
[
'connect_uri'
]
=
instance
.
get_connect_uri
()
response
[
'human_readable_status'
]
=
instance
.
get_status_display
()
response
[
'human_readable_status'
]
=
instance
.
get_status_display
()
response
[
'status'
]
=
instance
.
status
response
[
'status'
]
=
instance
.
status
response
[
'icon'
]
=
instance
.
get_status_icon
()
response
[
'icon'
]
=
instance
.
get_status_icon
()
...
...
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