[Zope] Size of a ZClass string property

Jim Washington jwashin@vt.edu
Sun, 09 Jun 2002 07:47:14 -0400

Pierre Godefroy wrote:

> How do you get the size of a string property attached to a ZClass?
> I have tried (txtfrench being the string property)
> <dtml-in "objectValues(['bout projet'])">
> <dtml-var title><br>
> <dtml-var txtfrench.getSize()><br>
> </dtml-in>
> but it does not work...

Hi, Pierre

You want the length of the property, I think.

<dtml-var "_.len(txtfrench)">

There are, however, several things that can cause errors in this 
situation.  Post the error and traceback here if my solution does not 
solve your problem.

-- Jim Washington