Checkout Tools
  • last updated 44 mins ago
Constraints: committers
Constraints: files
Constraints: dates
(MODPYTHON-243) Fixed format string error.

Added links in Request member docs to server object and connection object.

  1. … 2 more files in changeset.
Bumped version strings in preparation for 3.3.1 release.

  1. … 2 more files in changeset.
Preparation for tagging 3.3.0b.

Bumped version strings.

Changed prerequisites to python 2.3.4 and apache 2.0.54.

  1. … 3 more files in changeset.
(MODPYTHON-143) Allow just '~' to be used as a directory in the module

importer search path to refer to the handler root directory.

(MODPYTHON-170) Added req._request_rec, server._server_rec and

conn._conn_rec semi private members for getting accessing to underlying

Apache struct as a Python CObject. These can be used for use in

implementing SWIG bindings for lower level APIs of Apache. These members

should be regarded as experimental and there are no guarantees that they

will remain present in this specific form in the future.

  1. … 5 more files in changeset.
(MODPYTHON-143) Have the handler root fallback to be the document root when

handler directives are used in Location directive or in root context of

VirtualHost or actual server. This handler root is what is used as the

first place to look for a module when using apache.import_module() or when

it is necessary to expand a path prefixed by '~/'.

  1. … 1 more file in changeset.
(MODPYTHON-128) The apache.stat() function, which is a wrapper for the

apr_stat() function, should still return a valid finfoobject when the

target of the apr_stat() call does not exist. This is instead of raising

an exception. This is necessary as otherwise there is no way of replacing

req.finfo with a finfoobject where req.finfo.filetype is APR_NOFILE. An

exception will only be raised now if a truly unexpected problem arises.

Callers of apache.stat() need to check finfo.filetype for APR_NOFILE if

they need to know if target existed or not.

  1. … 2 more files in changeset.
(MODPYTHON-93) Made assignment using the subscript operator against the

FieldStorage class act like a dictionary. In other words, any existing values

against a field are replaced with a single value rather than an additional

value being added against the field.

  1. … 2 more files in changeset.
(MODPYTHON-129) Changed how return status of stacked handlers registered

against PythonHandler phase are interpreted. Subsequent stacked content

handlers are now executed when apache.DECLINED is returned as well as when

apache.OK is returned.

  1. … 3 more files in changeset.
The attribute req.used_path_info is now modifiable and can be set from

within handlers. This is equivalent to having used the AcceptPathInfo


  1. … 4 more files in changeset.
(MODPYTHON-195) Fix potential Win32 resource leaks in parent Apache process

when process restarts occur.

  1. … 3 more files in changeset.
(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. … 5 more files in changeset.
(MODPYTHON-125) When assigning to req.handler, should allow it to be set

to None to reset it.

  1. … 3 more files in changeset.
Bump version strings.

  1. … 1 more file in changeset.
The request object add_handler() function should allow None to be supplied

as the optional path argument and have it be interpreted as if the argument

was never supplied in the first place.

  1. … 2 more files in changeset.
(MODPYTHON-143) Cleanup code formatting debug output for children and friends.

(MODPYTHON-143) Fix module cache debug output whereby it dies when no

modules in per request cache. Also update output so it lists children as

paths instead of magic module name. Also distinguish friends from children,

friends being modules that were imported as part of the execution of the

request handler and not module import and therefore aren't included in

dependency checks to determine if module should be reloaded.

  1. … 1 more file in changeset.
(MODPYTHON-143) Allow '~/' shortcut to be used in paths listed in the

'mod_python.importer.path' option. This means that paths can be specified

with respect to handler root rather than using absolute paths in Apache

configuration files.

(MODPYTHON-93) Missing an appropriate __repr__() method as well on

FieldStorage class.

(MODPYTHON-93) Missing __iter__() method to support 'for k in form'.

(MODPYTHON-93) The __delitem__() wasn't throwing a KeyError exception when

the field name didn't exist.

(MODPYTHON-198) Fixed code supporting nested auth/access/realm details inside

of functions in mod_python.publisher that was broken by Python 2.5.

  1. … 1 more file in changeset.
(MODPYTHON-93) Added clear(), __delitem__() and __setitem__() methods. The

__setitem__() method is an alias for add_field() and thus is additative

unlike a traditional dictionary.

  1. … 2 more files in changeset.
(MODPYTHON-143) Use a separate flag in the cache to indicate that a module

must be reloaded on next access. This is instead of setting modification

time back to zero. This works out to be better as still can interogate the

modification time for debugging purposes.

(MODPYTHON-143) When cache is frozen or autoreload is disabled and a module

had previously failed to import, still need to ensure that an attempt is

made to reload it even though autoreload is now turned off. This may still

result in inconsistances with multiple instances of a module loaded. Short

story is that turning autoreloading off when modules haven't all been loaded

successfully in the first place is not good.

(MODPYTHON-143) Can't set generation to zero prior to import as that stops

dependency checks from working properly. The modification time is already

set back to zero on failed import which is what should have been checked

to indicate failed import.

(MODPYTHON-143) Dump out information about modules touched by a request when

an exception occurs in the importing of the modules or in executing the

handler and the exception isn't caught and is resulting in an internal

server error response.

  1. … 1 more file in changeset.
(MODPYTHON-93) No need to access keys of dictionary to determine len(), just

apply it to dictionary itself.

(MODPYTHON-127) Updated internal PythonOption setting names to all use a

'mod_python'. prefix. The old names are still supported for backward


  1. … 3 more files in changeset.