[Zope] "Init Ambigous name ..." for PageTemplateFile
Dieter Maurer
dieter@handshake.de
Tue, 22 Jul 2003 22:37:36 +0200
peter@mail.grenna.net wrote at 2003-7-21 09:22 -0400:
> I get messages like this when I use this code (pseudo)::
>
> MyClass.__dict__['page.html'] = MyClass.page_html
>
>
> 2003-07-21T13:47:24 PROBLEM(100) Init Ambiguous name for method of
> Products.QDProduct.QDSP.QDSP: "changesettings_html" != "changesettings.html"
>
> With the DTMLFile module, when this happens I use _setName() and the
> message goes away. _setName() does not work for PageTemplateFile instances.
> What should I use? I have searched the mailinglist but to no avail.
You can set their "__name__" attribute (or pass it as a parameter
to the "PageTampleFile" constructor).
I think, recent "PageTemplate" versions should have the "_setName"
method, but I may be wrong...
Dieter