Commit graph

62 commits

Author SHA1 Message Date
Suraj Shetty
c0c5b2ebdd
style: format all python files using black (#16453)
Co-authored-by: Frappe Bot <developers@frappe.io>
2022-04-12 10:59:25 +05:30
Suraj Shetty
42643c3faa fix: Follow FIFO while inserting global search record
the latest enqueued value should override the value of the existing document
2022-04-01 18:47:05 +05:30
barredterra
745297a49d refactor: a not in b
Search: if not ([\w\d]*?) in ([\w\d]*?)
Replace: if $1 not in $2
2022-02-21 19:54:34 +01:00
barredterra
dac9349aef refactor: use is bool instead of == bool 2022-01-17 15:40:33 +01:00
Gavin D'souza
3446026555 chore: Update header: license.txt => LICENSE
The license.txt file has been replaced with LICENSE for quite a while
now. INAL but it didn't seem accurate to say "hey, checkout license.txt
although there's no such file". Apart from this, there were
inconsistencies in the headers altogether...this change brings
consistency.
2021-09-03 12:02:59 +05:30
Gavin D'souza
793b5638d3 style: Fix E201, E202, E401, E701
reported by sider: https://sider.review/gh/repos/1864194/pulls/13344?statuses#issues
2021-05-27 12:48:01 +05:30
Gavin D'souza
e407b78506 chore: Drop dead and deprecated code
* Remove six for PY2 compatability since our dependencies are not, PY2
  is legacy.
* Removed usages of utils from future/past libraries since they are
  deprecated. This includes 'from __future__ ...' and 'from past...'
  statements.
* Removed compatibility imports for PY2, switched from six imports to
  standard library imports.
* Removed utils code blocks that handle operations depending on PY2/3
  versions.
* Removed 'from __future__ ...' lines from templates/code generators
* Used PY3 syntaxes in place of PY2 compatible blocks. eg: metaclass
2021-05-26 15:31:29 +05:30
Faris Ansari
f8ca990a83 Merge remote-tracking branch 'upstream/develop' into esbuild 2021-05-16 11:26:43 +05:30
Gavin D'souza
b3af9f0c72 fix: Use raw strings for strings with \
Avoid DeprecationWarning which will turn into SyntaxError in later
Python versions
2021-05-07 17:59:20 +05:30
Faris Ansari
dd69f1ab43 fix: Hash based file naming
- For better HTTP caching and cache busting
- assets.json is created under [app]/dist folder which contains the map
of input file and output file name, this is used to get the correct path for
bundled assets
2021-04-29 13:30:07 +05:30
gregor-horvath
603a60e0a4
fix: py3 AttributeError decode
str has no attribute decode in python3, use cstr to convert to str
2020-10-08 21:12:09 +02:00
marty
256428572f resolve error redis_wrapper 2020-03-31 12:54:30 +00:00
Aditya Hase
af3c4feb64 feat: Monitor
Collect HTTP Request and Background Job logs
2020-03-05 15:06:15 +05:30
Rushabh Mehta
74e2e05162 fix(test): two_factor 2019-11-07 12:14:09 +05:30
Rushabh Mehta
463d1c5ec5 fix(major): upgrade redis-py and rq and try and fix scheduler tests 2019-11-07 12:14:09 +05:30
Rushabh Mehta
0704928fd8 fix(global search): fallback if redis is not yet started 2019-01-30 11:26:07 +05:30
Ameya Shenoy
d1d0edc636
Merge branch 'master' into staging-fixes 2018-11-23 08:07:36 +00:00
Aditya Hase
fc085a2b39 fix(redis-wrapper): Do not assume existence of superclass of redis.Redis
RedisWrapper inherits from Redis which inherits from StrictRedis

In redis-py 3.0.0 StrictRedis was renamed to Redis.

This seems like a harmless change, but, instead of using
`self(RedisWrapper ...`, all methods use `self(Redis ...`
which assumes previous hierarchy (i.e. RedisWrapper <- Redis <- StrictRedis)
2018-11-15 20:06:03 +05:30
Saurabh
3e7b387a7a [resolved] merge-conflicts 2018-09-12 14:52:46 +05:30
Ameya Shenoy
21bbbd2dbb
[feature] show popup for version update
- added a new weekly hook to check if new version update is available
- added function to desk.js to show popup in case a new version is
available
- added redis wrappers for set related commands, namely sadd, srem,
sismember, spop, srandmember, smembers
2018-08-15 20:34:48 +00:00
Aditya Hase
dca702d898 Allow multiple values to be passed as arguments to rpush and lpush (#5802) 2018-07-10 15:34:29 +05:30
Achilles Rasquinha
0fc518ace4 python 3 fixes 2018-03-31 18:15:43 +05:30
Achilles Rasquinha
0bf3411391 removed dill, revert to cPickle 2018-03-19 19:23:14 +05:30
Achilles Rasquinha
473d3eb6be Fixes for Python 3 (#4940)
* Fixed dict_keys and lists

* [FIX] config.get keys must be list

* [FIX] pickle all objects

* [FIX] get versions in unicode

* [FIX] get log versions

* debugging

* Fixed commit ID reference

* Fixed branch reference

* Fixed doc keys to list

* [LOG] test log

* [LOG] test log

* Convert iterators to list

* removed logs

* [FIX] Trial to load templates

* Fixed codacy
2018-01-31 10:51:13 +05:30
Aditya Hase
00c655b2f4 Decode string before passsing to regex.match 2017-08-22 17:20:35 +05:30
Aditya Hase
aac8822d05 Replaced cPickle import with six.moves.cPickle (#3858) 2017-08-04 10:53:21 +05:30
tundebabzy
bbde2ec4cf rewrite use of dict.iteritems (#3498)
* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility

* dict.iteritems to six.iteritems(dict) for python3 compatibility
2017-06-19 09:10:21 +05:30
Rushabh Mehta
fac7f1e31b [fix] [hot] hset bug 2016-11-19 17:16:49 +05:30
Rushabh Mehta
ddbf3d2662 [fix] always save site encoded keys in local and redis 2016-11-18 18:37:15 +05:30
Rushabh Mehta
0f6420517a [hot-fix] fix test and print format 2016-11-14 17:33:32 +05:30
Rushabh Mehta
612d612b7e [hot] fix bug that caused session crashing when cache was full 2016-11-14 17:22:08 +05:30
Rushabh Mehta
61ea2522d9 [fix] email queue 2016-08-02 10:35:38 +05:30
Rushabh Mehta
ab1d947871 [fix] email queue 2016-08-02 10:25:31 +05:30
Rushabh Mehta
2bf6be0629 [fix] email queue must be fifo with priority 2016-08-01 22:04:23 +05:30
Rushabh Mehta
561b2490c4 [minor] email queue system more optimized 2016-08-01 19:40:43 +05:30
Rushabh Mehta
a5899a0d0c [list-settings] save in redis, db, save filters while switching views and patch 2016-05-31 18:30:25 +05:30
Rushabh Mehta
eb399f74bd [enhancement] desktop icons, completed modules setup and test cases 2016-03-16 11:17:29 +05:30
Rushabh Mehta
28f038aa90 [enhancement] desktop icons DocType 2016-03-16 11:17:29 +05:30
Anand Doshi
293a8136cb [fix] facebook oauth, login using token. Fixes frappe/erpnext#4166 2015-12-24 20:37:45 +05:30
Anand Doshi
999cea874c [fix] Implemented caching in linked with 2015-10-15 12:51:04 +05:30
Anand Doshi
755c7be7fa [fix] missing hash cache clearing and breadcrumbs fix 2015-08-11 16:19:42 +05:30
Rushabh Mehta
f187d79b95 [cache] [fix] hdel 2015-05-11 12:07:11 +05:30
Rushabh Mehta
7c3851abb2 [redis] pass if no server 2015-05-11 10:52:32 +05:30
Rushabh Mehta
4e6b6ebdb9 [cache] fix 2015-05-08 22:30:38 +05:30
Rushabh Mehta
ad100e3054 [cache] fix for website, default, meta, etc 2015-05-08 18:04:13 +05:30
Rushabh Mehta
2a9f31f1a4 [cache] fix 2015-05-08 13:18:39 +05:30
Rushabh Mehta
6ba4baecef [cache-redesign] meta cache 2015-05-08 12:16:16 +05:30
Anand Doshi
6e7700ff48 Fixes frappe/erpnext#3213 2015-05-06 11:38:44 -07:00
Rushabh Mehta
3fb635532f [fixes] test case, send to sender if in recipients, undefined in notes, permission test case fix, remove guest permission from blog post 2015-04-29 11:21:13 +05:30
Anand Doshi
ac8d731ff4 fixes in redis if redis server is off 2015-03-25 14:50:45 +05:30