Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: CMF
Re: More browser views
 

Index | Next | Previous | View Flat


charlie.clark at clark-consulting

Apr 9, 2010, 4:29 AM


Views: 2162
Permalink
Re: More browser views [In reply to]

Am 09.04.2010, 12:06 Uhr, schrieb yuppie <y.2010 [at] wcm-solutions>:

> getUnauthorizedURL is already using restrictedTraverse. This only fails
> because it starts from self instead of the parent (=portal root) and the
> login form is usually not registered for the cookie crumbler.
> And it tries to call absolute_url(). Views don't have that method.

Thanks for the explanation.

Adding a method to the view is easy enough:

def absolute_url(self):
return "%s/%s" % (self.utool(),
self.context.auto_login_page)

Although this exposes some of the drawbacks of the current implementation.

> An other approach would be to look up the URLs in the Actions tool. The
> login URL is already specified in the 'user/login' Action, an invisible
> logged_out Action could be added. Long time ago the cookie crumbler had
> a stand alone version, so there are no dependencies on other tools. But
> now I would prefer to avoid redundant settings.

Makes sense. I can see logging in and out as special cases of actions -
you shouldn't really be able to do without them. But they shouldn't be
hard-coded into CookieCrumbler.

Any idea why CookieCrumbler is a Folder?

Charlie
--
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-600-3657
Mobile: +49-178-782-6226
_______________________________________________
Zope-CMF maillist - Zope-CMF [at] zope
https://mail.zope.org/mailman/listinfo/zope-cmf

See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests

Subject User Time
More browser views charlie.clark at clark-consulting Apr 7, 2010, 4:09 AM
    Re: More browser views jens at dataflake Apr 7, 2010, 4:47 AM
        Re: More browser views charlie.clark at clark-consulting Apr 7, 2010, 5:04 AM
            Re: More browser views y.2010 at wcm-solutions Apr 9, 2010, 3:06 AM
                Re: More browser views charlie.clark at clark-consulting Apr 9, 2010, 4:29 AM
                    Re: More browser views jens at dataflake Apr 9, 2010, 4:38 AM
                        Re: More browser views charlie.clark at clark-consulting Apr 9, 2010, 4:55 AM
                        Re: More browser views charlie.clark at clark-consulting Apr 14, 2010, 6:43 AM
                            Re: More browser views jens at dataflake Apr 14, 2010, 6:48 AM
                                Re: More browser views charlie.clark at clark-consulting Apr 14, 2010, 6:49 AM
                                    Re: More browser views jens at dataflake Apr 14, 2010, 6:56 AM
                                        Re: More browser views charlie.clark at clark-consulting Apr 14, 2010, 7:11 AM
                                            Re: More browser views charlie.clark at clark-consulting Apr 14, 2010, 8:09 AM
    Re: More browser views y.2010 at wcm-solutions Apr 7, 2010, 5:27 AM
        Re: More browser views charlie.clark at clark-consulting Apr 7, 2010, 5:37 AM
            Re: More browser views y.2010 at wcm-solutions Apr 7, 2010, 6:34 AM
                Re: More browser views y.2010 at wcm-solutions Apr 8, 2010, 3:22 AM
            Re: More browser views y.2010 at wcm-solutions Apr 12, 2010, 4:43 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.