Commit Graph
100 Commits
Author SHA1 Message Date
niphlod 87489f3363 fixes #1491 2016-10-07 22:43:06 +02:00
niphlod 8efd0cb01f fixes #1489 2016-10-07 21:23:00 +02:00
niphlod 555f2ad040 fixes #1493 (at @abastardi's bidding) 2016-10-07 21:20:10 +02:00
niphlod 39e8cfb11a fix ccache page in appadmin, thanks MDSIII
fixes the ccache page to now raise an exception if a dict is stored in
cache
2016-10-07 21:14:56 +02:00
niphlodandGitHub 27ce91474d fix issue with regex 2016-10-07 13:10:44 +02:00
niphlod b9c1b4d62b fixes #1485, thanks @abastardi once again 2016-10-04 00:40:29 +02:00
niphlod a1c1d1357f remove __pycache__ from the list of apps
in case someone wonders how many core devs are actively using the admin
app...here's the evidence ^_^'
2016-10-04 00:30:11 +02:00
niphlod bcc237ead8 removing pycrypto hard dep 2016-10-04 00:11:54 +02:00
niphlod 15769857cb 1st trial 2016-10-03 22:16:55 +02:00
niphlod b7219ba2fd fixes #1484, thanks @abastardi 2016-10-03 21:09:27 +02:00
niphlod 9256d67ec7 remove pymysql dependency 2016-10-01 11:25:52 +02:00
niphlod 9539cc7542 make pymysql usable inside web2py 2016-10-01 00:15:47 +02:00
niphlod 3a6df38d62 fixes #1407 passing a properly escaped string 2016-09-29 00:12:59 +02:00
niphlod 9978e63621 fixes #1069, untangles the js, modernizes the approach
plus, avoids hitting the backend for each and every keypress...
2016-09-23 23:45:00 +02:00
niphlod 54da251e46 here here 2016-09-23 21:17:43 +02:00
niphlod 55f929bab4 fix launching system_tests without coverage 2016-09-23 20:52:30 +02:00
niphlod 4f0a2eb80b fixes #1190 2016-09-22 01:55:53 +02:00
niphlod dd8b0760b5 fixes #1309 (and sessions2trash.py, too) 2016-09-22 01:34:34 +02:00
niphlod e5355b5b12 fixes #1407, encouraging a sane default 2016-09-22 00:34:24 +02:00
niphlod 98d636314e avoid downloading pip as 2.7 has ensurepip 2016-09-22 00:17:17 +02:00
niphlod e5dcdb074f fixes #1310 and improves upon ideas shared on #1450 2016-09-22 00:01:22 +02:00
niphlod 8ddccd4139 removed leftover (be careful (BOTH contributors and mergers)) 2016-09-21 23:13:45 +02:00
niphlod 37d2efaab8 fixes #1413 2016-09-21 23:00:55 +02:00
niphlod 40d6a72b90 fixes #1455 2016-09-21 22:35:04 +02:00
niphlod 25e8f4aef1 fixes #1449
codename "he who late imports by default makes everybody's life a misery
for no speedup at all"
2016-09-19 21:33:01 +02:00
niphlod 790593228f fixes #1452 2016-09-19 20:41:41 +02:00
niphlod d1d765455f fixes #1439 2016-08-31 02:04:45 +02:00
niphlod a1e1bf3500 fix sys.path dance part #2 and scheduler tests for py3 2016-08-31 01:47:42 +02:00
niphlod 1bf499e3be first step towards dropping sys.path dance 2016-08-29 23:01:22 +02:00
niphlod 3bc6769e28 fixes #1406 2016-07-28 21:36:43 +02:00
niphlod ae6fdb21c9 this crashes win and 3.5 2016-07-19 22:21:35 +02:00
niphlod cae10a68c0 fixed most of py3 warnings, output is much cleaner this way 2016-07-18 23:45:28 +02:00
niphlod a0720ce01e feature parity (cron recurrence) with scheduler 2016-07-18 21:36:56 +02:00
niphlod 9c8db3f65a corner case - fixes #1363 2016-06-28 23:52:28 +02:00
niphlod 595e37c2de removed web shell 2016-06-28 23:34:41 +02:00
niphlod 0708dd36e7 fixes #1331 (just rocket, really) 2016-06-28 22:00:57 +02:00
niphlod 5e0a53f4c2 fixes #1347 2016-06-28 21:49:23 +02:00
niphlod 4966466509 fixes #1354 2016-06-28 21:46:07 +02:00
niphlod a96f137e03 fixes #1355 2016-06-28 21:43:31 +02:00
niphlod 955b30a871 fixes #1364 2016-06-28 21:36:59 +02:00
niphlod 6bb255286a repeats via cronline expression 2016-06-15 21:32:51 +02:00
niphlod 850d79c287 should turn off the codecov/changes report 2016-06-01 00:50:01 +02:00
niphlod c15abd2585 added codecov setting file 2016-05-11 21:38:01 +02:00
niphlod c6d4fb8f38 sync with main scheduler 2016-05-05 21:36:51 +02:00
niphlod 2031a43058 can now process tasks with huge_results
Added tests, too. Cleanups leftovers better, so fixes #1304
2016-05-01 22:01:49 +02:00
niphlod 6abb78c559 initial tests for scheduler.py 2016-04-04 22:58:42 +02:00
niphlod 1b15b0c6dc fixes just docstrings about usage 2016-03-14 23:32:53 +01:00
niphlod 038d0d17a4 fixes the same bugs reported in #1191 for the "standard" scheduler 2016-03-10 00:01:39 +01:00
niphlod 642ec2b934 fixes #1191
fix is in lines 828-835 . needed to backport total_seconds for py2.6
(694-701).
everything else is just pep8.
2016-02-25 02:46:36 +01:00
niphlod 12acdb51d7 new redis toolset to use with web2py
This is a refactor of everything web2py uses with redis.
Specifically:
- a refactored redis_cache.py that fixes #958, allowing a "fail
gracefully" behaviour in case redis is not available
- a refactored redis_session.py that blocks less with with_lock=True
(although still not optimal)
- a new (and NEEDED) redis_utils.py that serves as the base for
everything else, allowing an RConn object that you can freely use as a
redis.StrictRedis connection, and that you can override in case you're
using a different library (or that web2py will use in case redis-py
won't be the de-facto standard around)
- a newly - and much anticipated - redis_scheduler.py. It's a slip-in
replacement for the standard scheduler that uses redis for workers
coordination. Feel free to dig in the code and improve it.

For redis_cache and redis_session changes are BREAKING. It means that
users will need to change the import locations and tune a bit the code.
Now every module depends on an gluon.contrib.redis_utils.RConn object
(or similar) that in turns is very similar to a redis.StrictRedis one.
The redis instance is EXTERNAL to the modules themselves (no more "host,
port, db, password" parameters in RedisCache or RedisSession)
See the relevant docstrings for usage examples
2016-01-02 23:15:00 +01:00
niphlod 918590d1f3 fix for STOPPED tasks via stop_task()
they previously killed the main process
2016-01-02 22:50:27 +01:00
niphlod d57428e8f0 fixes #1156 and other few issues 2016-01-01 20:48:55 +01:00
niphlod 13e3adf22d tests for modules NEED to be in a separate unittest 2015-12-30 21:20:24 +01: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
niphlod 17f1a51133 fixes #1100
now elements with data-w2p_disable are not disabled.
in addition, for non-ajax forms, disabled submit buttons are reenabled
after 5 seconds

plus reindented, refactored AND jslinted
2015-12-30 16:19:39 +01:00
niphlod d4bca008a8 better docstrings 2015-12-30 14:55:37 +01:00
niphlod 90c33911ab fixes #1143
don't even get me started about the current messy status of admin
2015-12-30 12:07:18 +01:00
niphlod 0a263ffc8d better test_utils and reorg to compileapp 2015-12-30 11:42:49 +01:00
niphlod e94946d3d5 bultin constant time checking
- if hmac.compare_digest is there, we should use it instead of our own
fallback.
- jwt handler has been updated to use utils.compare (reported in
#web2py-users)
- includes the same mods as https://github.com/web2py/web2py/pull/1146
2015-12-30 10:37:14 +01:00
niphlod eb49831726 fixes #1142 2015-12-28 15:05:51 +01:00
niphlod b517c898b8 better support for -f
as exposed in
https://groups.google.com/d/msg/web2py-developers/uJoQeUlCABw/-MCXocwGAgAJ
2015-12-28 14:48:29 +01:00
niphlod 64a8880c80 fixes #1090
removed timezone for IS_DATE* validators
2015-10-26 09:50:09 +01:00
niphlod 12f848c899 fixes #1083 2015-10-19 21:50:34 +02:00
niphlod 353db90a64 fixes #1043 , thanks @bobstjon 2015-09-21 22:24:59 +02:00
niphlod 827e663ac4 better list: widget 2015-09-21 22:18:18 +02:00
niphlod de399691ce fixes #1039
It was a REEEAALLY good catch :-)
2015-09-21 22:09:17 +02:00
niphlod 46f081c45c fixes #1068
threw in also a better list:string widget repr for bs3

Updated also the bootswatch theme because something was wrong
2015-09-21 21:38:28 +02:00
niphlod 1c74afc01b fixes issue #735 2015-09-03 18:33:54 +02:00
niphlod 5dbcda9f38 fixes #823 2015-09-03 18:08:33 +02:00
niphlod ac02d52f05 fixes typo in wiki. As usual, lack of unittests made this possible.
We should really make each developer "adopt" a piece of web2py to test
and care if we don't want to write unittests.
2015-09-03 17:56:45 +02:00
niphlod 8a7612c976 after appveyor hooks have been defined... 2015-06-17 21:23:29 +02:00
niphlod 2ce53e9957 move to codecov and enable appveyor too 2015-06-14 21:17:52 +02:00
niphlod d61c372c95 fix display of checkboxes in search form of grid 2015-06-11 21:54:21 +02:00
niphlod 509b0a6987 fixes is_in_set repr too 2015-06-06 09:50:44 +02:00
niphlod e0074ebcac fixes #994
we were overriding default classes for specific widgets
2015-06-05 22:10:33 +02:00
niphlod 4f316d0294 thanks @wmunguiam for spotting 2015-05-24 21:25:27 +02:00
niphlod cd1d6c5af1 redis multi-app. Thanks Lisandro for spotting it
redis_cache didn't play well with multiple apps for a silly mistake.
Glad that Lisadro pointed out
2015-05-21 22:26:04 +02:00
niphlod cadf38b4f6 fixes #962 2015-05-11 21:24:20 +02:00
niphlod 5c167907eb fixes #628
response.include_files is now cleaner and easier to maintain

You can specify a tuple of (type, url) to include external assets
without extension (such as the usecase described in #628)

Added tests for include_files, that was never included in CI tests
2015-05-08 21:51:56 +02:00
niphlod 32b9b5c799 fixes issue #691 2015-05-03 16:06:10 +02:00
niphlod 340d7b5e6f fixes #734 2015-05-03 15:51:13 +02:00
niphlod 302f56ecc1 more tests, general cleanup 2015-05-03 15:33:19 +02:00
niphlod 77f154a56b added newer Recaptcha2 class to deal with v2.0. Fixes #919
Improvements over the "old" v1.0
- behaves well also without javascript
- use_ssl is redundant, v2.0 works only in https mode
- ajax is not useful anymore as the newer API is a lot easier

Adjusted also the addrow() method that was missing newer formstyles.
2015-04-22 00:10:05 +02:00
niphlod 2b0bfba649 extend underline for proper sphinx formatting 2015-04-21 23:59:07 +02:00
niphlod 9f1edf267d fixes #931 . Thanks @butsyk for spotting the bug 2015-04-21 21:59:42 +02:00
niphlod ac80adc9b4 small typo. Fixes #920 2015-04-19 19:49:25 +02:00
niphlod 888fa3dfc8 added setup script 2015-04-19 19:00:59 +02:00
niphlod f3d815e84b added web.config to deploy web2py on IIS 2015-04-19 15:51:17 +02:00
niphlod 0784680c90 added waitress to anyserver 2015-04-15 23:55:44 +02:00
niphlod cefa30841b file is already open at this point... fixes #895 2015-04-08 21:47:04 +02:00
niphlod e441e15907 fix windows build 2015-04-01 21:35:52 +02:00
niphlod e6c3410639 not needed anymore module 2015-04-01 20:55:47 +02:00
niphlod 6a3bd509e0 bootstrap 3.3.4 is out. 2015-03-25 21:25:29 +01:00
niphlod 3291075384 fixes issue with deleting sessions 2015-03-21 21:54:29 +01:00
niphlod 4f1606fcf2 fixes #679 2015-03-20 23:16:30 +01:00
niphlod cec0f8a0cf fix app packaging 2015-03-19 00:04:24 +01:00
niphlod 0086f7d28a first iteration on bs3 cleanup 2015-03-18 23:11:55 +01:00
niphlod d1ec005924 caches recursive selects for references
Why didn't we think before ? References are lazy, but when asked 
for representation why should we fetch the same referenced record
over and over ?

NB: the code caches only represent() fetching records from tables, that
are the only idempotent represent() calls out there. We could cache
every representation only asking for every represent() call to be 
idempotent. As I feel there will be someone returning random values,
I left it out.

I'll make a PR soon for pyDAL to fix the same behaviour.
2015-03-11 00:48:51 +01:00
niphlod c4a703eb84 fix docs at the top to honor correctly expiration when used in models
Thanks @KabluBR  for spotting it
2015-03-03 20:30:40 +01:00
niphlod 421c905621 fixes #656 2015-03-02 23:00:45 +01:00