[Zope] integer to string?

Philip Aylesworth zopelist@regalint.com
Thu, 06 May 1999 15:45:03 -0400


Mike Pelletier wrote:
> 
> On Thu, 6 May 1999, Philip Aylesworth wrote:
> 
> > How do I convert an integer to a string?

>   <!--#var "'c' + `_['sequence-item']`"-->

This worked but I get quotes in the final string. eg. c'1'
I haven't seen this back tick idea yet, but I haven't delved to deep
into Python yet either. :)

>   <!--#var "'c' + _.str(_['sequence-item'])"-->

This did the trick. I even found it in the DTML users guide! Seems like
I should reread it cover to cover every time I need to know something.
It is all in there some where!

Thanks both!

Phil A.