[Zope] String contains only digits

Kerekes Lajos lkerekes@xperts.hu
Wed, 29 Aug 2001 13:21:04 +0200


Hi!

I have a form variable (select/option) which gives a number, or value
"A".
I have to check the value, is it contains only digits. I use in python
script
"if container.REQUEST.state in '0123456789'". Is there any other way to
check?
Because string object has neither "isdecimal", "isdigit" nor "isnumeric"
method.
I use zope 2.3.3 under Linux.

   Thanks:

    Lajos Kerekes