Does not work, and does not matter... If you look at the code in ObjectManager, objectItems() calls objectIds() with 'spec', and objectIds() tests whether 'spec' is a string or not, and if it is a string it converts it into a list. Sorry about the typo in my previous post, my code _actually_ read objectItems(['Folder']) not objectItems('[Folder]'). jonas On Fri, Aug 13, 1999 at 11:14:28AM -0400, Christopher Petrilli wrote:
I have the following problem in dtml:
<!--#in "objectItems('Folder')"--> . . . <!--#/in-->
does not work! Neither does objectItems('[Folder]'), but a plain <!--#in objectItems--> works... I have looked at the code in ObjectManager.py and DT_Util.py, but can't figure it out...
You're mispelling it:
<!--#in "objectItems(['Folder'])"-->
objectItems, along with other such things expect a *list* of meta-types.
Chris
-- | Christopher Petrilli Python Powered Digital Creations, Inc. | petrilli@digicool.com http://www.digicool.com
-- And what is good, Phaedrus, And what is not--- Need we ask anyone to tell us these things? [ PGP public key: finger jonas@radon.pc.helsinki.fi ]