- only check expires if slice isn't being deleted
authorMark Huang <mlhuang@cs.princeton.edu>
Fri, 19 Jan 2007 20:45:00 +0000 (20:45 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Fri, 19 Jan 2007 20:45:00 +0000 (20:45 +0000)
PLC/Slices.py

index af6062d..601ec67 100644 (file)
@@ -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')