fix for a bug reported by ToR: "AttributeError: 'NoneType' object has no attribute 'isdigit'"

This commit is contained in:
Miroslav Stampar
2010-12-02 18:57:43 +00:00
parent bf09b8a6d9
commit 2cc167a42e
2 changed files with 17 additions and 13 deletions

View File

@@ -1639,3 +1639,6 @@ def trimAlphaNum(value):
value = value[1:]
return value
def isNumPosStrValue(value):
return value and isinstance(value, basestring) and value.isdigit() and value != "0"