On Oct 20, 2010, at 10:44 PM, ron_m wrote:
>
> This works
>
> URL(request.application,'default','products/used'), [])
You can also do something like this, which to my mind is more readable:
URL('default', 'products', args=['used'])
or equivalently, and even more readable:
URL(c='default', f='products', args=['used'])
I say "something like" because I didn't explicitly test it.
>
> On Oct 20, 7:40 pm, Jason Brower <[email protected]> wrote:
>> response.menu = [
>> (T('Home'), False, URL(request.application,'default','index'), []),
>> (T('Products'), False,
>> URL(request.application,'default','products'), []),
>> (T('Used Products'), False,
>> URL(request.application,'default','products'), []),
>> (T('Company'), False, URL(request.application,'default','company'),
>> [])
>> ]
>> Notice I have to products pages... basically they are they same but they
>> have some feilds I want different in them... one will go to
>> default/products and the other to default/products/used.
>> BR,
>> Jason
>>
>> On Wed, 2010-10-20 at 11:26 -0700, mdipierro wrote:
>>> ?
>>
>>> On Oct 20, 12:26 pm, Jason Brower <[email protected]> wrote:
>>>> Are there no arg in response.menu? If not I can build it different, but
>>>> I thought it would so I can do some special menu items.
>>>> :/ Innerestin'
>>>> ---
>>>> BR,
>>>> Jason
>>
>>>> face-uncertain.png
>>>> 1KViewDownload
>>
>>