mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-25 06:03:51 +03:00
Added "is in maintenance" method for userservice
This commit is contained in:
parent
f235bc0796
commit
8a393c6717
@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
__updated__ = '2015-01-28'
|
__updated__ = '2015-02-10'
|
||||||
|
|
||||||
from django.db import models
|
from django.db import models
|
||||||
from django.db.models import signals
|
from django.db.models import signals
|
||||||
@ -360,6 +360,9 @@ class UserService(UUIDModel):
|
|||||||
from uds.core.managers.UserServiceManager import UserServiceManager
|
from uds.core.managers.UserServiceManager import UserServiceManager
|
||||||
return UserServiceManager.manager().isReady(self)
|
return UserServiceManager.manager().isReady(self)
|
||||||
|
|
||||||
|
def isInMaintenance(self):
|
||||||
|
return self.deployed_service.isInMaintenance()
|
||||||
|
|
||||||
def remove(self):
|
def remove(self):
|
||||||
'''
|
'''
|
||||||
Mark this user deployed service for removal
|
Mark this user deployed service for removal
|
||||||
|
Loading…
x
Reference in New Issue
Block a user