diff options
| author | Ian Bicking <ianb@colorstudy.com> | 2007-08-09 19:02:01 +0000 |
|---|---|---|
| committer | Ian Bicking <ianb@colorstudy.com> | 2007-08-09 19:02:01 +0000 |
| commit | 3bf77c33fe1dce4b15ff9740e04419adcb71a4c6 (patch) | |
| tree | 62c6c32d4456eb50df0077662e5c22b4a0b17fcc /webob/cachecontrol.py | |
| parent | e9bcd995492d7600a204de4bf0c6f6f34d315996 (diff) | |
| download | webob-3bf77c33fe1dce4b15ff9740e04419adcb71a4c6.tar.gz | |
Added a cache_expires method. Don't create CacheControl objects when it isn't necessary. Handle timedeltas in any date-related function (considering them relative to now). Allow cache_control.private = True. Add constants for different kinds of time, so you can multiply and add them to create timedelta objects
Diffstat (limited to 'webob/cachecontrol.py')
| -rw-r--r-- | webob/cachecontrol.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/webob/cachecontrol.py b/webob/cachecontrol.py index 88f6873..2482f0c 100644 --- a/webob/cachecontrol.py +++ b/webob/cachecontrol.py @@ -50,6 +50,8 @@ class value_property(object): if value == self.default: if self.prop in obj.properties: del obj.properties[self.prop] + elif value is True: + obj.properties[self.prop] = None # Empty value, but present else: obj.properties[self.prop] = value def __del__(self, obj): |
