request.controller_state.controller and
request.controller_state.method should provide what you are looking
for.

On Sun, Feb 26, 2012 at 1:41 AM, Mengu <[email protected]> wrote:
> hi everyone,
>
> with pylons i would use __before__ method and take action depending
> the action name passed there like this:
>
> def __before__(self, action, **kwargs):
>    something_here
>
> with lib/base/BaseController.py i can invoke the __before__ method
> like "def __before__(self, **kwargs)". so far so good. the problem is
> kwargs["action"] returns "routes_placeholder" instead of the action
> name whereas kwargs["controller"] returns the controller name. how can
> i get the action name?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "TurboGears" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/turbogears?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to