You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-dev@quetz.apache.org by twism <tw...@sadlands.org> on 2003/06/25 12:29:57 UTC
publisher bug?
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