[Zope] Annoying ambiguous name (using PageTemplateFile())

Peter Bengtsson mail@peterbe.com
Sun, 05 May 2002 23:47:30 +0100


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().