[Zope] string formatting

Andreas Jung lists at zopyx.com
Sat Aug 14 02:41:50 EDT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jaroslav Lukesh wrote:
> It is easy:
> 
> <dtml-call "REQUEST.set('signumfix2',signum2[1:4])">
> <dtml-call "REQUEST.set('signumfix2', _.int(signumfix2)+1)">
> <dtml-call "REQUEST.set('signumFinal', 'B' + _.str(1000 +
> signumfix2)[1:] )">
> 
>

Hopefully such code won't be released :-)

- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxmOq4ACgkQCJIWIbr9KYy0uQCeId0CiRMj0xKmV9t3dGvkyqgp
r9gAoKiFkmFZVspPnwMAJMEcKFrAAE8o
=pblK
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 316 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20100814/b7dc42b9/attachment.vcf 


More information about the Zope mailing list