[Zope-dev] Using Aquisition to get a file

Evan Simpson evan@digicool.com
Mon, 17 Apr 2000 22:40:47 -0400


----- Original Message -----
From: "Chimezie Ogbuji" <cogbuji@fourthought.com>
> <dtml-let xsldata="stylesheets._[stylesheet].data">

This ought to work:

<dtml-let xsldata="stylesheets[stylesheet].data">

You were only two characters away :-)  In general, Folders allow you to
access their contents through item access like this.  If you wanted to
acquire instead of just access contents (or if it wasn't a Folder), you
could write:

<dtml-let xsldata="_.getattr(stylesheets, stylesheet).data">

Cheers,

Evan @ 4-am & digicool