mod_python, user missing

grahamd at dscpl.com.au grahamd at dscpl.com.au
Fri Mar 25 17:18:30 EST 2005


Good question, according to the documentation it should work, I'll
push this onto the mod_python mailing list for discussion and get a
bug report posted if necessary.

In the meantime, you could use the following work around:

def __auth__(req, user, passwd):
     req.user = user
     if user == 'noppa' and passwd == 'potti':
         return True
       else:
         return False

Ie., explicitly set "req.user" in the __auth__ method.




More information about the Python-list mailing list