[Zope-CMF] Re: FSPropertiesObject - lines property
Chris Withers
chrisw@nipltd.com
Tue, 03 Jun 2003 10:17:58 +0100
Michael Haubenwallner wrote:
> Hi,
> i have seen you are the current maintainer of
> CMF/CMFCore/FSPropertiesObject.py. if i should put this question on the
> collector - please tell me so and forgive me.
Hmmm... what leads you to believe I'm the current maintainer?
I wonder if hte list has any ideas on this:
> My problem is a follows:
> i need a lines property for one of my cmf products and put the default
> values into a .props file inside my products skin directory. the .prop
> file is imported correctly, but i found no way to format the values of
> the lines property correct. the best i get is a list with one element of
> type string.
>
> i looked into ZPublisher.Converters.file2lines and found, that the
> converter wants to split on '\n' which clearly is not possible inside
> _readfile().
>
> i looked in other projects but found no example of adequate usage.
> could you point me to an example of a correct lines property formating
> or give me a clue, how i could work around this (i thought about extra
> testing on property type and splitting on a self defines separator ?)
cheers,
Chris