Hello, on an own product I've coded this: index_html = Globals.DTMLFile('dtml/viewLinkListItem', globals()) __str__ = index_html If I start now Zope again a message PROBLEM(100) Init Ambiguous name for method of Products.KBProducts.kbarticle_impl.LinkListItem: "__str__" != "index_html" appears. Anything behave as it should, so the string representation of this product works if i For instance call it up within a dtml-loop: <dtml-in getLinks()> <dtml-var sequence-item> </dtml-in> In this loop the LinkListItem Product is rendered as defined in index_html Does anxboy has any ideas about the Zope message ?? Thanks in advance Thomas Adams
--On 23. April 2006 17:00:40 +0200 Thomas Adams <thomas.adams@onlinehome.de> wrote:
PROBLEM(100) Init Ambiguous name for method of Products.KBProducts.kbarticle_impl.LinkListItem: "__str__" != "index_html"
Does anxboy has any ideas about the Zope message ??
This usually happens when you're trying to rebind an existing name (__str__) (see lib/python/App/class_init.py). -aj -- ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany Web: www.zopyx.com - Email: info@zopyx.com - Phone +49 - 7071 - 793376 E-Publishing, Python, Zope & Plone development, Consulting
participants (2)
-
Andreas Jung -
Thomas Adams