On May 27, 2005, at 3:25 PM, Damjan wrote:
Here is what I do for http://www.forecastwatch.com. If the user tries
to access a page he needs to log in to, I throw a
"NotLoggedInException", which is caught by _q_exception_handler. In
the
handler for NotLoggedInException, I call the login page, sending it
request.get_path(), like so:
def _q_exception_handler [html] (request, exception):
This looks interesting.
Where do I define this function (or is it a method)?
Is it enough to define it in the RootDirectory class, will it then work
no matter what URL I'm calling?
There were some threads recently, related to this, that may be helpful:
altdemo to also show form-based login and page access control
http://mail.mems-exchange.org/pipermail/quixote-users/2005-February/
004269.html
http://mail.mems-exchange.org/pipermail/quixote-users/2005-March/
004274.html
(plus, in particular, David had described an alternative
RespondNow-based pattern for doing this):
http://mail.mems-exchange.org/pipermail/quixote-users/2005-March/
004275.html
Problem with NotLoggedInError login scheme
http://mail.mems-exchange.org/pipermail/quixote-users/2005-March/
004283.html
mario
_______________________________________________
Quixote-users mailing list
[email protected]
http://mail.mems-exchange.org/mailman/listinfo/quixote-users