[Zope] Newbie: Displaying another objects properties

Andy McKay andym@ActiveState.com
Mon, 15 Jan 2001 17:41:29 -0800


Document 2 has property: name=foo, type=string, value=bar
Document 1 dtml:

<dtml-with "Document2">
  <dtml-var foo>
</dtml-with>

or

<dtml-var "Document2.foo">

Assuming Document1 and 2 are in the same folder.

--
  Andy McKay.


----- Original Message -----
From: "Michael Garrison Stuber" <garrisonstuber@bellsouth.net>
To: <zope@zope.org>
Sent: Monday, January 15, 2001 5:26 PM
Subject: [Zope] Newbie: Displaying another objects properties


> I've looked all over (the Zope book, the zope site, the Zope Newbie site,
> the Zope group archives) and I'm still confused.  I'm trying to do
something
> like this:
>
> DTMLDocument1:
> Contents{
>
> <dtml-var DTMLDocument2>
>
> <dtml-with DTMLDocument2>
> <dtml-var Document2Property>
> </dtml-with>
>
> }
>
> DTMLDocument2:
> Contents{
>
> <H2>Blah blah blah</H2>
>
> }
> Document2Property{
>
> Spoken by the blahster
>
> }
>
> Basically, from a DTML document I'd like to display (or otherwise
reference)
> the properties of another DTML document.  I've tried _, REQUEST, getattr,
> and direct references to DTMLDocument2 all to no avail.  Surely there is a
> way to do this.  (I hope).  Help!  Thanks
>
> --
> Michael T. Garrison Stuber
>
>
> --
> Michael T. Garrison Stuber
>
>
>
> _______________________________________________
> 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 )
>