[Zope] Anurism on list within a list

Itamar Shtull-Trauring itamars@ibm.net
Tue, 30 Nov 1999 20:57:43 +0200


Jason Spisak wrote:
> 
> Zope-artists,
> 
> Regretably, I have suffered an anurism trying to define a two-variable
> property in Zope.

I usually use a lines property and then split it up, similar to the way
TinyTables store data.

E.g. Example - a lines property that displays as:
a ::: 3
b ::: 4

and then 

<dtml-in Examples>
<dtml-call "REQUEST.set('pair', _.string.split(_['sequence-item'], ' :::
'))">
<dtml-var "REQUEST['pair'][0]"> is <dtml-var "REQUEST['pair'][1]"><br>
</dtml-in>

I usually use pythonmethods though, since its cleaner.

-- 
Itamar S.T.  itamars@ibm.net