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
Michele Comitini
abf138c842
bugfix native json fields were not supported correcly
2013-07-21 23:32:58 +02:00
mdipierro
d1065178bd
css.patch, less html5 syntax error noise, thanks Jonathan
2013-07-12 09:52:31 -05:00
mdipierro
4b2afc8ae1
fixed Issue 1541:[REQ] support for dot=T('.') in IS_DECIMAL_IN_RANGE()
2013-06-18 04:45:16 -05:00
mdipierro
69c888d071
Issue 1506: length argument wrong with unicode
2013-05-27 10:33:37 -05:00
mdipierro
a380ae69d5
IS_SLUG patch, thanks Jonathan, Niphlod and Villas
2013-05-15 12:41:28 -05:00
mdipierro
8e4bc72fca
IS_IPADDRESS added to __all__
2013-05-03 08:27:35 -05:00
mdipierro
bc481e954c
something went wrong with VCS, trying fix it
2013-05-02 20:32:21 -05:00
mdipierro
97b70eff9f
better populate
2013-04-24 18:05:22 -05:00
Michele Comitini
c999b16a27
Merge with upstream.
2013-04-13 00:04:26 +02:00
Michele Comitini
9bda793d46
orderby disabled where not needed
2013-04-13 00:03:43 +02:00
Massimo
5e9fbdd24f
faster labels, thanks Anthony
2013-04-12 13:07:37 -05:00
mdipierro
2119bacd22
Merge pull request #71 from grutz/IS_IPADDRESS
...
Adds IS_IPADDRESS() to gluon/validators.py
2013-04-07 19:41:25 -07:00
mdipierro
89021b6409
fixed Issue 1432:Oracle: invalid SQL generated when requires = IS_NOT_IN_DB, thanks jphillips
2013-04-06 09:40:07 -05:00
Kurt Grutzmacher
79a4693f34
Adds IS_IPADDRESS() to gluon/validators.py
...
IS_IPADDRESS() is mostly a meta function that will call IS_IPV4()
or IS_IPV6 accordingly based upon both dev-configured logic and
library checking of the address given. For instance:
>>> IS_IPADDRESS()('192.168.1.5')
('192.168.1.5', None)
will run through the IS_IPV4() function since the ipaddr.py lib
recognizes it as an IPv4 address. Specific v4 or v6 validation
can be done by setting is_ipv4=True or is_ipv6=True:
>>> IS_IPADDRESS(is_ipv4=True)('fe80::126c:8ffa:fe22:b3af')
('fe80::126c:8ffa:fe22:b3af', 'enter valid IP address')
>>> IS_IPADDRESS(is_ipv6=True)('192.168.1.1')
('192.168.1.1', 'enter valid IP address')
The same arguments for IS_IPV4() and IS_IPV6() are supported and
no changes have been made to either of these two functions. The
goal of this function is to allow IPv4 or IPv6 addresses in a
textfield:
INPUT(_type='text', _name='name', requires=IS_IPADDRESS())
2013-04-05 09:14:37 -07:00
mdipierro
d6af8279bc
Merge pull request #68 from mictee/any_of_validator
...
Added an ANY_OF validator
2013-03-31 16:17:48 -07:00
Kurt Grutzmacher
721cb2b90a
Adds IS_IPV6() validator using Google ipaddr.py library
...
ipaddr.py library rev/3144 has been approved as a standard python
library for python3. IS_IPV4() was not modified to use the library.
2013-03-29 08:55:06 -07:00
mictee
f98548827a
Added an ANY_OF validator that allows a value to be valid according to any of a list of validators.
2013-03-26 17:24:19 +01:00
mdipierro
3494fa2d0d
changed the logic behind tz
2013-03-18 22:48:52 -05:00
Massimo
3f7d085f73
fixed timezone and textarea default width
2013-03-18 17:34:06 -05:00
mdipierro
8857e3d521
IS_DATE/DATETIME/etc. (timezone=user_timezone in hrs)
2013-03-17 18:53:19 -05:00
mdipierro
f92d97f36e
fixed bug in encode/decode, thanks Jonathan
2013-03-10 11:06:20 -05:00
mdipierro
72dade793a
attempt to support unicode in IT_MATCH
2013-03-10 10:45:29 -05:00
Massimo
5d9fc2e9af
fixed issue VirtualFields in select options
2013-02-21 10:21:31 -06:00
mdipierro
4334ae38ed
fixed issue 1339, faster IS_NOT_IN_DB
2013-02-17 01:00:01 -06:00
Massimo
564f07e354
IS_EXPR(lambda value: None(=)
2013-02-15 10:51:30 -06:00
Massimo
50193471d6
better IS_NOT_IN_DB, new scheduler API, after_connection dal callback, thanks Niphlod
2013-02-14 14:15:27 -06:00
mdipierro
a443631f11
fixed IS_JSON, thanks Alan
2013-01-21 16:42:42 -06:00
mdipierro
ec21e81f19
json field in DAL, thanks Alan
2013-01-08 09:23:18 -06:00
mdipierro
c5a7c8d8f9
fixed problem CRYPT password comparsion, issue 1203, thanks Alan
2012-12-06 23:04:29 -06:00
mdipierro
c86a4467d3
fixed IS_STRONG **** issue, issue 1098
2012-12-05 15:24:15 -06:00
mdipierro
d16ad52a56
fixed issue 1132, unicode in IS_IN_DB validator
2012-11-01 21:07:47 -05:00
Massimo
5713ec1365
fixed validator recent typo
2012-10-30 09:42:03 -05:00
mdipierro
094646d5ba
validator.formatter checks None
2012-10-29 10:09:07 -05:00
mdipierro
5d439bdc30
fixed issue 1100, thanks sherdim
2012-10-20 10:08:58 -05:00
mdipierro
6aa5edc7ff
many pep8 improvements
2012-10-19 12:33:53 -05:00
mdipierro
71ec15190b
some pep8 changes (fixed spacing at end)
2012-10-19 10:37:07 -05:00
mdipierro
3a66f5e330
fixed some pep8 stuff
2012-10-19 09:40:17 -05:00
mdipierro
c9fc88e8de
fixed typo in validators
2012-09-22 11:19:14 -05:00
mdipierro
58cff21ced
moved entropy JS in PasswordWidget but the source should be moved in separate file
2012-09-21 22:12:17 -05:00
mdipierro
cac6633bf7
entropy computation in IS_STRONG, thanks Jonathan
2012-09-20 09:14:51 -05:00
mdipierro
b1d3e8faaa
IS_IN_DB cacheable=True
2012-09-17 16:22:30 -05:00
mdipierro
233f0cfd0d
fixed issue 1005, thanks howesc
2012-09-17 09:36:13 -05:00
mdipierro
68e8cd64f1
fixed exception on missin stored_password
2012-09-17 07:10:51 -05:00
mdipierro
05d351cd68
fixed issue 1010, error reporting on list:string
2012-09-16 11:43:03 -05:00
mdipierro
ae8bf7b60d
faster re.compile in validators
2012-09-02 12:26:16 -05:00