Apache Mod-Python - Re: Commented: (MODPYTHON-98) wrong handler supplied to req.add_handler()generates err

This is Interesting: Free IT Magazines  
Home > Archive > Apache Mod-Python > January 2006 > Re: Commented: (MODPYTHON-98) wrong handler supplied to req.add_handler()generates err





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Commented: (MODPYTHON-98) wrong handler supplied to req.add_handler()generates err
Graham Dumpleton

2006-01-13, 9:18 pm

FWIW, I use Python 2.3 on Mac OS X. Nicolas is probably using Win32
as usual.

I mention this as I wouldn't be surprised if different versions of Python
on different platforms behaved differently when given strange module
names for importing.

Take as an example prior case where someone was using "a/b" for a
module name. Ie., directory name, slash, and then module name. This
wouldn't work on Mac OS X but did work on Linux. Result was that it
allowed loading of a module in a subdirectory without need for use of
packages. Not sure what Win32 did.

Graham

Jim Gallacher wrote ..[vbcol=seagreen]
> Ok, this is weird. I've run the tests on a couple of my qemu images and
> I get the same output as Nicolas and Graham in the error log, but a
> different output for my development machine. I think I'll rewrite the
> test to just check the response from the request rather than rooting
> around in the error_log. The point of the test is to make sure that an
> exception is raised when req.add_handler("PythonHandler", "") is
> attempted, so there a couple of different ways to go.
>
> I'll make the change and then roll the new beta tarball.
>
> Jim
>
>
> Nicolas Lehuen wrote:
> ''
> 'tests'
> it
> ''
> :
> :
> :
> :
> ''

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com