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
niphlod
421c905621
fixes #656
2015-03-02 23:00:45 +01:00
niphlod
e62bead5e2
fixes issue #773
...
Removed redundant tests in test_validators.py since there's test_isurl.py
Added allowed_tlds from http://data.iana.org/TLD/tlds-alpha-by-domain.txt
Added script to easily update the official_top_level_domains for the future
2015-02-24 23:34:27 +01:00
niphlod
69e9f9867a
updated ipaddr to the latest version
...
The API changed just a little bit, so a small refactor of validators.py
was needed
2015-02-23 21:49:00 +01:00
gi0baro
f60c1dff93
Fixing imports for new pydal
2014-12-15 22:24:04 +01:00
gi0baro
dcadcf0ffb
Added pyDAL from repository, adapted web2py code
2014-12-15 20:13:40 +01:00
gi0baro
5c07c511fa
Merge branch 'master' into DAL-modular
...
* master: (58 commits)
changed version number
better types by default, given that we're on 2005 at least
fix for StorageList and tests added
improved coverage, fix bug with IS_LIST_OF and items not being strings
fix cache.increment, added tests
R-2.9.11
reverted simplejson
R-2.9.10
upgraded memcache and markdown2
upgraded pypyodbc.py
upgraded simplejson
no more split in contains, thanks Niphlod
fixed wording and bug on contains(), made smart_query use ilike instead of like
ilike, thanks Niphlod
CROSS JOIN, thanks jotbe
added custom represent to GoogleDatastoreAdapter, thanks Alan
postgresql: identifies what adapter auto-loads json values
added more tests for json Field
fixed typo in driver_auto_json
Improve the graphing to show the name of the application.
...
Conflicts:
gluon/dal.py
gluon/globals.py
gluon/tests/test_dal.py
2014-09-25 12:49:16 +02:00
niphlod
8bbd22eba8
improved coverage, fix bug with IS_LIST_OF and items not being strings
2014-09-19 00:15:25 +02:00
mdipierro
d29a108ad7
better native_json naming convention
2014-09-12 20:28:46 -05:00
gi0baro
5e5e649c28
Added modular DAL, updated gluon imports to new structure
2014-09-03 12:48:03 +02:00
niphlod
b20b7ecb19
sphinx-compatible docstring (only DAL remains)
2014-03-24 22:30:50 +01:00
mdipierro
c1e797fe24
removed gluon/contrib/translitcodec because of backward compatibility issues and because it breaks Pypy
2014-03-15 10:54:48 -05:00
mdipierro
883909af4b
reverted s.encode('translit/long') which breaks Pypy
2014-03-12 13:31:09 -05:00
mdipierro
6cd2bf9fea
better transliteration in slugs, thanks winniehell
2014-03-02 17:45:45 -06:00
mdipierro
cb75a96e2c
Merge pull request #315 from winniehell/patch_urlify_translitcodec
...
Use translitcodec for urlify
2014-03-02 17:24:07 -06:00
mdipierro
caee53e778
fixed IS_TIME()('12:00 am')
2014-02-11 08:12:12 -06:00
Kiran Subbaraman
e3aa776f5a
Update error_messages; capitalize first character
...
Result of a discussion: https://groups.google.com/forum/#!topic/web2py/IDkr4w_wKv4
The intent is to convert the first character of all error messages to a capital letter.
2014-01-16 10:57:34 +05:30
mdipierro
34bbb376be
allow URL(...,language=...) with parametric router, thanks Jonathan
2014-01-14 22:17:28 -06:00
Massimo
c2a23d03c2
fixed issues with regex2 in validators?
2014-01-09 11:47:32 -06:00
mdipierro
09fb170a83
possibile regex fix
2014-01-09 08:38:39 -06:00
mdipierro
4192405444
IS_LIST_OF(other=[..])
2014-01-08 13:43:49 -06:00
mdipierro
5a0aec5b1d
fixed LazyCrypt.__ne__, thanks Jonathan
2014-01-08 10:24:37 -06:00
mdipierro
e56e376894
fixed issue 1836, Problem with IS_IN_DB(label='%(x)3.3s')
2014-01-03 20:58:57 -06:00
winniehell
15cedc0269
remove unnecessary imports
2013-12-02 22:22:41 +01:00
winniehell
b14831613e
use translitcodec for urlify
2013-12-02 21:35:48 +01:00
hectord
231fa489cb
Translate the formatters for DATE/DATETIME_IN_RANGE validators
2013-11-01 22:43:31 +01:00
niphlod
78a0fe0769
removed unmaintained test.sh, ported validators doctests to unittests, fixed an issue with IS_MATCH() that never worked
2013-10-13 17:48:07 +02:00
Stefan Pochmann
20cdd86fcf
simpler integer validation test
2013-10-12 22:42:27 +02:00
Stefan Pochmann
351a59033f
unified and easier number range validator constructors
2013-10-12 21:46:17 +02:00
Stefan Pochmann
34bfe4527d
consistency in error messages of number range validators
2013-10-12 21:22:11 +02:00
Stefan Pochmann
667069b573
Corrections for IS_INT_IN_RANGE
2013-10-12 21:10:29 +02:00
mdipierro
5551a018ac
fixed unnecessary escaping in regex, thanks Stefan Pochmann
2013-10-11 22:36:39 -05:00
mdipierro
1356dc1ef0
+-int in IS_INT validator
2013-10-11 20:42:51 -05:00
mdipierro
ff7f9568db
fixed validation of nagtive integers, thanks Stefan
2013-10-11 18:06:57 -05:00
mdipierro
d5fda056ff
simplified logic for number validators
2013-10-11 17:07:17 -05:00
mdipierro
d8e8d1d597
fixed problem with IS_INT_IN_RANGE for large numbers
2013-10-11 16:59:05 -05:00
mdipierro
f8e2c8e319
new validator IS_LIST_OF_EMAILS
2013-09-20 21:17:05 -05:00
mdipierro
4556a355a2
fixed a problem with CRYPT password length
2013-09-15 11:46:46 -05:00
mdipierro
7dafb07438
added a extra level of protection for long passwords, even if IS_LENGTH validator is missing
2013-09-15 09:40:15 -05:00
mdipierro
6c1cc6fc96
tabs -> spaces
2013-09-13 15:39:39 -05:00
mdipierro
ed9def985e
R-2.6.1
2013-09-12 17:08:52 -05:00
mdipierro
aacbb5cef8
reverted previous patch
2013-09-07 21:01:30 -05:00
Luca de Alfaro
fae29bf0e1
Update validators.py
...
Updated the IS_DATETIME validator; otherwise it would fail when creating a new record with SQLFORM, for dates that have an empty default.
2013-09-07 16:57:17 -07:00
mdipierro
2d59e86ab9
removed e, no None in IS_JSON
2013-07-23 01:05:09 -05:00
mdipierro
44985f0076
removed non-translatable json error
2013-07-22 14:52:53 -05:00
Michele Comitini
8d7f6b7b7f
improved json validator to output meaningful error
2013-07-22 15:07:12 +02:00