[Zope] non static size parameter in dtml-var

Scott Parish sRp@srparish.net
Sun, 7 May 2000 19:15:24 +0000


--k1lZvvs/B4yU6o8G
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

I have a dtml-var tag that is being repeated over and over inside of a dtml=
-in
tag.  I would like the client to be able to custimize the maximum amount of
text output they see, so i did something like the following:

 <dtml-var "item['title']" size=3D"getTitleLen()">

Where getTitleLen is a method which returns an integer of how many characte=
rs
max the title is to be.  However, when i have this dtml method rendered, i
get the following error:

  a size attribute was used in a var tag with a non-integer value.=20

Is there a do what i am trying to do?  If so, how could i do it?  If not,=
=20
why isn't this possible?

thanks
sRp

--=20
Scott Parish
http://srparish.net

--k1lZvvs/B4yU6o8G
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (OpenBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE5FcDLQIKxCnswXL0RAXfvAJ46JtrqvFOGopB1ZNOOIUMV41089QCaAiQZ
4f0Fni/+VY0tBYy8zWH50uo=
=fWcF
-----END PGP SIGNATURE-----

--k1lZvvs/B4yU6o8G--