----- Puvodní zpráva ----- 
Od: "Andreas Jung" <li...@zopyx.com>
>
> 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 :-)

It was for illustration only, here is the better one:

<dtml-call "REQUEST.set('signumFinal', 'B' + _.str(1001 + 
_.int(signum2[1:]))[1:])">

DTML is your friend, not evil.

JL.

_______________________________________________
Zope maillist  -  Zope@zope.org
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 )

Reply via email to