quetz-mod_python-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From twism <tw...@sadlands.org>
Subject publisher bug?
Date Wed, 25 Jun 2003 10:29:57 GMT
Hi,
the publisher handler can't handle page with extension other than '.py'. 
For example, if i use the directives

AddHandler python-program .mpy
PythonHandler mod_python.publisher | .mpy

and try to get apage.mpy the publisher is invoked, but it can't
import the module 'apage' since imp.find_module only looks for modules 
with the extensions returned by imp.get_suffixes().

I wrote a small patch to fix this. It isn't very well tested, but seems
to work :)

twism

Mime
View raw message