Right now I am using it for response.menu

But I want to be able to do some sort of grouping based on either controller or function.

so I store all my urls in as in the /models/menu.py

then I do things like check if the user is logged in and add more to that menu;

Now I want to do some display magic, so I thought I could find out some information as I am looping through the URL()'s and say "url.controller='default'" do x.



On 1/12/12 10:20 AM, Anthony wrote:
What's your use case?

On Thursday, January 12, 2012 10:11:14 AM UTC-5, David J wrote:

    I think it would be a worthwhile feature to be able to get
    information
    from a URL helper object.

    For example,

    If we create a tuple of URL objects, and we want to loop through
    them,
    we may want to be able to extract things like vars and args that were
    set when the object was created.

    ie:

    urls =
    
(URL('default','action',args=['arg1','arg2']),URL('default','action',args=['arg1','arg2']))

    now I want to do something like

    for url in urls:
         print url.function


    This obviuosly does not work.


Reply via email to