[Zope] getting contents of file into a variable

Oliver Bleutgen myzope@gmx.net
Sat, 07 Sep 2002 12:26:34 +0200


Bj=F8rge Solli wrote:

> How can I do this?
>=20
> I try this way:
> <dtml-let shovedid=3D"SEMESTERID_HOVED" hovedid=3D"str2int(shovedid)">
> where SEMESTERID_HOVED contains one line of integers (20021).
> str2int is an external python script just returning the int-cast of
> whatever string it gets in.


Hmm,
without answering your original question ;-), why don't you use

_.int(shovedid) ?

cheers,
oliver

=20