use eval with the rights parameters In [23]: c = "a+b+c+d+e+f+g" In [24]: v = "12,23,34,45,11,22,1" In [25]: v = map(lambda x: int(x), v.split(','))
In [26]: eval(c, dict(zip(c.split('+'), v))) Out[26]: 148 In [27]: but your question is not about openerp :o -------------------- m2f -------------------- -- http://www.openerp.com/forum/viewtopic.php?p=24316#24316 -------------------- m2f -------------------- _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman/listinfo/tinyerp-users
