"Init Ambigous name ..." for PageTemplateFile
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. Peter -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ .
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
participants (2)
-
Dieter Maurer -
peter@mail.grenna.net