[Zope] reading text file object

Andreas Jung lists at zopyx.com
Mon Oct 23 01:58:49 EDT 2006



--On 22. Oktober 2006 22:01:49 -0700 Allen Huang <swapp0 at yahoo.com> wrote:

> I made a template that changes the location name and content due to the
> information stored in the title property variable and the file content of
> a "File" object.
>
> I used the dtml tag <dtml-var title> to call the "title" information but
> I don't know of any dtml tag that would call the content other than
> calling the "id" of the File object.     ex.    File object "test"
>              Call method "<dtml-var test>"
>
> Could anyone help out. Is there any other ways to call the content of the
> text "File" object?


You must call str(obj) in general or _.str(obj) within DTML (do you have ten
good reasons for using DTML instead of ZPT?).

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20061023/855ff78e/attachment.bin


More information about the Zope mailing list