Checkout Tools
  • last updated 8 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
(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-180) Publisher would wrongly output a warning about nothing to

publish if req.write() or req.sendfile() used and data not flushed, and

then published function returned None.

  1. … 5 more files in changeset.
Fixed mod_python.publisher so it will not return a HTTP Bad Request

response when mod_auth is being used to provide Digest authentication.

(MODPYTHON-47)

  1. … 3 more files in changeset.
Modified mod_python.publisher and mod_python.psp so they do not explicitly

flush output after writing the content of the response back to the request

object.

  1. … 5 more files in changeset.
When using mod_python.publisher, the __auth__() and __access__() functions

and the __auth_realm__ string can now be nested within a class method as a

well a normal function. (MODPYTHON-27)

  1. … 3 more files in changeset.
A mod_python.publisher __auth__() function nested inside another function

will now execute in context of globals from module the function is contained

in and not in context of globals from mod_python.publisher. (MODPYTHON-43)

  1. … 3 more files in changeset.
We don't need no stinkin' enumerate.
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.
Reverted publisher.publish_object behaviour to write result even if

even if req.method == 'HEAD'.

Ref MODPYTHON-105

Reverted MODPYTHON-15 to fix MODPYTHON-97 ; we'll get back to this in mod_python 3.3.
  1. … 2 more files in changeset.
Graham's patch for MODPYTHON-72.
  1. … 1 more file in changeset.
- removed the reference to req.finfo in publisher.py. We now only use req.filename, which is more middleware-friendly.

- Added a few comments on mod_python.publisher.publish_object

Commented out mod_python.publisher.get_page().
New publishing code for the publisher.

- Solves MODPYTHON-15 "iterable return values should be corretly published"

- Also takes care of selecting a proper encoding when the returned objects are Unicode strings. It parses the Content-Type header to select the encoding, or chooses UTF-8 if no encoding is given.

- Returning nothing is now allowed. Nothing is returned to the client.

Unit tests have been made to ensure that there was no regression.

  1. … 3 more files in changeset.
Dropped the import_page function as I don't want to get into the business of recursively managing module dependencies yet. Everything can be done with get_page in a much safer (yet less elegant) way.
  1. … 1 more file in changeset.
Implemented MODPYTHON-54 - we need a bit of documentation, now...
  1. … 2 more files in changeset.
Working on MODPYTHON-54 - this does not work yet, but it does not break anything.
  1. … 1 more file in changeset.
Reverted the change after the mistake I've made during the branch (oops).
  1. … 2 more files in changeset.
New version of the publisher with support for old-style & new-style classes, iterators and generators.
  1. … 2 more files in changeset.
Fix for MODPYTHON-49.
Tentative fix for MODPYTHON-8 and MODPYTHON-9.
  1. … 1 more file in changeset.
- BuiltinFunctionTypes are not traversable nor publishable (this follows a discussion with Graham)

- Updated the credits (thanks Grisha) with my canonical e-mail address.

  1. … 1 more file in changeset.
New traversal and publishing rules. We now forbid the traversal of any type defined in the 'types' module, except for a few exceptions.
  1. … 1 more file in changeset.
Cosmetic changes to the code in order to unify coding style.
  1. … 5 more files in changeset.
- finished fixing MODPYTHON-13 ; added new unit tests for this bug

- refined traversal / publication control in resolve_object : we now rely on a dictionary of rules.

  1. … 3 more files in changeset.
- Rewriting mod_python/publisher.py resolve_object to enhance security.

- Added unit tests for mod_python/publisher.py

- Fixing [#MODPYTHON-13]

- Preparing 3.1.4 release

  1. … 4 more files in changeset.
property cleanup

  1. … 75 more files in changeset.
Added HEAD to the list of allowed methods in the publisher.

PR:

Obtained from:

Submitted by:

Reviewed by:

If output is unicode don't try to call str() on it.