I am passing 2 variables to my kid template like this:
return dict(
datasets=datasets,
times=times
datasets is a list of lists of dictionaries and times is a list of
integers.
In my template, I have:
<p py:for="dataset, time in datasets, times">
<div py:content="form.display(dataset)">form</div>
Total Time: ${time}
</p>
When I run it, it complains that there are either too many values to
unpack or not enough, depending upon how many dataset items there are
in datasets.
If there are fewer items than 2 , it complains that there are too few
items to unpack.
If there are more than to it complains that there are too many.
If there are exactly 2, it gets past that and complains about not
finding a key 'name'.
Sorry if this is a basic python question , but I thought I understood
unpacking pretty well and this is just not working as I expected and
I'm not sure why.
Thank you for any assistance,
Steve Bergman
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---