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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
04d51cf0
authored
Mar 18, 2013
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #98
parent
b4c2e24e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
one/models.py
+2
-0
one/tasks.py
+2
-0
No files found.
one/models.py
View file @
04d51cf0
...
...
@@ -632,6 +632,8 @@ class Instance(models.Model):
def
restart
(
self
):
self
.
_change_state
(
"RESET"
)
self
.
waiting
=
False
self
.
save
()
def
renew
(
self
,
which
=
'both'
):
if
which
in
[
'suspend'
,
'both'
]:
...
...
one/tasks.py
View file @
04d51cf0
...
...
@@ -24,4 +24,6 @@ class UpdateInstanceStateTask(Task):
print
'nincs ilyen'
return
inst
.
update_state
()
inst
.
waiting
=
False
inst
.
save
()
print
inst
.
state
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