From: Fredrik Tolf Date: Sun, 5 Aug 2012 05:40:56 +0000 (+0200) Subject: Added a helper function to cookie module to format expire dates properly. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=badc2530c6f00408a4495dfeea86caff23f10964;p=wrw.git Added a helper function to cookie module to format expire dates properly. --- diff --git a/wrw/cookie.py b/wrw/cookie.py index 16ddf81..4f5071a 100644 --- a/wrw/cookie.py +++ b/wrw/cookie.py @@ -1,4 +1,5 @@ -import Cookie +import Cookie, time +import proto __all__ = ["cookies", "get", "add"] @@ -43,3 +44,5 @@ def get(req, name, default = None): def add(req, name, value, **kw): cookies(req).add(name, value, **kw) + +cdate = proto.httpdate