Beispiel #1
0
 def allowed(self, request, service):
     environment_id = self.table.kwargs['environment_id']
     status, version = api.get_environment_data(request, environment_id,
                                                'status', 'version')
     if status == STATUS_ID_DEPLOYING:
         return False
     services = self.table.data
     if version == 0 and not services:
         return False
     return True
Beispiel #2
0
 def allowed(self, request, service):
     environment_id = self.table.kwargs['environment_id']
     status, version = api.get_environment_data(request, environment_id,
                                                'status', 'version')
     if status == STATUS_ID_DEPLOYING:
         return False
     services = self.table.data
     if version == 0 and not services:
         return False
     return True
Beispiel #3
0
    def allowed(self, request, service=None):
        environment_id = self.table.kwargs.get('environment_id')
        status = api.get_environment_data(request, environment_id, 'status')

        return False if status == STATUS_ID_DEPLOYING else True
Beispiel #4
0
 def allowed(self, request, environment):
     environment_id = self.table.kwargs['environment_id']
     status = api.get_environment_data(request, environment_id, 'status')
     if status not in [STATUS_ID_DEPLOYING]:
         return True
     return False
Beispiel #5
0
    def allowed(self, request, service=None):
        environment_id = self.table.kwargs.get('environment_id')
        status = api.get_environment_data(request, environment_id, 'status')

        return False if status == STATUS_ID_DEPLOYING else True
Beispiel #6
0
 def allowed(self, request, environment):
     environment_id = self.table.kwargs['environment_id']
     status = api.get_environment_data(request, environment_id, 'status')
     if status not in [STATUS_ID_DEPLOYING]:
         return True
     return False