Attribute Error in _call_ with childless_decoration
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': <method Eval.eval of Eval instance at 9c2a9a8>, '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
Jason Spisak wrote:
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:
(snip)
Any ideas what a childless_decoration is?
It is what's just to the left of an item with no children in tree display. It will eventually be changeable via a tag option. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.
participants (2)
-
Jason Spisak -
Jim Fulton