X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FSlices.py;h=601ec6715b455e09aacd004ba2b51753a9389e2f;hb=9ee0739de638548d01573cbff84a585dce9c6e05;hp=af6062d6ceae7d8ce61a03c7f375e27e86e5506a;hpb=e4c0c59e6bf7d7112f019272e04e6595639bcb90;p=plcapi.git diff --git a/PLC/Slices.py b/PLC/Slices.py index af6062d..601ec67 100644 --- a/PLC/Slices.py +++ b/PLC/Slices.py @@ -85,7 +85,8 @@ class Slice(Row): def validate_expires(self, expires): # N.B.: Responsibility of the caller to ensure that expires is # not too far into the future. - return Row.validate_timestamp(self, expires, check_future = True) + check_future = not ('is_deleted' in self and self['is_deleted']) + return Row.validate_timestamp(self, expires, check_future = check_future) add_person = Row.add_object(Person, 'slice_person') remove_person = Row.remove_object(Person, 'slice_person')