summaryrefslogtreecommitdiff
path: root/misc/Cookie.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove Cookie.py since we're going to use the one from Python'sbwarsaw2001-10-011-583/+0
| | | | | | | standard library. Also, add the compatibility email package as a distutils tarball (is this the right way to do it?)
* Morsel.set(): Add optional argument `strict', defaulting to 1, whichbwarsaw2001-08-181-3/+4
| | | | | | | | | | | | | | controls whether reserved key checking is done. Cookie.__ParseString(): When calling Morsel.set(), set strict=0 so no reserved key checking will be done. This makes sense because normally, the input data is coming from the web and we should be liberal in what we accept here. E.g. if a browser is setting "Version=1" we shouldn't crap out on the whole cookie just because of that. We /do/ want to be more strict when we're setting individual keys programmatically (but that will never call __ParseString()).
* Morsel.OutputString(): The continue test was wrong; it should test forbwarsaw2000-07-201-1/+1
| | | | | | | | | | | falseness, it should explicitly test for the empty string otherwise this fails: c['foo']['max-age'] = 0 but this succeeds c['foo']['max-age'] = "0"
* Added Emacs turd to bottom of file.bwarsaw1999-07-161-0/+4
|
* Tim's new copyright.bwarsaw1998-06-191-4/+29
| | | | Remove the bogus RCS crud
* Handle http cookies as dictionaries from within a cgi script.mailman1998-04-101-0/+553