I may have string like,
"""Hello, %(name)s, how are you today, here is amount needed: %(partner_id.account_id.debit_amount)d """
eval
How to write a function render_user which takes one of the tuples returned by userlist and a string template and returns the data substituted into the template, eg:
>>> tpl = "<a ...
This might seem like a wierd requirement, but I am looking for a good implementation to do this. I have a dict like
vals = dict(red='#F00', green='#0F0', blue='#00F')
tpl = '{red}:{green}:{blue}'