i want a substring...
hello all, i would like to / love to get the 2 last characters from an id ? how do i do that ? i'm really completely stuck :((( junk
<dtml-var "id[-2:]"> This is a *very* basic Python question, check the Python manuals for more details. ----- Original Message ----- From: "Junk" <junk@gargl.net> To: <zope@zope.org> Sent: Friday, July 13, 2001 2:47 PM Subject: [Zope] i want a substring...
hello all,
i would like to / love to get the 2 last characters from an id ? how do i do that ?
i'm really completely stuck :(((
junk
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
<dtml-var "_.str(id)[-2:]"> Take a look at: http://www.python.org/doc/current/tut/node5.html#SECTION00512000000000000000... Ausum Junk wrote:
hello all,
i would like to / love to get the 2 last characters from an id ? how do i do that ?
i'm really completely stuck :(((
junk
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Ausum -
Junk -
Phil Harris