hello one and all, the render function under gluon.template is great and powerful. how can i pass two or three context rows to it, like?
from gluon.render import render xyz=""" {{="%s, %s" % (sCustomer.last_name, sCustomer.first_name)}} {{="%i: %s - %s" % (sItem.number, sItem.name, sItem.description)}} {{for p in qPayments: ="%s: %0.2f" % (p.date.strftime("%m-%d), p.paid_amt) pass """ html = render(content=xyz, context=[sCustomer, sItem, qPayments]) where you can see that sCustomer and sItem are single Row() types and qPayments has multiple Rows(). thank you in advance, lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.