[Zope-CMF] getActionObject() deprecated?
Charlie Clark
charlie.clark at clark-consulting.eu
Mon Apr 19 09:47:14 EDT 2010
Am 19.04.2010, 15:35 Uhr, schrieb yuppie <y.2010 at wcm-solutions.de>:
Hiya Yuppie,
> Yes. You don't need that method for newstyle Actions. Just use this if
> you want to get the Action object:
> atool.user.login
hm, direct access by attributes, who'd have thunk it!? ;-)
> But you don't need the Action itself. You need the ActionInfo object.
> Use this to get the login url:
> target = atool.getActionInfo('user/login')['url']
So, it was me being thick...(I plead hayfever). I got confused looking at
the various layers of ActionProviders, ActionCategories and ActionTools!
> And please don't forget that I plan to replace the unauth redirect code
> completely.
I haven't forgotten that. Login and Logout are definitely better
definitely done as views as they depend upon working with the Request
object.
Maybe you could edit the CookieCrumbler interface so I don't waste more
time on stuff that's being replaced anyway?
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
More information about the Zope-CMF
mailing list