Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
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
348c390e
authored
Feb 22, 2018
by
Szabolcs Gelencser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix logging of sync instance operation call, rr eadable_state
parent
a1d135bf
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
64 additions
and
59 deletions
+64
-59
.idea/workspace.xml
+61
-56
circle/common/operations.py
+1
-1
circle/dashboard/views/vm.py
+1
-1
circle/vm/models/instance.py
+1
-1
No files found.
.idea/workspace.xml
View file @
348c390e
...
@@ -3,14 +3,9 @@
...
@@ -3,14 +3,9 @@
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"1fbec8af-5a7c-40f9-b994-83ac07d1ae1d"
name=
"Default"
comment=
""
>
<list
default=
"true"
id=
"1fbec8af-5a7c-40f9-b994-83ac07d1ae1d"
name=
"Default"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
/>
<change
beforePath=
"$PROJECT_DIR$/circle/acl/models.py"
afterPath=
"$PROJECT_DIR$/circle/acl/models.py"
/>
<change
beforePath=
"$PROJECT_DIR$/circle/circle/db.sqlite3"
afterPath=
"$PROJECT_DIR$/circle/circle/db.sqlite3"
/>
<change
beforePath=
"$PROJECT_DIR$/circle/common/operations.py"
afterPath=
"$PROJECT_DIR$/circle/common/operations.py"
/>
<change
beforePath=
"$PROJECT_DIR$/circle/common/operations.py"
afterPath=
"$PROJECT_DIR$/circle/common/operations.py"
/>
<change
beforePath=
"$PROJECT_DIR$/circle/dashboard/urls.py"
afterPath=
"$PROJECT_DIR$/circle/dashboard/urls.py"
/>
<change
beforePath=
"$PROJECT_DIR$/circle/dashboard/views/util.py"
afterPath=
"$PROJECT_DIR$/circle/dashboard/views/util.py"
/>
<change
beforePath=
"$PROJECT_DIR$/circle/dashboard/views/vm.py"
afterPath=
"$PROJECT_DIR$/circle/dashboard/views/vm.py"
/>
<change
beforePath=
"$PROJECT_DIR$/circle/dashboard/views/vm.py"
afterPath=
"$PROJECT_DIR$/circle/dashboard/views/vm.py"
/>
<change
beforePath=
"$PROJECT_DIR$/circle/vm/models/instance.py"
afterPath=
"$PROJECT_DIR$/circle/vm/models/instance.py"
/>
<change
beforePath=
"$PROJECT_DIR$/circle/vm/models/instance.py"
afterPath=
"$PROJECT_DIR$/circle/vm/models/instance.py"
/>
<change
beforePath=
"$PROJECT_DIR$/circle/vm/operations.py"
afterPath=
"$PROJECT_DIR$/circle/vm/operations.py"
/>
</list>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"TRACKING_ENABLED"
value=
"true"
/>
<option
name=
"TRACKING_ENABLED"
value=
"true"
/>
...
@@ -40,7 +35,7 @@
...
@@ -40,7 +35,7 @@
<entry
file=
"file://$PROJECT_DIR$/circle/dashboard/urls.py"
>
<entry
file=
"file://$PROJECT_DIR$/circle/dashboard/urls.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"163"
>
<state
relative-caret-position=
"163"
>
<caret
line=
"101"
column=
"35"
lean-forward=
"
tru
e"
selection-start-line=
"101"
selection-start-column=
"35"
selection-end-line=
"101"
selection-end-column=
"35"
/>
<caret
line=
"101"
column=
"35"
lean-forward=
"
fals
e"
selection-start-line=
"101"
selection-start-column=
"35"
selection-end-line=
"101"
selection-end-column=
"35"
/>
<folding>
<folding>
<element
signature=
"e#732#770#0"
expanded=
"true"
/>
<element
signature=
"e#732#770#0"
expanded=
"true"
/>
</folding>
</folding>
...
@@ -58,11 +53,11 @@
...
@@ -58,11 +53,11 @@
</provider>
</provider>
</entry>
</entry>
</file>
</file>
<file
leaf-file-name=
"vm.py"
pinned=
"false"
current-in-tab=
"
tru
e"
>
<file
leaf-file-name=
"vm.py"
pinned=
"false"
current-in-tab=
"
fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/circle/dashboard/views/vm.py"
>
<entry
file=
"file://$PROJECT_DIR$/circle/dashboard/views/vm.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
350
"
>
<state
relative-caret-position=
"
182
"
>
<caret
line=
"1
308"
column=
"56"
lean-forward=
"false"
selection-start-line=
"1308"
selection-start-column=
"56"
selection-end-line=
"1308"
selection-end-column=
"56
"
/>
<caret
line=
"1
258"
column=
"65"
lean-forward=
"true"
selection-start-line=
"1258"
selection-start-column=
"65"
selection-end-line=
"1258"
selection-end-column=
"65
"
/>
<folding>
<folding>
<element
signature=
"e#731#787#0"
expanded=
"true"
/>
<element
signature=
"e#731#787#0"
expanded=
"true"
/>
</folding>
</folding>
...
@@ -80,11 +75,21 @@
...
@@ -80,11 +75,21 @@
</provider>
</provider>
</entry>
</entry>
</file>
</file>
<file
leaf-file-name=
"instance.py"
pinned=
"false"
current-in-tab=
"
fals
e"
>
<file
leaf-file-name=
"instance.py"
pinned=
"false"
current-in-tab=
"
tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/circle/vm/models/instance.py"
>
<entry
file=
"file://$PROJECT_DIR$/circle/vm/models/instance.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"197"
>
<state
relative-caret-position=
"384"
>
<caret
line=
"334"
column=
"0"
lean-forward=
"true"
selection-start-line=
"334"
selection-start-column=
"0"
selection-end-line=
"334"
selection-end-column=
"0"
/>
<caret
line=
"308"
column=
"0"
lean-forward=
"true"
selection-start-line=
"308"
selection-start-column=
"0"
selection-end-line=
"308"
selection-end-column=
"0"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"operations.py"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/circle/common/operations.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"409"
>
<caret
line=
"115"
column=
"32"
lean-forward=
"false"
selection-start-line=
"115"
selection-start-column=
"32"
selection-end-line=
"115"
selection-end-column=
"32"
/>
<folding
/>
<folding
/>
</state>
</state>
</provider>
</provider>
...
@@ -102,9 +107,6 @@
...
@@ -102,9 +107,6 @@
</component>
</component>
<component
name=
"FindInProjectRecents"
>
<component
name=
"FindInProjectRecents"
>
<findStrings>
<findStrings>
<find>
system
</find>
<find>
@profiler.trace
</find>
<find>
access
</find>
<find>
operation
</find>
<find>
operation
</find>
<find>
dep
</find>
<find>
dep
</find>
<find>
precond
</find>
<find>
precond
</find>
...
@@ -132,6 +134,9 @@
...
@@ -132,6 +134,9 @@
<find>
fav
</find>
<find>
fav
</find>
<find>
favou
</find>
<find>
favou
</find>
<find>
favouritevi
</find>
<find>
favouritevi
</find>
<find>
#TODO
</find>
<find>
get_sta
</find>
<find>
synch
</find>
</findStrings>
</findStrings>
<replaceStrings>
<replaceStrings>
<replace>
'ACTIVE'
</replace>
<replace>
'ACTIVE'
</replace>
...
@@ -182,11 +187,11 @@
...
@@ -182,11 +187,11 @@
<option
value=
"$PROJECT_DIR$/circle/dashboard/templates/dashboard/vm-detail.html"
/>
<option
value=
"$PROJECT_DIR$/circle/dashboard/templates/dashboard/vm-detail.html"
/>
<option
value=
"$PROJECT_DIR$/circle/acl/models.py"
/>
<option
value=
"$PROJECT_DIR$/circle/acl/models.py"
/>
<option
value=
"$PROJECT_DIR$/circle/dashboard/views/util.py"
/>
<option
value=
"$PROJECT_DIR$/circle/dashboard/views/util.py"
/>
<option
value=
"$PROJECT_DIR$/circle/vm/models/instance.py"
/>
<option
value=
"$PROJECT_DIR$/circle/vm/operations.py"
/>
<option
value=
"$PROJECT_DIR$/circle/vm/operations.py"
/>
<option
value=
"$PROJECT_DIR$/circle/common/operations.py"
/>
<option
value=
"$PROJECT_DIR$/circle/dashboard/views/vm.py"
/>
<option
value=
"$PROJECT_DIR$/circle/dashboard/urls.py"
/>
<option
value=
"$PROJECT_DIR$/circle/dashboard/urls.py"
/>
<option
value=
"$PROJECT_DIR$/circle/dashboard/views/vm.py"
/>
<option
value=
"$PROJECT_DIR$/circle/common/operations.py"
/>
<option
value=
"$PROJECT_DIR$/circle/vm/models/instance.py"
/>
</list>
</list>
</option>
</option>
</component>
</component>
...
@@ -353,14 +358,14 @@
...
@@ -353,14 +358,14 @@
<window_info
id=
"Run"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32875264"
sideWeight=
"0.4978701"
order=
"2"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Run"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32875264"
sideWeight=
"0.4978701"
order=
"2"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Version Control"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32875264"
sideWeight=
"0.5"
order=
"7"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Version Control"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32875264"
sideWeight=
"0.5"
order=
"7"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Python Console"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.39852008"
sideWeight=
"0.42438763"
order=
"7"
side_tool=
"true"
content_ui=
"tabs"
/>
<window_info
id=
"Python Console"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.39852008"
sideWeight=
"0.42438763"
order=
"7"
side_tool=
"true"
content_ui=
"tabs"
/>
<window_info
id=
"Terminal"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"
false"
show_stripe_button=
"true"
weight=
"0.3689218"
sideWeight=
"0.4339723
"
order=
"7"
side_tool=
"true"
content_ui=
"tabs"
/>
<window_info
id=
"Terminal"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"
true"
show_stripe_button=
"true"
weight=
"0.43023255"
sideWeight=
"0.43610224
"
order=
"7"
side_tool=
"true"
content_ui=
"tabs"
/>
<window_info
id=
"Project"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"true"
show_stripe_button=
"true"
weight=
"0.157082"
sideWeight=
"0.5"
order=
"0"
side_tool=
"false"
content_ui=
"combo"
/>
<window_info
id=
"Project"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"true"
show_stripe_button=
"true"
weight=
"0.157082"
sideWeight=
"0.5"
order=
"0"
side_tool=
"false"
content_ui=
"combo"
/>
<window_info
id=
"Docker"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"false"
weight=
"0.33"
sideWeight=
"0.5"
order=
"8"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Docker"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"false"
weight=
"0.33"
sideWeight=
"0.5"
order=
"8"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Database"
active=
"false"
anchor=
"right"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"3"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Database"
active=
"false"
anchor=
"right"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"3"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Find"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32980973"
sideWeight=
"0.5"
order=
"1"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Find"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32980973"
sideWeight=
"0.5"
order=
"1"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"SciView"
active=
"false"
anchor=
"right"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"3"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"SciView"
active=
"false"
anchor=
"right"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"3"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Structure"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.25"
sideWeight=
"0.5"
order=
"1"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Structure"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.25"
sideWeight=
"0.5"
order=
"1"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Debug"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"
false"
show_stripe_button=
"true"
weight=
"0.43023255"
sideWeight=
"0.5660277
"
order=
"3"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Debug"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"
true"
show_stripe_button=
"true"
weight=
"0.43023255"
sideWeight=
"0.5638978
"
order=
"3"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Favorites"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"2"
side_tool=
"true"
content_ui=
"tabs"
/>
<window_info
id=
"Favorites"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"2"
side_tool=
"true"
content_ui=
"tabs"
/>
<window_info
id=
"Cvs"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.25"
sideWeight=
"0.5"
order=
"4"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Cvs"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.25"
sideWeight=
"0.5"
order=
"4"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Message"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"0"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Message"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"0"
side_tool=
"false"
content_ui=
"tabs"
/>
...
@@ -417,54 +422,54 @@
...
@@ -417,54 +422,54 @@
</properties>
</properties>
</breakpoint>
</breakpoint>
</default-breakpoints>
</default-breakpoints>
<option
name=
"time"
value=
"10
4
"
/>
<option
name=
"time"
value=
"10
8
"
/>
</breakpoint-manager>
</breakpoint-manager>
<watches-manager
/>
<watches-manager
/>
</component>
</component>
<component
name=
"debuggerHistoryManager"
>
<component
name=
"debuggerHistoryManager"
>
<expressions
id=
"evaluateExpression"
>
<expressions
id=
"evaluateExpression"
>
<expression>
<expression>
<expression-string>
json.dumps(response
)
</expression-string>
<expression-string>
unicode(self.STATUS[self.status]
)
</expression-string>
<language-id>
Python
</language-id>
<language-id>
Python
</language-id>
<evaluation-mode>
EXPRESSION
</evaluation-mode>
<evaluation-mode>
EXPRESSION
</evaluation-mode>
</expression>
</expression>
<expression>
<expression>
<expression-string>
self
</expression-string>
<expression-string>
self
.STATUS[self.status]
</expression-string>
<language-id>
Python
</language-id>
<language-id>
Python
</language-id>
<evaluation-mode>
EXPRESSION
</evaluation-mode>
<evaluation-mode>
EXPRESSION
</evaluation-mode>
</expression>
</expression>
<expression>
<expression>
<expression-string>
self.model
</expression-string>
<expression-string>
json.dumps(response)
</expression-string>
<language-id>
Python
</language-id>
<language-id>
Python
</language-id>
<evaluation-mode>
EXPRESSION
</evaluation-mode>
<evaluation-mode>
EXPRESSION
</evaluation-mode>
</expression>
</expression>
<expression>
<expression>
<expression-string>
Instance.get_from_os(self.model, self.request)
</expression-string>
<expression-string>
self
</expression-string>
<language-id>
Python
</language-id>
<language-id>
Python
</language-id>
<evaluation-mode>
EXPRESSION
</evaluation-mode>
<evaluation-mode>
EXPRESSION
</evaluation-mode>
</expression>
</expression>
<expression>
<expression>
<expression-string>
self.model
.get_from_os(self.model, self.request)
</expression-string>
<expression-string>
self.model
</expression-string>
<language-id>
Python
</language-id>
<language-id>
Python
</language-id>
<evaluation-mode>
EXPRESSION
</evaluation-mode>
<evaluation-mode>
EXPRESSION
</evaluation-mode>
</expression>
</expression>
<expression>
<expression>
<expression-string>
self.model.get_from_os(
self.request)
</expression-string>
<expression-string>
Instance.get_from_os(self.model,
self.request)
</expression-string>
<language-id>
Python
</language-id>
<language-id>
Python
</language-id>
<evaluation-mode>
EXPRESSION
</evaluation-mode>
<evaluation-mode>
EXPRESSION
</evaluation-mode>
</expression>
</expression>
<expression>
<expression>
<expression-string>
openstack_api.neutron.
</expression-string>
<expression-string>
self.model.get_from_os(self.model, self.request)
</expression-string>
<language-id>
Python
</language-id>
<language-id>
Python
</language-id>
<evaluation-mode>
EXPRESSION
</evaluation-mode>
<evaluation-mode>
EXPRESSION
</evaluation-mode>
</expression>
</expression>
<expression>
<expression>
<expression-string>
openstack_api.nova.
</expression-string>
<expression-string>
self.model.get_from_os(self.request)
</expression-string>
<language-id>
Python
</language-id>
<language-id>
Python
</language-id>
<evaluation-mode>
EXPRESSION
</evaluation-mode>
<evaluation-mode>
EXPRESSION
</evaluation-mode>
</expression>
</expression>
<expression>
<expression>
<expression-string>
activities
</expression-string>
<expression-string>
openstack_api.neutron.
</expression-string>
<language-id>
Python
</language-id>
<language-id>
Python
</language-id>
<evaluation-mode>
EXPRESSION
</evaluation-mode>
<evaluation-mode>
EXPRESSION
</evaluation-mode>
</expression>
</expression>
...
@@ -783,14 +788,6 @@
...
@@ -783,14 +788,6 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/circle/common/operations.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"214"
>
<caret
line=
"50"
column=
"11"
lean-forward=
"false"
selection-start-line=
"50"
selection-start-column=
"11"
selection-end-line=
"50"
selection-end-column=
"11"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$USER_HOME$/.virtualenvs/cloud/local/lib/python2.7/site-packages/django/core/handlers/exception.py"
>
<entry
file=
"file://$USER_HOME$/.virtualenvs/cloud/local/lib/python2.7/site-packages/django/core/handlers/exception.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"494"
>
<state
relative-caret-position=
"494"
>
...
@@ -804,7 +801,7 @@
...
@@ -804,7 +801,7 @@
<state
relative-caret-position=
"163"
>
<state
relative-caret-position=
"163"
>
<caret
line=
"144"
column=
"0"
lean-forward=
"false"
selection-start-line=
"144"
selection-start-column=
"0"
selection-end-line=
"144"
selection-end-column=
"0"
/>
<caret
line=
"144"
column=
"0"
lean-forward=
"false"
selection-start-line=
"144"
selection-start-column=
"0"
selection-end-line=
"144"
selection-end-column=
"0"
/>
<folding>
<folding>
<element
signature=
"e#732#788#0"
expanded=
"
tru
e"
/>
<element
signature=
"e#732#788#0"
expanded=
"
fals
e"
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
...
@@ -817,19 +814,21 @@
...
@@ -817,19 +814,21 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/circle/
vm/models/instance
.py"
>
<entry
file=
"file://$PROJECT_DIR$/circle/
dashboard/views/__init__
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1
9
7"
>
<state
relative-caret-position=
"1
8
7"
>
<caret
line=
"
334"
column=
"0"
lean-forward=
"true"
selection-start-line=
"334"
selection-start-column=
"0"
selection-end-line=
"334"
selection-end-column=
"0
"
/>
<caret
line=
"
11"
column=
"5"
lean-forward=
"false"
selection-start-line=
"11"
selection-start-column=
"5"
selection-end-line=
"11"
selection-end-column=
"5
"
/>
<folding
/>
<folding
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/circle/dashboard/
views/__init__
.py"
>
<entry
file=
"file://$PROJECT_DIR$/circle/dashboard/
urls
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"187"
>
<state
relative-caret-position=
"163"
>
<caret
line=
"11"
column=
"5"
lean-forward=
"false"
selection-start-line=
"11"
selection-start-column=
"5"
selection-end-line=
"11"
selection-end-column=
"5"
/>
<caret
line=
"101"
column=
"35"
lean-forward=
"false"
selection-start-line=
"101"
selection-start-column=
"35"
selection-end-line=
"101"
selection-end-column=
"35"
/>
<folding
/>
<folding>
<element
signature=
"e#732#770#0"
expanded=
"true"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
...
@@ -841,23 +840,29 @@
...
@@ -841,23 +840,29 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/circle/dashboard/
urls
.py"
>
<entry
file=
"file://$PROJECT_DIR$/circle/dashboard/
views/vm
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1
63
"
>
<state
relative-caret-position=
"1
82
"
>
<caret
line=
"1
01"
column=
"35"
lean-forward=
"true"
selection-start-line=
"101"
selection-start-column=
"35"
selection-end-line=
"101"
selection-end-column=
"3
5"
/>
<caret
line=
"1
258"
column=
"65"
lean-forward=
"true"
selection-start-line=
"1258"
selection-start-column=
"65"
selection-end-line=
"1258"
selection-end-column=
"6
5"
/>
<folding>
<folding>
<element
signature=
"e#73
2#770
#0"
expanded=
"true"
/>
<element
signature=
"e#73
1#787
#0"
expanded=
"true"
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/circle/
dashboard/views/vm
.py"
>
<entry
file=
"file://$PROJECT_DIR$/circle/
common/operations
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"350"
>
<state
relative-caret-position=
"409"
>
<caret
line=
"1308"
column=
"56"
lean-forward=
"false"
selection-start-line=
"1308"
selection-start-column=
"56"
selection-end-line=
"1308"
selection-end-column=
"56"
/>
<caret
line=
"115"
column=
"32"
lean-forward=
"false"
selection-start-line=
"115"
selection-start-column=
"32"
selection-end-line=
"115"
selection-end-column=
"32"
/>
<folding>
<folding
/>
<element
signature=
"e#731#787#0"
expanded=
"true"
/>
</state>
</folding>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/circle/vm/models/instance.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"384"
>
<caret
line=
"308"
column=
"0"
lean-forward=
"true"
selection-start-line=
"308"
selection-start-column=
"0"
selection-end-line=
"308"
selection-end-column=
"0"
/>
<folding
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
...
...
circle/common/operations.py
View file @
348c390e
...
@@ -111,10 +111,10 @@ class Operation(object):
...
@@ -111,10 +111,10 @@ class Operation(object):
* user: The User invoking the operation. If this argument is not
* user: The User invoking the operation. If this argument is not
present, it'll be provided with a default value of None.
present, it'll be provided with a default value of None.
"""
"""
allargs
,
auxargs
=
self
.
__prelude
(
request
,
kwargs
)
logger
.
info
(
"
%
s called (synchronously) on
%
s with the following "
logger
.
info
(
"
%
s called (synchronously) on
%
s with the following "
"parameters:
%
r"
,
self
.
__class__
.
__name__
,
self
.
subject
,
"parameters:
%
r"
,
self
.
__class__
.
__name__
,
self
.
subject
,
kwargs
)
kwargs
)
allargs
,
auxargs
=
self
.
__prelude
(
request
,
kwargs
)
return
self
.
_exec_op
(
request
,
allargs
,
auxargs
)
return
self
.
_exec_op
(
request
,
allargs
,
auxargs
)
def
check_precond
(
self
):
def
check_precond
(
self
):
...
...
circle/dashboard/views/vm.py
View file @
348c390e
...
@@ -1256,7 +1256,7 @@ def vm_activity(request, pk):
...
@@ -1256,7 +1256,7 @@ def vm_activity(request, pk):
# activities = activities[:10]
# activities = activities[:10]
response
[
'connect_uri'
]
=
instance
.
get_connect_uri
()
response
[
'connect_uri'
]
=
instance
.
get_connect_uri
()
response
[
'human_readable_status'
]
=
'#TODO'
#
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
()
latest
=
instance
.
get_latest_activity_in_progress
()
latest
=
instance
.
get_latest_activity_in_progress
()
...
...
circle/vm/models/instance.py
View file @
348c390e
...
@@ -819,7 +819,7 @@ class Instance(OperatedMixin, TimeStampedModel):
...
@@ -819,7 +819,7 @@ class Instance(OperatedMixin, TimeStampedModel):
def
get_status_display
(
self
):
def
get_status_display
(
self
):
if
self
.
status
in
self
.
STATUS
:
if
self
.
status
in
self
.
STATUS
:
return
self
.
STATUS
[
self
.
status
]
return
unicode
(
self
.
STATUS
[
self
.
status
])
return
self
.
status
return
self
.
status
def
get_activities
(
self
,
user
=
None
):
def
get_activities
(
self
,
user
=
None
):
...
...
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