[Zope] Bug ? in "lines" properties

Ausum Studio ausum_studio@hotmail.com
Fri, 25 Oct 2002 18:44:43 -0500


That's a normal, though 'buggy' behaviour. It happens when you manually save
changes at the properties tab, because the textarea sends an empty string as
a value, when nothing is written. It might deserve to be placed at the
Collector.


Ausum


----- Original Message -----
From: "Gilles Lenfant" <gilles@pilotsystems.net>


> Hi,
>
> lines = somePropertyManager.getProperty('aLinesProp')
>
> ... returns always...
>
> ['', 'line1', 'line2'...]
>
> I always got an empty string at the start of the list and always need to
> change this by...
>
> lines = [l for l in somePropertyManager.getProperty('aLinesProp') if l !=
> '']
>
> --Gilles
>
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>