Dan Jacobs wrote:
Hi All,
Here's the problem...
We have a sidebar component called "submenu" that calls objectIds() to get the list of object ids in the containing folder. It's included in content pages.
If submenu is called on its own, objectIds works fine. If it's called from within a DTML Method, objectIds works fine. If it's called from within a DTML Document, objectIds returns None.
Any ideas?
Cheers,
Dan
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
a dtml document creates its own namespace but it cant contain any other objects - only properties so objectIds returns none a dtml method is a method of the containg object eg a folder so objectIds is called on the folder and therefore returns the subobjects of the folder