Charlie Clark wrote:
> this may just be another case of me being thick but whilst working on
> CookieCrumler I took a look at the best way for getting the "user/login"
> and "user/logout" actions. getActionObject("user/login") would seem to be
> best approach. However, it will not work with any straight actions as none
> of them have a category. As things stand this method will only work with
> Type actions. Is this correct?
Yes. You don't need that method for newstyle Actions. Just use this if
you want to get the Action object:
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']
And please don't forget that I plan to replace the unauth redirect code
Zope-CMF maillist - Zope-CMF@zope.org
See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests