Doh, I that was an email typo I would have received a syntax error (I always run a syntax check prior to trying code, just not putting it in emails). Anyway I checked it again and it occurs on Zope 2.2.5, so the its a not a 2.3. The problem is the [2:] which for some reason doesnt want to work, when I thought I was accesing a simple tuple. Sorry to bother you. -- Andy McKay. ----- Original Message ----- From: "Brian Lloyd" <brian@digicool.com> To: "Andy McKay" <andym@ActiveState.com>; <zope-dev@zope.org> Sent: Thursday, February 08, 2001 7:17 AM Subject: RE: [Zope-dev] manage_options in 2.3
Thanks for the new management interface guys I happily wrote a product last night and did a quick interface using the standard Folder interface and fiddled with filtered_meta_types list and dontAllowCutandPaste and so on. A quick How-To will be on its way. I got a wierd error trying to fiddle with manage_options though, in the olden days something like this worked:
manage_options = ( ( Folder.manage_options[0], ) + ( {'label':'View', 'action':'my_index_html', ) + ( Folder.manage_options[2:], ) )
Dunno if this is the actual problem or just a typo in the email:
manage_options = ( ( Folder.manage_options[0], ) + ( {'label':'View', 'action':'my_index_html', ) +
^ need to close dict w/ }
I suspect its an email typo, though (I would have expected a SyntaxError, unless it was being consumed somehow).
Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com