I browsed around the source and determined that if you return a tuple
that contains the def name as the first element, and a list of tuples
as the second argument it will render the mako def properly.
Ie:
@action(renderer='templatename.mako')
def index(self):
studentlist = ['jimmy']
return ('mydef', [('students', studentlist)])
If a dict is passed as the second element it will be converted into a
set and MakoLookupTemplateRenderer will raise an error complaining
that it is not a dictionary.
Is it a bug that the second argument must not be a dictionary as would
be expected?
--
Landreville
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en.