Re: databrowse and @login_required

2007-05-30 Thread Malcolm Tredinnick
On Wed, 2007-05-30 at 10:58 -0400, Jason McVetta wrote: > On 5/29/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > Or you could subclass DatabrowseSite -- in your own code > somewhere; no > need to even modify the source -- and override the root() > method to do

Re: databrowse and @login_required

2007-05-30 Thread Jason McVetta
On 5/29/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > Or you could subclass DatabrowseSite -- in your own code somewhere; no > need to even modify the source -- and override the root() method to do > an auth-check first and then call DatabrowseSite.root(). Then you > replace databrowse.site

Re: databrowse and @login_required

2007-05-29 Thread Malcolm Tredinnick
On Tue, 2007-05-29 at 15:30 -0400, Jason McVetta wrote: > What is the right way to require a user be authenticated when using > the databrowse module? I tried adding @login_required decorators to > both functions in databrowse.views, but that did not work -- it > appears databrowse does not prese

databrowse and @login_required

2007-05-29 Thread Jason McVetta
What is the right way to require a user be authenticated when using the databrowse module? I tried adding @login_required decorators to both functions in databrowse.views, but that did not work -- it appears databrowse does not presently use its views.py. I also tried decorating databrowse.Databr