[Zope] PROBLEM(100) Init Ambiguous .. "manage_main" != "manage_editTabsForm

hans hans@beehive.de
Thu, 16 Aug 2001 18:07:49 +0100


i've sent mlm my private Tabs product (read digest 95)
##### File Tabs.py
default_title='AdvanTabs'  # also used as meta_type
from ImageFile import ImageFile  # button images
from Globals   import DTMLFile  #
from OFS       import SimpleItem #
import string   # atoi
from StringIO import StringIO # save/save, [un]pickle into string
import pickle   # load/save, from/into client file,

class Tabs(SimpleItem.SimpleItem):

  """keeps a treelike tabs-structure"""
  # Tabs: [ ...{'num':string, 'lbl':string, 'url':string,
'sub':Tabs},...]
   SEP = '.' # separator

   meta_type=default_title

   manage_options = (
         { 'label': 'Edit', 'action':'manage_editTabsForm' },
         { 'label': 'Tabs', 'action':'manage_adminTabsForm' },
         { 'label': 'View', 'action':'manage_viewTabsForm' },
   ) + SimpleItem.SimpleItem.manage_options

 def __init__(self, id, title=default_title):
       """init new instance of Tabs"""
       ...
 manage_main = \
 manage_editTabsForm = DTMLFile('manage_editTabsForm', globals() )
 # """edit Tabs, a) set title, load tabstree from client, c) save
tabstree to client"""

 def manage_editTabs(self, title='', REQUEST=None):
      """edit Tabs, set Title"""
---------------------------------------------------------------------------

and mlm mails me:
>Problem?  I stopped Zope, expanded the .zip file in the Products
>directory, restarted Zope, and got:

>2001-08-16T15:16:59 PROBLEM(100) Init Ambiguous name for method of
>Products.AdvanTabs.Tabs.Tabs: "manage_main" != "manage_editTabsForm

>Suggestions?

i never had that one. sorry, i dont have any idea. whats going on?
(basti tells me, its a zope 2.4 error, maybe mlm uses 2.4, i dont)
but again sorry im just about to take my free time *very* soon.