Leonel Câmara
fd0f169a55
Update list of TLDs
2017-11-14 18:20:13 +00:00
tiago.bar
4a347a4f78
Enhances/fixes validators/is_empty() for Python 3 compatibility, fix #1764
2017-09-22 13:04:47 -03:00
Leonel Câmara
113df51ef9
Fixes #1685
2017-07-14 18:52:36 +01:00
mdipierro
4854b84ff9
fixed a python 3 problem, thanks kato
2017-07-10 14:54:08 -05:00
Richard Vézina
590de9c890
Enhance validators.py PEP8 and fix docstring py3 compatibility
2017-06-21 11:57:31 -04:00
Leonel Câmara
7c9653ae23
Merge branch 'master' into test_is_url_py3
2017-06-14 15:41:07 +01:00
Leonel Câmara
2a33c0faff
Changed URL validation to use urlparse instead of regex for spliting the URL
...
Enabled test_is_url in Python 3 since it is now passing
This might be one of the last fixes to #1353
Fixes #1598
2017-06-07 04:59:03 +01:00
Leonel Câmara
617ca4a98d
Fixes #1639
2017-06-05 23:52:25 +01:00
mdipierro
baa129f871
Merge pull request #1527 from leonelcamara/authapi2
...
Auth refactor
2017-05-01 09:13:18 -05:00
mdipierro
496112c4fe
Merge pull request #1604 from ilvalle/fix_1570
...
prevent is_empty from stripping whitespaces, close #1570
2017-04-28 08:07:20 -05:00
ilvalle
7a69e087f7
prevent is_empty from stripping whitespaces, close #1570
2017-04-06 20:48:12 +02:00
ilvalle
6da3a9d8fd
fix is_email with internationalized Domain Names, close #1582
2017-04-05 22:16:21 +02:00
ilvalle
637579f531
replaced ipaddr with ipaddress.py (backported from py3)
2016-12-03 08:42:35 +01:00
Leonel Câmara
02f0bdb8d3
Auth refactor, extracted many methods into a base class for more generic auth mechanisms.
...
Partially addresses #1526
Includes a solution for IS_LOWER and IS_UPPER validator problems I mentioned in #1353
2016-11-05 16:37:22 +00:00
Chris Garcia
4226b6d0e1
Corrected use of 'lowercase' and 'uppercase' to fix #1515
2016-10-28 15:23:18 -05:00
Giovanni Barillari
0528a347b3
Updated pyDAL to 16.08
2016-08-13 15:38:55 +02:00
mdipierro
35eaba1096
removed duplicated code, using pydal's _compat.py
2016-08-01 03:39:22 -05:00
ilvalle
1f013d76f3
minor few fix
2016-06-10 14:14:40 +02:00
ilvalle
fd850ab46f
fix validators, updated gluon/contrib/ipaddr
2016-06-07 19:50:49 +02:00
ilvalle
a1fd92b7f8
updated imports in tests
2016-06-02 14:28:21 +02:00
ilvalle
01bab81432
manually adapt few imports
2016-06-01 20:16:30 +02:00
ilvalle
a5599f3eab
running lib2to3.fixes.fix_idioms
2016-05-29 08:31:20 +02:00
ilvalle
d22222ebea
running lib2to3.fixes.fix_reduce
2016-05-29 08:31:19 +02:00
Leonel Câmara
a9ee9a6b58
remove simplejson
2016-05-11 00:47:23 +01:00
Giovanni Barillari
78bb8e9b26
Updated to latest pydal, fixed IS_IN_DB validator for new pydal
2016-04-19 17:24:09 +02:00
Leonel Câmara
d746d43be5
pep8 and make travis run again
2016-04-14 01:21:23 +01:00
Leonel Câmara
9a3e73031b
fixes #1266 and adds tests to make sure it doesn't happen again
2016-04-14 01:02:25 +01:00
Leonel Câmara
5c292640ba
Complete coverage for IS_IN_SET
...
Removed unreachable code in IS_IN_SET
if failures and self.theset:
if self.multiple and (value is None or value == '')
It's impossible to have *failures* and have value be None or '' at the same time
2016-03-28 14:47:58 +01:00
Leonel Câmara
5cbf381a2c
More test coverage for validators.py
...
Fixed a bug in IS_EMAIL throwing exceptions when asked to validate anything other than a string which was problematic for ANY_OF
Fixed a bug in ANY_OF.formatter where it was trying to format with a validator that didn't validate
2016-03-27 14:23:24 +01:00
Leonel Câmara
fbb5776432
test_IS_IMAGE
...
Removed unused and undocumented IS_IN_SUBSET
Fixed _options IS_EMPTY_OR not passing arguments to the other options method
Some tests for formatters
2016-03-19 12:52:48 +00:00
mdipierro
bcc4ae2ec6
remporarily addressing issue #1203 , thanks Simone
2016-03-08 17:22:02 -06:00
niphlod
d4ffcaf1b1
fixes #1044
...
This shouldn't have took that much to solve. Really sorry for the delay
2015-12-30 16:38:43 +01:00
mdipierro
71fba07e3a
some sqlhtml renaming
2015-12-27 07:12:56 -06:00
mdipierro
2a7a4a3d04
removed print statements
2015-12-27 05:39:08 -06:00
mdipierro
999f235b75
IS_IN_DB(...,delimiter=',',auto_add=True)
2015-12-27 05:33:29 -06:00
mdipierro
da22554aed
allow for IS_IN_DB(db,db.thing.id,db.thing.name)
2015-12-27 02:46:23 -06:00
mdipierro
22c89d8dcc
version 2.13.1
2015-12-17 21:19:08 -06:00
mdipierro
d2910327c0
temp fix for IS_DATETIME with timezone info & record versioning causes TypeError: can't compare offset-naive and offset-aware datetimes #1094
2015-12-04 11:31:55 -06:00
mdipierro
0520770a7e
fixed #1111 , Validator IS_IPV4: options is_private=False not working, thanks Nbushkov
2015-12-04 11:12:44 -06:00
Tim Nyborg
b942fc8f7a
Fix IS_NOT_IN_DB to work with custom primarykey
...
Validator currently selects custom id properly, but then explicitly checks .id
2015-12-03 15:02:21 +00:00
mdipierro
db37cf6a58
Revert "Labels should get their information from the render function of the records."
...
This reverts commit 65c87386c1 .
2015-11-12 18:25:48 -06:00
niphlod
64a8880c80
fixes #1090
...
removed timezone for IS_DATE* validators
2015-10-26 09:50:09 +01:00
mdipierro
bbed326c20
fixed commit error
2015-10-07 13:15:39 -05:00
mdipierro
b8c2bd7303
fixed LazyCrypt and fixed git problem
2015-10-07 13:02:30 -05:00
mdipierro
1387b26606
fixed LazyCrypt, thanks Denes
2015-10-07 12:57:20 -05:00
Nik Klever
65c87386c1
Labels should get their information from the render function of the records.
2015-09-05 14:57:55 +02:00
cassiobotaro
a378ab3e51
fix validations IS_IPV6 and IS_IPADDRESS
2015-07-10 01:11:16 -03:00
mdipierro
fbb5a8b9bb
fixed issue #968 , IS_MATCH validator bug with unicode, thanks alex0834
2015-06-25 04:36:16 -05:00
Jeremie Dokime
33295e516f
Fix crash with list:reference field
...
When using validate_and_update() or validate_and_insert() on a table with a list:reference field, the request crashes after timeout with:
File "web2py/gluon/globals.py", line 270, in body
raise HTTP(400, "Bad Request - HTTP body is incomplete")
The request crashes because there is an hidden exception with the isinstance function:
isinstance() arg 2 must be a class, type, or tuple of classes and types
When no using GAE, the GoogleDatastoreAdapter variable is None, so isinstance crash.
See the last line of pydal/adapters/__init__.py
This is a regression intruduced after the v2.9.12.
2015-04-18 02:15:45 +02:00
Richard Vézina
bbd6a081eb
Improve PEP8 gluon/validators.py
2015-03-31 14:03:38 -04:00