Checkout Tools
  • last updated 5 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
(MODPYTHON-191) Session class will no longer accept a normal cookie if a

signed cookie was expected.

(MODPYTHON-200) Fixed problem whereby signed and marshalled cookies could

not be used at the same time. When expecting marshalled cookie, any signed,

but not marshalled cookies will be returned as normal cookies.

  1. … 8 more files in changeset.
Added support to cookies for "httponly" attribute, an extension originally

created by Microsoft, but now getting more widespread use in the battle

against cross site-scripting attacks. (MODPYTHON-108)

  1. … 2 more files in changeset.
Reverted the Python 2.2 support hack ; I leave python22.py in place because it should be possible to use it with PythonImport.
  1. … 9 more files in changeset.
Added a Python 2.2 compatibility module. The test suite now runs successfully on Python 2.2 under Windows 2000.
  1. … 13 more files in changeset.
Fix for MODPYTHON-17
  1. … 1 more file in changeset.
Fix for bug [#MODPYTHON-3] : RFC-style cookie attributes are now ignored.
  1. … 1 more file in changeset.
property cleanup

  1. … 75 more files in changeset.
New license

  1. … 42 more files in changeset.
Modules of the same package shouldn't use "from package" to import

eachother.

PR:

Obtained from:

Submitted by:

Reviewed by:

  1. … 2 more files in changeset.
Renamed setCookie to add_cookie

Renamed getCookie to get_cookies

get_cookies now passes any **kw args to parse

added Session and docs for it

added dbm caching for psp

added _global_lock/_unlock to _apache

parser deals correctly with \r\n on win/dos

also added tests for session

PR:

Obtained from:

Submitted by:

Reviewed by:

  1. … 11 more files in changeset.
Renamed setCookie to addCookie. Also changed addCookie so that you can

just give it a couple of strings as args and it will automatically construct

a cookie for you.

PR:

Obtained from:

Submitted by:

Reviewed by:

  1. … 1 more file in changeset.
The SignedCookie and MarshalCookie will now downgrade to plain

Cookie if signature or unmarshal errors are encountered (intead of

raising an exception). This is necessary because the browser may

return "outside" cookies (e.g. set by mod_usertrack). As a side

effect, it is important to check the type of object returned, which

has been noted in the docs.

PR:

Obtained from:

Submitted by:

Reviewed by:

  1. … 1 more file in changeset.
Renamed getCookie to getCookies, because it returns all cokies, not

one (as opposed to setCookie, which sets one cookie)

PR:

Obtained from:

Submitted by:

Reviewed by:

  1. … 2 more files in changeset.
Cookie module documentation is now more or less complete along with some

examples. A couple of small things fixed in the Cookie module that were

discovered in the process of example testing.

PR:

Obtained from:

Submitted by:

Reviewed by:

  1. … 1 more file in changeset.
This patch adjusts the Cookie implementation using __metaclass__ which

reduces the amount of code and makes inheritance work correctly (before,

properties didn't get inherited).

Unfortunately it looks like I had DOS end-of-lines before, and now they

are in UNIX, but as a sideeffect this patch replaces the whole file.

PR:

Obtained from:

Submitted by:

Reviewed by:

  1. … 1 more file in changeset.
Remove version=1 from automatically being added to the cookie since this

is only false rfc-compliance. also remove autosetting of expires when

max-age is set for the same reason. Add methods for setting and retreiving

cookies.

Some cookie clean-up

This is a very rough initial Cookie implementation. For some basic intro

see the comment at the top. Improvements, docs, cleaner code, coming soon.