[Zope] lines property issue

David Chandek-Stark dc at duke.edu
Mon Nov 17 17:32:25 EST 2003


It seems that lines properties initialize to [''] -- shouldn't they 
initialize to []?

I would have assumed that lines properties are parsed with splitlines(),
but ''.splitlines() returns []. '\n'.splitlines(), however, returns [''].

Can someone enlighten me on this?

This is a problem, for example, in ZPT b/c I'd like to do things like
tal:condition="object/lines_property".

Thanks!
David

Mozilla 1.5/Win
Zope 2.6.2/Linux

-- 
David Chandek-Stark
dc at duke.edu




More information about the Zope mailing list