[Zope-dev] REQUEST, RESPONSE & Acquisition
Michel Pelletier
michel@digicool.com
Tue, 22 Jun 1999 18:06:24 -0400
> -----Original Message-----
> From: Michael Collins
> [mailto:Michael_Collins@amchoor.ndim.edrc.cmu.edu]
> Sent: Tuesday, June 22, 1999 3:45 PM
> To: zope-dev@zope.org
> Subject: [Zope-dev] REQUEST, RESPONSE & Acquisition
>
>
> Hi, I'm building an external method which looks at its parent
> folders list of
> DTML documents and publishes it. At first, I thought I could
> just call the
> document template, something like:
>
> function return(self):
> toReturn = self.index_html
> return toReturn(toReturn)
>
> This works fine as long as the document has no variables of
> its own, but if,
> say default_html_header is referenced, the call barfs. As
> far as I can tell,
> the document has acquired nothing. I've been poking around
> the source code,
> and I'm really not sure what's going on. Does anyone have a helpful
> suggestion?
>
What it sounds like you want to do can be done just as easily in a DTML
Method.
<ul>
<!--#in "objectValues('Folder')"-->
<li>A folder: <!--#var id--></li>
<!--#/in-->
</ul>
This is because a DTML Method is a method of the folder than contains
it, not an Zope object in itself. If you put this code in a DTML
*Document* you'll get nothing.
-Michel
>
>
>
>
> _______________________________________________
> Zope-Dev maillist - Zope-Dev@zope.org
> http://www.zope.org/mailman/listinfo/zope-dev
>
> (For non-developer, user-level issues, use the companion list,
> zope@zope.org, http://www.zope.org/mailman/listinfo/zope )
>