Using Template in script (python)

"Miguel Beltran R." <[email protected]> Wed, 8 Apr 2015 16:19:04 -0500
Newsgroups gmane.comp.web.zope.general
Message-ID <CAEc04cpNeoUKF1Jcv8X6e0LuboZV-kA=mVqCpL-D4KYU3H+zdg@mail.gmail.com>
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

_______________________________________________
Zope maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )