Commit Graph

7773 Commits

Author SHA1 Message Date
mdipierro 23bcfe4239 Merge pull request #2094 from sethkinast/is-strong
gluon.validators: update IS_STRONG to behave as it did in web2py < 2.15
2019-02-17 16:19:26 -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
mdipierro b3175d092e Merge pull request #2088 from vinyldarkscratch/python-3
Introduce better Python 3 compatibility across all files
2019-02-10 20:09:27 -08:00
mdipierro d8bdc47542 Merge pull request #2084 from vinyldarkscratch/fix-2083
Fix login form clearing after failed login
2019-02-10 20:09:14 -08:00
mdipierro d16b90c04f pydal 19.02 2019-02-10 20:08:32 -08:00
Vinyl Darkscratch f4ffac58ae Convert to print function 2019-02-09 10:03:49 -08:00
Vinyl Darkscratch c856c2b0e2 Fix tabs + indents mix 2019-02-09 10:03:41 -08:00
Vinyl Darkscratch 405527672c Update Python version in setup scripts 2019-02-09 09:41:54 -08:00
Vinyl Darkscratch f434ebec8a Update Python 3 compatibility 2019-02-09 00:01:11 -08:00
Vinyl Darkscratch 8852df7a7a Delete password rather than simply clearing it 2019-02-04 09:56:58 -08:00
mdipierro fcea326855 using _compat.py from pydal 2019-02-03 21:36:26 -08:00
mdipierro 5e1527a8e2 many improvements to grid, thanks Paolo 2019-02-03 21:24:52 -08:00
mdipierro 7c515f48f6 Merge pull request #2090 from vinyldarkscratch/appveyor/add-python-3.7
Add Python 3.7 to AppVeyor
2019-02-03 21:17:20 -08:00
mdipierro 0bf55f18d6 Merge pull request #2086 from vinyldarkscratch/patch-5
Fix tools.py _get_login_settings()
2019-02-03 21:15:01 -08:00
mdipierro 2fb3a78d75 Merge pull request #2076 from ilvalle/ci_updates
updated travis env
2019-02-03 21:13:01 -08:00
mdipierro 3f56a0ad70 Merge pull request #2075 from benlawraus/benlawraus
unicode() is not a standard python 3 function so using str() if pytho…
2019-02-03 21:10:43 -08:00
mdipierro b501d77903 Merge pull request #2072 from vinyldarkscratch/admin-debug-interact-patch
Fix translation strings to use Markmin
2019-02-03 21:10:13 -08:00
mdipierro 252835d8e7 Merge pull request #2071 from vinyldarkscratch/translations/de
Update German translations
2019-02-03 21:09:48 -08:00
Vinyl Darkscratch 4529ee5ead Add Python 3.7 to AppVeyor 2019-02-02 06:59:36 -08:00
Vinyl Darkscratch 3269e1a3f5 Fix #2044 2019-01-29 20:39:16 -08:00
Vinyl Darkscratch 1457e12f70 Don't remember password on failed login 2019-01-29 17:30:10 -08:00
Vinyl Darkscratch 603f54fade Fix login form clearing after failed login 2019-01-29 02:11:18 -08:00
ilvalle 04626f83cf updated travis env 2019-01-17 20:10:27 +01:00
Ben Lawrence b23131b3d6 unicode() is not a standard python 3 function so using str() if python 3 test is true 2019-01-17 09:58:56 -08:00
Vinyl Darkscratch fc3e9d95b8 Fix translation strings to use Markmin 2019-01-05 05:42:15 -08:00
Vinyl Darkscratch b1e397c223 Update German translations for admin (2nd revision) 2019-01-05 03:48:38 -08:00
Vinyl Darkscratch 41fd73e26c Update German translations for welcome 2019-01-04 15:24:35 -08:00
Vinyl Darkscratch 975949ab18 Update German translations for admin 2019-01-04 15:23:15 -08:00
mdipierro cef31f1277 fixed submodule reference 2018-12-09 19:25:57 -08:00
mdipierro 040966850c fixed submodule reference 2018-12-09 19:08:52 -08:00
mdipierro 79b2685fba fixed autocomplete widget feature, thanks Paolo 2018-12-09 19:02:33 -08:00
mdipierro a87ee9a966 changed pydal 2018-12-09 18:59:46 -08:00
mdipierro 3ee6ddb081 allow 0 to be an id, thanks Paolo 2018-12-09 18:53:45 -08:00
mdipierro 4b587c45df Merge pull request #2061 from Faelysse/master
[Py3] Open shell executed files in binary mode, fixes #2060
2018-12-05 20:49:48 -08:00
mdipierro 134d9a11c8 Merge pull request #2059 from erbalito/master
resolves #2058
2018-12-05 20:49:16 -08:00
Faelysse 08f04814ba Open shell executed files in binary mode, fixes #2060
Non-ASCII characters in executed files caused a crash, this fixes such
behaviour.
2018-12-03 16:14:05 +01:00
erbalito 178f48799a Merge branch 'master' into master 2018-11-26 11:46:59 -03:00
erbalito 109206e721 Merge pull request #1 from erbalito/erbalito-patch-1
fixes #2058
2018-11-26 11:43:38 -03:00
erbalito 9d8fce0687 fixes #2058
I've modified redis_cache.py to be able to optionally provide an application name to RedisCache constructor. This makes possible to share cache between different web2py applications if needed.
2018-11-21 09:40:19 -03:00
mdipierro 5368a14c43 Merge pull request #2054 from vinyldarkscratch/validators/image_aspect_ratio
Add aspect ratio to IS_IMAGE() validator
2018-11-18 11:09:52 -08:00
mdipierro f119f1fcb2 Merge pull request #2053 from boriscougar/patch-1
redis_scheduler failing
2018-11-18 11:09:26 -08:00
mdipierro c52e75624c Merge pull request #2055 from erbalito/patch-1
Update redis_cache.py to allow sharing cache between applications
2018-11-18 11:06:20 -08:00
erbalito 66f6549817 Update redis_cache.py to allow sharing cache between different applications
I'm not sure if this would help someone else. I've always had this scenario where some of my web2py applications share the models, and therefore, need to share the cache (I use Redis). In the past I've asked if there was any possibility to share cache between applications, but I got no answers:
https://groups.google.com/forum/#!searchin/web2py/share$20cache$20application%7Csort:date/web2py/iNCzMq8ADnw/ufyPBWajBQAJ

Anyway, I've noticed that I could make a simple change to redis_cache.py to achieve what I was looking for: I've added the optional argument "application" to RedisCache(). If you inspect the RedisCache() code, you will notice that previously it was forced to use current.request.application for the instance_name. With this simple change I did, it's possible to provide an application name to the RedisCache() constructor.

This has worked like a charm for my specific scenario, and I think I can say that it has backwards compatibility. Still, if this proposal isn't accepted, I would like to hear about some alternative to share cache between applications. Thanks!
2018-11-14 12:47:04 -03:00
Vinyl Darkscratch 62df950f50 Add aspect ratio validation tests 2018-11-03 21:17:13 -08:00
Vinyl Darkscratch 7318d28f1a Add aspect ratio to IS_IMAGE() validator 2018-11-03 21:06:43 -08:00
Boris Aramis Aguilar Rodríguez a79ad25001 redis_scheduler failing
redis_scheduler failed when calculating next_run_time (method total_seconds() belongs to timedelta)
2018-11-01 15:04:22 -06:00