[Twisted-Python] request getUser()/getPassword() in Woven and resources...
mailinglists at shechen.at
Wed Nov 5 18:13:06 EST 2003
My question goes along the previous one in this thread.
How do you get the browser to prompt for a username and password?
My code is not woking and goes something like this: On every page request
a certain function is called, say genpage()...
return "hello world"
-> Browser does not prompt though. (And this does not even involve woven)
On Thu, 30 Oct 2003 15:52:32 +1100, Stuart Hungerford
<stuart.hungerford at anu.edu.au> wrote:
> Hi all,
> I've had a twisted web application running for a while that
> uses request.getUser() and request.getPassword() in a
> resource subclass render() method to make the web browser
> prompt for a username/password.
> I've been refactoring this application to use Woven page
> subclasses and the same request.getFoo() calls now
> return empty strings rather than None, and no prompting
> from the browser is done.
> Is there some gotcha in using request.getUser() and
> request.getPassword() from Woven page subclasses?
> :: Stuart Hungerford (stuart.hungerford at anu.edu.au)
> :: ANU Internet Futures Group
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
More information about the Twisted-Python