nickinho and GitHub
e8d56bbba9
Update oauth20_account.py
...
Adding python 2/3 compatibility.
2019-03-08 13:58:54 +01:00
mdipierro
26f1b8c84b
new validators and adapted tests
2019-03-03 23:54:49 -08:00
mdipierro and GitHub
a828cb2124
Merge pull request #2115 from leonelcamara/patch-23
...
py3 compat don't use keys()[0]
2019-03-02 23:08:04 -08:00
mdipierro and GitHub
70ccecb1ab
Merge pull request #2100 from erbalito/patch-1
...
Update redis_cache.py
2019-03-02 23:03:18 -08:00
Leonel Câmara and GitHub
ef6814d452
py3 compat
...
Fixes #2114
2019-03-01 15:05:26 +00:00
erbalito and GitHub
df2d09706c
resolves #2098
2019-02-21 08:39:41 -03:00
erbalito and GitHub
118e57dd15
Update redis_cache.py
...
Small fix to make proper use of current.request.application when application is not provided
2019-02-21 08:12:07 -03: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
f434ebec8a
Update Python 3 compatibility
2019-02-09 00:01:11 -08:00
erbalito and GitHub
178f48799a
Merge branch 'master' into master
2018-11-26 11:46:59 -03:00
erbalito and GitHub
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 and GitHub
f119f1fcb2
Merge pull request #2053 from boriscougar/patch-1
...
redis_scheduler failing
2018-11-18 11:09:26 -08:00
erbalito and GitHub
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
Boris Aramis Aguilar Rodríguez and GitHub
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
mdipierro and GitHub
bf27c8c394
Merge pull request #2048 from timnyborg/patch-3
...
Allow custom json encoder
2018-11-01 08:24:53 -07:00
mdipierro and GitHub
bbaf151f25
Merge pull request #2047 from kvanzuijlen/fix_issues_for_python3
...
'unique_key' shouldn't be saved as bytes
2018-11-01 08:24:27 -07:00
Tim Nyborg and GitHub
77a5c01ac9
Allow custom json encoder
...
This lets an application use a custom JSONEncoder when making jsonrpc calls (to automatically handle, say, serialization of datetime, or Decimal, or custom classes).
e.g.:
import json, datetime, decimal
class ExtendedEncoder(json.JSONEncoder):
def default(self, obj):
if isinstance(obj, datetime.datetime):
return obj.isoformat()
if isinstance(obj, decimal.Decimal):
return str(obj)
return super(ExtendedEncoder, self).default(obj)
api = ServerProxy(address, version='2.0', encoder=ExtendedEncoder)
2018-10-29 15:16:28 +00:00
Koen van Zuijlen
ec41d49454
'unique_key' shouldn't be saved as bytes
2018-10-29 13:47:35 +01:00
Tim Nyborg and GitHub
5d9f17d414
correct rendering of jsonrpcerrors
...
Currently, JSONRPCErrors get spit into a console or ticket one line per character (due to the '\n'.join(data) applying to a string). This fixes that issue while preserving new lines for arrays.
2018-10-09 10:51:38 +01:00
Faelysse
c5547091cf
Python3 redis compatibility
...
Redis expects int, Python3 <int>/<int> operation returns floatgit
2018-08-17 16:35:54 +02:00
mdipierro and GitHub
65b9c9ce17
Merge pull request #1960 from daniellibonati/master
...
Proposed Fix for #1959 "Can't initiate simplejsonrpc service object"
2018-08-05 17:18:29 -07:00
mdipierro and GitHub
5f9a097505
Merge pull request #1956 from marian-vignau/master
...
Proposed fix to solve crash on markdown2 module
2018-08-05 17:18:00 -07:00
mdipierro and GitHub
077eb4263d
Merge pull request #1946 from leonelcamara/patch-17
...
Import urllib stuff from _compat
2018-08-05 17:14:43 -07:00
mdipierro and GitHub
2904dae2c3
Merge pull request #1945 from leonelcamara/patch-16
...
Import urllib stuff from _compat
2018-08-05 17:14:29 -07:00
mdipierro and GitHub
225380d00b
Merge pull request #1944 from leonelcamara/patch-15
...
PY3 compatibility
2018-08-05 17:14:16 -07:00
mdipierro and GitHub
fc295bb617
Merge pull request #1943 from leonelcamara/patch-14
...
fixed XML import
2018-08-05 17:14:03 -07:00
jvanbraekel
68284be7b0
Fix pdf export , make it python3 compatible, Fix markmin2latex import
2018-08-02 11:04:14 +02:00
jvanbraekel and GitHub
e73029ce37
fix markmin2latex import
...
Add full path name in markmin2latex import
2018-07-31 10:13:21 +02:00
Daniel Libonati
ea1d9acfad
Fix #1959
2018-06-30 21:55:16 -03:00
mavignau@gmail.com
e6b7388758
Fix proposed to crash in linux on import markdown module
2018-06-19 21:18:33 -03:00
Leonel Câmara and GitHub
c97cac19f0
Import urllib stuff from _compat
2018-06-08 10:54:57 +01:00
Leonel Câmara and GitHub
b5e8cad672
Import urllib stuff from _compat
2018-06-08 10:45:36 +01:00
Leonel Câmara and GitHub
d502275fc8
PY3 compatibility
2018-06-08 10:41:13 +01:00
Leonel Câmara and GitHub
98c70d8a70
fixed XML import
2018-06-07 23:17:07 +01:00
Leonel Câmara and GitHub
18414ab8c2
Fixes #1918
...
Took the chance to also update the syntax from the old style "except socket.error, e:" to "except socket.error as e"
2018-05-03 17:15:53 +01:00
mdipierro and GitHub
a79ec41b3b
Merge pull request #1908 from leonelcamara/make_sure_to_unlock_redis
...
Release the lock even if function call fails
2018-04-29 19:50:33 -05:00
mdipierro and GitHub
f0eb120bba
Merge pull request #1904 from n1k9/master
...
Modify dispacher for differente response element name
2018-04-29 19:49:10 -05:00
Leonel Câmara and GitHub
d6f426ed29
Update redis_cache.py
...
fix comment position
2018-04-20 17:00:13 +01:00
Leonel Câmara and GitHub
ea5ea6a307
Release the lock even if function call fails
2018-04-20 16:55:05 +01:00
Nicola Gramola
43e2ed2fc7
Modify dispacher for differente response element name
2018-04-19 08:57:25 +02:00
mdipierro and GitHub
ddb2f0ebc3
Merge pull request #1897 from rif/master
...
Python3 fixes
2018-04-18 22:00:53 -05:00
mdipierro and GitHub
2d500d4cc8
Merge pull request #1896 from cccaballero/set_ldap_python_log_levels
...
Add support for Python logger logging levels in LDAP auth
2018-04-18 22:00:07 -05:00
Radu Ioan Fericean
0900a3ddb9
discovered and use _compat to_bytes and to_native functions
2018-04-14 14:58:53 +03:00
Radu Ioan Fericean
086bfb5851
fix redis sessions and redis for python3
2018-04-14 14:33:37 +03:00
Carlos Cesar Caballero Díaz
de0e63469c
Add support for Python logger logging levels in LDAP auth
2018-04-13 14:35:52 -04:00
Carlos Cesar Caballero Díaz
9b4b412239
Fixed Python 3.x LDAP bug on user fistname and lastname part
2018-04-12 12:25:30 -04:00
Richard Vézina
1452fd3851
Would make more sens there
2018-03-13 13:35:44 -04:00
Richard Vézina
0fc6bbc744
Install wiht pip not easy_install
2018-03-13 10:22:36 -04:00
mdipierro
2bcd0c2f10
no more pg8000
2018-02-24 20:59:51 -06:00