[Zope] String contains only digits
Russell Hires
rhires@earthlink.net
Wed, 29 Aug 2001 08:44:21 -0400
Does it have to be a string? Can you check for int instead?
Russell
On Wednesday 29 August 2001 07:21, you wrote:
> 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
>
>
> _______________________________________________
> Zope maillist -
> 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 )