8 Apr
2015
8 Apr
'15
9:19 p.m.
Hi list, I'm trying to use the make a string using a Template and fill it with the result of a query, but gime this error You are not allowed to access 'safe_substitute' in this context Zope = 2.12 from string import Template rst=someSQL()[0] txt=Template(""" <span id="datos_vehiculo" data-placa="${placa}" data-serie="${serie}" data-marca="${marca}" data-submarca="${submarca}" data-modelo="${modelo}"> </span> """) newtxt=txt.safe_substitute(rst) do exist some way to do it? -- ________________________________________ Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida