Commit Graph

401 Commits

Author SHA1 Message Date
mdipierro e97c458fff reinstated commented tests 2019-03-04 00:27:41 -08:00
mdipierro bfc3169239 validators moved into pydal 2019-03-04 00:26:17 -08:00
mdipierro ca3fd90acc new validators pass all tests 2019-03-04 00:08:13 -08:00
mdipierro 26f1b8c84b new validators and adapted tests 2019-03-03 23:54:49 -08:00
Vinyl Darkscratch 1abdb0b5d8 Add new IS_FILE validator 2019-02-26 07:35:01 -08:00
mdipierro d5d2cf55de removed teritem which breaks py3 2019-02-25 21:44:53 -08:00
mdipierro 818494d0f3 fixed problems with byte escaping in py3 2019-02-25 21:30:04 -08:00
mdipierro b58b7da18f validatos no longer depend on T 2019-02-24 01:51:18 -08:00
mdipierro 2d62c6ce88 updated pydal 2019-02-23 17:56:01 -08:00
mdipierro 263b1d0156 removed gluon/tests/test_template because moved to yatl 2019-02-23 16:38:31 -08:00
mdipierro f06c60b963 space cleanup 2019-02-17 17:20:38 -08:00
Seth Kinast 0077f29d71 gluon.validators: update IS_STRONG to behave as it did in web2py < 2.15
We used to compare `type(self.upper) == int` but the check was changed
to `isinstance(self.upper, int)`. Because bool is an instance of int but is not
the type int, the meaning of the checks changed to treat False as 0.

This patch specifically differentiates between False and 0.
  - False means "no requirements for this character class".
  - 0 means "exactly 0 of this character class".

Fixes #2093
2019-02-13 21:14:05 -08:00
mdipierro ddc99b3552 validators are back in web2py for now 2019-02-10 22:15:12 -08:00
mdipierro cf278d3741 validators now tested in pydal and code moved there 2019-02-10 21:32:31 -08:00
mdipierro 21b0bac625 Merge branch 'master' of github.com:web2py/web2py 2019-02-10 21:10:38 -08:00
mdipierro e1cbaf1cb3 made template independent of everything else (ready to bedome its own package) and other minor fixes 2019-02-10 21:10:25 -08:00
Vinyl Darkscratch f434ebec8a Update Python 3 compatibility 2019-02-09 00:01:11 -08:00
Vinyl Darkscratch 62df950f50 Add aspect ratio validation tests 2018-11-03 21:17:13 -08:00
mdipierro 1715bccac4 Merge pull request #2019 from hrother/sqlform_factory_validators
Testcase for #2007
2018-09-23 10:44:37 -07:00
Holger Rother 70bb497b96 Simplify testcase 2018-09-22 09:55:26 +02:00
Holger Rother 398fc6de37 Testcase for #2007 2018-09-21 07:58:12 +02:00
Leonel Câmara 11b441b777 Make SameSite=Lax the default for all web2py apps 2018-09-20 13:02:09 +01:00
Leonel Câmara 928fd364cf Add SameSite support 2018-09-06 16:16:44 +01:00
mdipierro 09271bff5f simplfied a test, thanks Paolo 2018-06-15 05:07:28 +02:00
mdipierro 319490edc1 fixed one more test 2018-06-01 13:19:35 -05:00
mdipierro 7fce2d04af fixed tests for IS_LIST_OF 2018-06-01 12:56:45 -05:00
mdipierro 891348986c fixed test 2018-05-01 11:38:08 -05:00
mdipierro d2290eb3d5 better tests for languages.py, thanks Paolo 2018-05-01 11:10:08 -05:00
Richard Vézina ff44821f05 Close #1887 - remove Recaptcha V1 2018-03-26 16:21:21 -04:00
mdipierro f6d2f8a2a1 Merge pull request #1871 from masia5/drop_pg8000_tests
Drop pg8000 tests
2018-03-06 23:40:11 -06:00
Leonel Câmara dfa6703420 test IS_EMPTY_OR with a list and tuple 2018-02-26 19:59:21 +00:00
Leonel Câmara 32e17d4ab2 fix config for coverage 4.5 changes 2018-02-26 18:47:59 +00:00
masia5 8d2fa09ef7 Drop pg8000 tests, close #1742 2018-02-25 07:25:50 +01:00
mdipierro fa99620240 cannot promise forms will not changes, removed form tests 2018-02-24 13:23:09 -06:00
mdipierro 61b5343f66 Merge pull request #1852 from ilvalle/fix_languages_py3
fix py3 languages decode
2018-02-24 10:57:17 -06:00
ilvalle fa31a6b61b Added test for T used in HTML tags, fix language encode(), close #1856 2018-02-12 21:13:19 +01:00
ilvalle 44e27bf65f fix py3 languages decode added tests. close #1848, thanks @bjquinn 2018-02-09 20:46:00 +01:00
ilvalle 421aec162a fix py3 STYLE and SCRIPT tags, close #1835 2018-02-04 09:41:57 +01:00
mdipierro 20411ce45f create forms should not display default values for readonly fields 2017-12-02 13:37:42 -06:00
mdipierro e9dcac4ecd Merge pull request #1818 from ilvalle/py3.6dev
fix include_meta for py35, added tests
2017-12-02 13:01:12 -06:00
ilvalle 622b29366a fix include_meta for py35, added tests. close #1816 2017-12-02 11:03:46 +01:00
mdipierro c9fd0fd71e fixed test because of layout change 2017-11-14 00:55:59 -06:00
mdipierro d424e5d317 Merge pull request #1610 from geomapdev/dal-enhancements
handle reference fields for keyed tables
2017-11-13 21:24:07 -06:00
mdipierro eb7222aa92 Merge pull request #1802 from leonelcamara/fixsqltable
Fix a problem with Expressions in SQLTABLE
2017-11-10 18:12:50 -06:00
Leonel Câmara 4bfa9c1686 Fix a problem with Expressions in SQLTABLE possibly fixes #1735 and fixes web2py/pydal#487 2017-11-08 22:21:51 +00:00
Leonel Câmara 228d3c41b6 Fixes #1800 2017-11-07 23:34:35 +00:00
geomapdev c1a3d5d67e sync with master branch 2017-10-31 14:47:07 -07:00
geomapdev 6b103f7e3a updated test_validators IS_IN_DB 2017-10-10 08:42:17 -07:00
geomapdev 02c32ebace update gluon unittest for dal reference fields 2017-10-09 11:22:48 -07:00
tiago.bar 511245a68c Unit test for #1764 fix 2017-09-23 20:21:14 -03:00