[Zope] problems creating a Contents management tab

Peter Bengtsson mail@peterbe.com
Tue, 10 Jul 2001 14:32:41 +0200


As a little reminder when working with tabs.
They sometimes don't show if there's an error in the action value.
I've a few times hacked the tabs of folders or products and extended them
with my own classes. If my classes fail startup, the tabs just don't appear.
Be careful.

Peter
----- Original Message -----
From: "Max Møller Rasmussen" <maxm@normik.dk>
To: "'Bob Shelton'" <polaris@erf.net>; <zope@zope.org>
Sent: Tuesday, July 10, 2001 1:03 PM
Subject: RE: [Zope] problems creating a Contents management tab


> > 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
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )