+-int in IS_INT validator

This commit is contained in:
mdipierro
2013-10-11 20:42:51 -05:00
parent 484cc81a73
commit 1356dc1ef0
3 changed files with 3 additions and 3 deletions

View File

@@ -1 +1 @@
Version 2.7.3-stable+timestamp.2013.10.11.19.30.17
Version 2.7.3-stable+timestamp.2013.10.11.20.42.02

View File

@@ -8850,7 +8850,7 @@ class Table(object):
(typically a uuid field)
'restore' argument is default False;
if set True will remove old values in table first.
'id_map' ff set to None will not map ids.
'id_map' if set to None will not map ids.
The import will keep the id numbers in the restored table.
This assumes that there is an field of type id that
is integer and in incrementing order.

View File

@@ -22,7 +22,7 @@ from cStringIO import StringIO
from gluon.utils import simple_hash, web2py_uuid, DIGEST_ALG_BY_SIZE
from gluon.dal import FieldVirtual, FieldMethod
regex_isint = re.compile('^\-?\d+$')
regex_isint = re.compile('^[\+\-]?\d+$')
JSONErrors = (NameError, TypeError, ValueError, AttributeError,
KeyError)