Dolda2000 GitWeb
/
wrw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ba5e96
)
Added a helper function to cookie module to format expire dates properly.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Sun, 5 Aug 2012 05:40:56 +0000
(07:40 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Sun, 5 Aug 2012 05:40:56 +0000
(07:40 +0200)
wrw/cookie.py
patch
|
blob
|
blame
|
history
diff --git
a/wrw/cookie.py
b/wrw/cookie.py
index
16ddf81
..
4f5071a
100644
(file)
--- 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