>
> This:
>
(T('Whatever'), False, URL(...wherever...), [empty]),
should be
(T('Whatever'), False, URL(...wherever...), empty or []),
On 14-10-2010 07:34, mdipierro wrote:
>> 3. I love the "append" (and probably other methods) of the Helpers, really
>> beautiful !!
>> Why does Menu not allow these methods ?
> it does. Menu is just a list of tuples
>
> response.menu=[]
> submenu_title=[]
> response.menu.append(("Search",False,U
On 14-10-2010 06:20, Alex wrote:
> Hello,
>
> I can try to answer your first 2 questions:
>
> 1. It looks like the parameters are (based on the example in the
> book):
> - 1st parm (Item Text - 'One'): The text you want to show for the
> item, so the list item will render with the text of: One
>
the second argument should really be some condition that determines if
that is the current age and returns True/False
On Oct 13, 6:06 pm, Stef Mientki wrote:
> On 14-10-2010 00:58, Stef Mientki wrote:
>
> > hello,
>
> > thanks to you all I got the left sidebar menu working, great !!
>
> > Stil
On 14-10-2010 00:58, Stef Mientki wrote:
> hello,
>
> thanks to you all I got the left sidebar menu working, great !!
>
> Still a few questions :
>
> 1. In chapter 5, it says, each MENU item takes 3 parameters "as described in
> chapter 4",
> but I can't find the description of these parameters,
> 3. I love the "append" (and probably other methods) of the Helpers, really
> beautiful !!
> Why does Menu not allow these methods ?
it does. Menu is just a list of tuples
response.menu=[]
submenu_title=[]
response.menu.append(("Search",False,URL('index'),submenu_title))
submenu_title.append(
Hello,
I can try to answer your first 2 questions:
1. It looks like the parameters are (based on the example in the
book):
- 1st parm (Item Text - 'One'): The text you want to show for the
item, so the list item will render with the text of: One
- True | False: True means that web2py will app
7 matches
Mail list logo