Esempio n. 1
0
 def allowed(self, request, instance):
     return instance.status in BLESSED_STATES and not instance_tables._is_deleting(instance)
Esempio n. 2
0
 def allowed(self, request, instance):
     return instance.status in BLESSED_STATES and not instance_tables._is_deleting(
         instance)
Esempio n. 3
0
 def allowed(self, request, instance=None):
     if instance:
         return instance.status in instance_tables.ACTIVE_STATES and not instance_tables._is_deleting(instance)
     return True
Esempio n. 4
0
 def allowed(self, request, instance=None):
     if instance:
         return instance.status in instance_tables.ACTIVE_STATES and not instance_tables._is_deleting(
             instance)
     return True