[mod_python] PyDoc and mod_python

Graham Dumpleton grahamd at dscpl.com.au
Wed Oct 11 04:25:48 EDT 2006


Put a module file called _apache.py in the directory where you run
the program so it finds that. You may need to then put empty stubs
in that if it needs to satisfy references to stuff in it. In other
words dummy up a fake module.

Graham

On 11/10/2006, at 6:09 PM, durumdara wrote:

> Hi !
>
> I need to write documentation for my mod_python website, for the base
> classes, functions, modules.
> The problem, that mod_python is imported "apache" that not existing in
> the normal, pythonic way (only in Apache).
>
> If my source is containing a tag that use this module, or it's
> submodule, the pydoc is not working.
>
> ### test.py ###
> from mod_python import apache
> ...
>
> The result is.
> c:\>c:\python24\Lib\pydoc.py c:\test.py
> problem in c:\test.py - ImportError: No module named _apache
>
> So I need a cheat, or I need to force the pydoc to avoid to parse these
> modules...
>
> Is anybody have an experience, how can I do it ?
>
> Thanks for it:
> dd
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python


More information about the Mod_python mailing list