[Zope] Object ID and Property confusion
James W. Howe
jwh@allencreek.com
Wed, 09 Feb 2000 11:22:49 -0500
At 11:09 AM 2/9/00 -0500, Jeff K. Hoffman wrote:
>On Wed, 9 Feb 2000, David Salgado wrote:
>
> > Hi All
>
>[snip]
>
> > Now, each of the 'myObj' instances has a property 'myProp', which I'm
> > interested in. So I can do this;
> >
> > <dtml-in "objectValues('myObj')">
> > <dtml-var myProp><br>
> > </dtml-in>
> >
> > ...to display a list of all the 'myProp' values of the 'myObj' objects.
> >
> > What I want to do is display a table where column one contains the id
> of the
> > object, and column two contains the 'myProp' value. From a brief look
> at the
> > source of "lib/python/OFS/ObjectManager.py" it looks as if the
> > 'objectItems()' method might do something like what I want, but I haven't
> > been able to get it to do what I want.
>
>How about this:
>
> <dtml-in "objectValues('myObj')">
> <dtml-var sequence-var-id> -- <dtml-var sequence-var-myProp><br>
> </dtml-in>
Is there any reason why you couldn't just do this?
<dtml-in "objectValues('myObj')">
<dtml-var id> -- <dtml-var myProp><br>
</dtml-in>
James W. Howe mailto:jwh@allencreek.com
Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html
Ann Arbor, MI 48103