Re: [Zope] dtml-tree and a filtered objectValues
Jim Hebert writes:
.... DMTL method "y": OK, this works:
My DTML Method, "y": <dtml-return "objectValues(['Folder'])"> ... used as: <dtml-tree branches_expr="_['y']"> ... causes: <STRONG>Error Type: AttributeError</STRONG><BR> <STRONG>Error Value: __getitem__</STRONG><BR>
I tried to reproduce this in Zope 2.3 CVS. I had to replace "_" by "_vars", as "_" gave me a "NameError: _" (do not know why), but otherwise, it worked. I got your error, too, when I tried 'branches_expr="y"', but that is expected, because in this case, the expression evaluates to a DTML method and does not have a "__getitem__" as required by "tree". Dieter
On Wed, 10 Jan 2001, Dieter Maurer wrote:
I tried to reproduce this in Zope 2.3 CVS.
Sorry, shoulda mentioned, this error came from 2.2.4, and apologies for not testing against at least 2.2.5 first, I managed to miss its release entirely... (I still haven't gotten around to installing it so I can't say if it's mysteriously fixed in 2.2.5 or what.) On that note, if I have a (different) 2.1.6 site I'm about to take down and migrate to a current release, should I go with 2.2.5 or try to track 2.3 CVS? I was planning on going with 2.2.x, but if the version in cvs is _more_ mature than the previous release... Thanks, jim
participants (2)
-
Dieter Maurer -
Jim Hebert