[Zope] problems creating a Contents management tab

Max Møller Rasmussen maxm@normik.dk
Tue, 10 Jul 2001 13:03:19 +0200


> From: Bob Shelton [mailto:polaris@infinity.erf.net]

>     manage_options = ({'label':'Contents','action':'manage_main'},
>                       {'label':'Edit','action':'editForm'},
>                       
> {'label':'View','action':''},)+RoleManager.manage_options\
> +Item.manage_options
> 
>     manage_main = ObjectManager.manage_main

I think that the::

    manage_main = ObjectManager.manage_main

Is a bit fishy.

The first option in yout manage_options will automatically be selected as
the first tab in the list.

Why don't you just::

    manage_options = ObjectManager.manage_options (
                        {'label':'Contents','action':'manage_main'},
                        {'label':'Edit','action':'editForm'},>            
                        {'label':'View','action':''},)\
                        + RoleManager.manage_options\
                        + Item.manage_options


regards Max M