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
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
mdipierro and GitHub
f161cc4f3b
Merge pull request #1845 from ilvalle/fix_urllib_urlencode
...
fix few py3 urllib.urlencode
2018-02-09 12:27:29 -06:00
ilvalle
ad3c69155b
fix few urllib.urlencode, close #1841
2018-02-04 09:58:16 +01:00
Tim Nyborg and GitHub
072311fd2c
Revert
...
Committed in error
2018-02-02 11:23:48 +00:00
Tim Nyborg and GitHub
5dcbae0b37
Update saml2_auth.py
...
Pass along any _next url var as part of the outstanding queries, so web2py will know where to send the user once they come back from singing on.
Useful if the SAML auth is part of a CAS, because otherwise the user is sent from the CAS consumer -> CAS -> SSO -> CAS, and is never returned to the consumer application
2018-02-02 11:03:04 +00:00
Tim Nyborg and GitHub
76f3384aae
Allow choosing a saml entityid
...
Allows you to pick an entityid when using federation XML data or an MDQ with many entries. Pysaml2's MDQ metadata is loaded lazily, after you provide a key, so it's necessary to pass the entityid as a key
2018-02-01 14:04:47 +00:00
abastardi
071622b9d9
Fix Janrain due to change in behavior
...
Janrain has started providing the login token via a POST request
in addition to including it in the query string. This results
in request.vars.token being a list containing two copies of the
token, which breaks the web2py code. This change keeps just a single
copy of the token.
2017-11-15 14:52:19 -05:00
mdipierro
2f5eb409b6
show computed fields in readonly mode in appadmin
2017-11-08 00:40:47 -06:00
mdipierro and GitHub
de8b2a477b
Merge pull request #1722 from leonelcamara/patch-5
...
mobilize is back
2017-08-07 23:29:06 -05:00
Leonel Câmara
8533fa0d00
put is_mobile and is_tablet in the result of user_agent()
2017-08-08 00:50:55 +01:00
mdipierro
a29947f298
websocket_messaging in Python 3 #1696 , thanks hirolau
2017-08-07 07:27:28 -05:00
Leonel Câmara and GitHub
0b41ed36f9
mobilize is back
...
Fixes #1721
2017-08-06 19:20:01 +01:00
Jose de Soto
d5167f2ed6
change_password_url parameter for alternate login methods
2017-07-31 19:00:24 +02:00
mdipierro and GitHub
fb4c114d85
Merge pull request #1686 from leonelcamara/25issues
...
Fixes 6 issues
2017-07-18 03:44:19 -05:00
mdipierro and GitHub
b47e1334d5
Merge pull request #1682 from leonelcamara/fixheroku
...
Fixheroku
2017-07-18 03:43:45 -05:00
Leonel Câmara
b7b8a009f2
Fixes #1680
2017-07-14 20:17:30 +01:00
mdipierro and GitHub
2396cad2d1
Merge pull request #1658 from ilvalle/fix_minify
...
fix minify, added tests
2017-07-10 14:09:53 -05:00
mdipierro
83681f3f5d
fixed markmin test, change beahvior
2017-07-10 03:16:42 -05:00
mdipierro
dc4ff7c3cc
made markmin2html independens on gluon again and fixed reported problem, thanks mweissen
2017-07-10 03:01:35 -05:00
Leonel Câmara
b3a7c20f3f
Fixes #1635
2017-07-10 00:17:15 +01:00