forked from shaba/openuds
Set "tbr" to none always. It's a non useful parameter
This commit is contained in:
parent
66c217a988
commit
8331c886de
@ -62,7 +62,7 @@ import logging
|
|||||||
import pickle
|
import pickle
|
||||||
import six
|
import six
|
||||||
|
|
||||||
__updated__ = '2019-02-25'
|
__updated__ = '2019-05-10'
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -206,19 +206,20 @@ class DeployedService(UUIDModel, TaggingMixin):
|
|||||||
return self.service is not None and self.service.isInMaintenance()
|
return self.service is not None and self.service.isInMaintenance()
|
||||||
|
|
||||||
def toBeReplaced(self):
|
def toBeReplaced(self):
|
||||||
activePub = self.activePublication()
|
|
||||||
if activePub is None or activePub.revision == self.current_pub_revision - 1:
|
|
||||||
return None
|
return None
|
||||||
|
# activePub = self.activePublication()
|
||||||
|
# if activePub is None or activePub.revision == self.current_pub_revision - 1:
|
||||||
|
# return None
|
||||||
|
|
||||||
# Return the date
|
# Return the date
|
||||||
try:
|
# try:
|
||||||
ret = self.recoverValue('toBeReplacedIn')
|
# ret = self.recoverValue('toBeReplacedIn')
|
||||||
if ret is not None:
|
# if ret is not None:
|
||||||
return pickle.loads(ret)
|
# return pickle.loads(ret)
|
||||||
except Exception:
|
# except Exception:
|
||||||
logger.exception('Recovering publication death line')
|
# logger.exception('Recovering publication death line')
|
||||||
|
|
||||||
return None
|
# return None
|
||||||
|
|
||||||
def isAccessAllowed(self, chkDateTime=None):
|
def isAccessAllowed(self, chkDateTime=None):
|
||||||
'''
|
'''
|
||||||
|
Loading…
Reference in New Issue
Block a user