[ZPT] Python String Manipulation in SQL results

Philip Kilner phil at xfr.co.uk
Mon Nov 3 12:57:30 EST 2003


Hi List,

Am happily listing from the dB with: -

	<span tal:replace="result/Email">Email goes here</span>

What is the syntax to use Python's "rstrip" function to strip the pesky 
padding off the end? (Am having trouble with nesting, I think)


-- 

Regards,

PhilK

Email: phil at xfr.co.uk / Voicemail & Facsimile: 07092 070518

"the symbols of the divine show up in our world initially at the trash 
stratum." Philip K Dick






More information about the ZPT mailing list