[Zope-dev] Attribute Error in _call_ with childless_decoration

Jason Spisak webmaster@mtear.com
Tue, 01 Jun 1999 10:14:12 -0400


Zopeinators:

It worked fine, then all of a sudden, I got a traceback on a document
that uses this code:

<!--#tree branches_expr="objectValues(['Submission'])"-->
<a href="<!--#var tree-item-url-->">
<img src="<!--#var icon-->" border="0"> <!--#with Candidates--><!--#var
"_.getattr(_.getitem(candidate),'first_name')"--> <!--# var
"_.getattr(_.getitem(candidate),'last_name')"--><!--#/with-->
</a>
<!--#/tree-->

It worked Friday, I didn't do any work over the weekend, and now it
gives me this traceback:

<!--
 Error type:  
 Error value: __call__
 -->

Traceback (innermost last):
  File /home/jason/Zope/lib/python/ZPublisher/Publish.py, line 255, in
publish_module
  File /home/jason/Zope/lib/python/ZPublisher/Publish.py, line 157, in
publish
  File /home/jason/Zope/lib/python/ZPublisher/mapply.py, line 154, in
mapply
    (Object: index_html)
  File /home/jason/Zope/lib/python/ZPublisher/Publish.py, line 98, in
call_object
    (Object: index_html)
  File /home/jason/Zope/lib/python/OFS/DTMLMethod.py, line 157, in
__call__
    (Object: index_html)
  File /home/jason/Zope/lib/python/OFS/DTMLMethod.py, line 153, in
__call__
    (Object: index_html)
  File /home/jason/Zope/lib/python/DocumentTemplate/DT_String.py, line
513, in __call__
    (Object: index_html)
  File /home/jason/Zope/lib/python/TreeDisplay/TreeTag.py, line 154, in
render
    (Object: a tree tag)
  File /home/jason/Zope/lib/python/TreeDisplay/TreeTag.py, line 244, in
tpRender
    (Object: 1000059)
  File /home/jason/Zope/lib/python/TreeDisplay/TreeTag.py, line 481, in
tpRenderTABLE
    (Object: 1000059)
    (Info: ([113750, []], {'childless_decoration': '', 'id': 'tpId',
'branches_expr': &lt;method Eval.eval of Eval instance at 9c2a9a8&gt;,
'url': 'tpURL'}, ([113750, []],), ([113750, []],)))
  File /home/jason/Zope/lib/python/TreeDisplay/TreeTag.py, line 400, in
tpRenderTABLE
    (Object: 1000061)
  File /home/jason/Zope/lib/python/DocumentTemplate/DT_With.py, line
132, in render
    (Object: Candidates)
AttributeError: (see above)


Any ideas what a childless_decoration is?  The 'Submission' object is a
class that has a property named 'candidate' which containes the id of an
object in the 'Candidates' folder.  I'm not sure what's going on.  Any
insight is greatly appreciated.

Thanks in advance,

Jason Spisak
webmaster@mtear.com