Dne pondělí 06 srpen 2001 15:32 jste napsal(a):
How about:
<dtml-let "a=data.get('writers')"> <dtml-var "display(a)"> </dtml-let>
Where display is:
display (Python Script) arguments: data
return data.get('fname')
I can't test it now... I'm at Zope 2.4 machine, and CoreSessionTracking 0.8 doesn't work with it. It looks good but I need to iterate using <dtml-in>... because I need a construct "<dtml-unless sequence-end>, </dtml-unless>" What you wrote does not look like iteration. The a variable receives a set of records... display Script is called with "a" parameter... fname is extracted from session data... but which fname, if there are many records? And what you wrote is a nested session extraction?? (first extract writers, then sub-extract fname?) You are right that when I pass the :records as a parameter I can iterate through it. However I cannot change values inside :records... unless I apply the patch suggested recently by Evan Simpson. If I do not want to patch, I need to convert :records into a list of tuples, and use it instead of records. Right? -- Milos Prudek