[Zope] Different field conversion for lines and ulines : why?
Andreas Jung
lists at zopyx.com
Thu Jan 11 06:15:49 EST 2007
--On 11. Januar 2007 11:23:45 +0100 Pascal Peregrina
<Pperegrina at Lastminute.com> wrote:
> Hi,
>
> I would like to know why lines fields are not converted with the same
> logic as ulines fields in Zpublisher.Converters.
>
> lines uses splitlines() while ulines uses split('\n')
>
> This gives different result:
>>>> ''.splitlines()
> []
>>>> ''.split('\n')
> ['']
>>>> u''.splitlines()
> []
>>>> u''.split('\n')
> [u'']
>
> So, when creating an empty Zope property for example, ulines version value
> will be (u'',) while lines version value will be ()
>
>
Put this into the bugtracker. If possible with unittests and patches :-)
-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20070111/d75d53dc/attachment.bin
More information about the Zope
mailing list