[Zope] accessing Photo object indirectly via property value

Peter Bengtsson mail@peterbe.com
Mon, 15 Apr 2002 18:20:47 +0200


On Saturday 13 April 2002 20:15, Rob Lemley wrote:

>
> "&dtml.url-sequence-item;/<dtml-var image>/?display=icon"

Sure. Fine.
More pythonic though would be:
<dtml-var "_.getitem(image).display('icon')">
or 
<dtml-var "_.getitem(image).tag(display='icon')">

Doing it that way consumes more processing power but wrapping it around IFs or 
TRY statements you can avoid photo objects that don't work.

Peter

>
> Best Regards,
> Rob
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>
> _______________________________________________
> 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 )