Annoying ambiguous name
I define a method like this: ListIssues = PageTemplateFile('zpt/ListIssues', globals(), __name__='ListIssues') Then I want to make a shortcut to that method like this: listissues = ListIssues But then I get that annoying message:: 2002-05-04T16:04:13 PROBLEM(100) Init Ambiguous name for method of Products.IssueTrackerProduct.IssueTracker.IssueTracker: "ListIssues" != "listissues" How do I get this right?? I also tried (outside the class): IssueTracker.__dict__['listissues'] = IssueTracker.ListIssues but still the same old error. Anybody knows how to solve this? Peter
At 22:20 2002-05-05 +0200, Dieter Maurer wrote:
Peter Bengtsson writes:
... Search the mailing list archives for "Init Ambiguous".
I did! A lot; but it didn't help. ListIssues = listissues = PageTemplateFile('zpt/ListIssues', globals(), __name__='ListIssues') ListIssues._setName('ListIssues') # line 1162 But I get this:: Traceback (innermost last): File C:\Program\zope240_2\lib\python\OFS\Application.py, line 552, in import_p roduct File E:\Zope\zope240_2\lib\python\Products\IssueTrackerProduct\__init__.py, li ne 1, in ? File E:\Zope\zope240_2\lib\python\Products\IssueTrackerProduct\IssueTracker.py , line 104, in ? File E:\Zope\zope240_2\lib\python\Products\IssueTrackerProduct\IssueTracker.py , line 1162, in IssueTracker AttributeError: class Traversable has no attribute '_setName' The class looks like this:: class IssueTracker(Folder.Folder, CatalogAware, Persistent): and the zope version is 2.4.0 I looked at all my other products and they all use DTMLFile() or HTMLFile(). I use PageTemplateFile().
participants (2)
-
Dieter Maurer -
Peter Bengtsson