From 9ee0739de638548d01573cbff84a585dce9c6e05 Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Fri, 19 Jan 2007 20:45:00 +0000 Subject: [PATCH] - only check expires if slice isn't being deleted --- PLC/Slices.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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') -- 2.43.0