What do you need the variable names for? It sounds like a bad
application design, but maybe you have a unique situation.

Normally, the action defines which names it requires, and that
determines which names the route must supply.  So you can get the
values simply:

def my_action(self, customVariable, secondCustom):

Or if you really want:

def my_action(self, controller, action, customVariable, secondCustom)

If the variable isn't defined, you'd get some exception.

So the action needs certain variables in order to function. Why would
it care which other variables are defined?

--Mike

On Fri, May 21, 2010 at 11:19 AM, Mario Moura <[email protected]> wrote:
> Ok
>
> I found :
>
> request.environ['pylons.routes_dict']
>
> Regards
>
> Mario
>
> 2010/5/21 Mario Moura <[email protected]>
>>
>> Hi Folks
>>
>> map.connect("/pylons/is/very/cool", controller="pylons", action="is",
>> customVariable="very", secondCustom="cool")
>>
>> I am not talking about request.params.items() or request.GET.items() ...
>>
>> So in my controller I want get all "variables names"  like:
>>
>> controller (default)
>> action (default)
>> customVariable
>> secondCustom
>>
>> Let me say, I dont need what is "inside this variables like "very" "cool"
>> (but will be nice know this too) just the names of variables
>> (customVariable, secondCustom)
>>
>> Regards
>>
>> Mario
>> macm
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" 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/pylons-discuss?hl=en.
>



-- 
Mike Orr <[email protected]>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to