I still consider myself a newbie too, but it seems that the code in the document is calling objectValues on an object, whereas the method is calling the objectValues method on itself. This doesn't work because a dtml method doesn't contain any 'File's, whereas the object objectValues is called on in the document is presumably a folderish object. Is this correct? -jim ----- Original Message ----- From: "Alexis Roda" <arv@si.urv.es> To: "zope" <zope@zope.org> Sent: Tuesday, October 08, 2002 10:45 AM Subject: Re: [Zope] Newbie problem
Andy McKay wrote:
Change the DTML Document to a DTML Method.
Many thanks, it does work now.
There's a thing I still can't understand. I have the following dtml document (not method):
<dtml-var standard_html_header> <ul> <dtml-in expr="arees.objectValues('Folder')"> <li><a href="&dtml-absolute_url;"><dtml-var title_or_id></a></li> </dtml-in> <dtml-var standard_html_footer>
This dtml document does work, it shows a list of folders inside the folder named "arees". I can't see the difference with
<dtml-var standard_html_header> <ul> <dtml-in expr="objectValues('File')"> <li><a href="&dtml-absolute_url;"><dtml-var title_or_id></a></li> </dtml-in> <dtml-var standard_html_footer>
that does not work as dtml document.
Can someone enlight my ignorance? Thanks in advance -- //// (@ @) ---------------------------oOO----(_)----OOo------------------------ Los pecados de los tres mundos desapareceran conmigo. Alexis Roda - Universitat Rovira i Virgili - Reus, Tarragona (Spain) --------------------------------------------------------------------
_______________________________________________ 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 )