return default
return self.bk[name].value
- def add(self, name, value, path = None):
+ def add(self, name, value, **kw):
self.codec[name] = value
- if path is not None: self.codec[name]["path"] = path
+ for key, value in kw.iteritems():
+ self.codec[name][key] = value
def __setitem__(self, name, value):
self.add(name, value)
def get(req, name, default = None):
return cookies(req).get(name, default)
-def add(req, name, value, path = None):
- cookies(req).add(name, value, path)
+def add(req, name, value, **kw):
+ cookies(req).add(name, value, **kw)
def ckfreeze(req):
if sess.dirty():
if new:
- cookie.add(req, self.cookiename, sess.id, self.path)
+ cookie.add(req, self.cookiename, sess.id, path=self.path)
with self.lock:
self.live[sess.id] = [sess.lock, sess]
try: