+-int in IS_INT validator
This commit is contained in:
2
VERSION
2
VERSION
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user