Commit Graph
58 Commits
Author SHA1 Message Date
Cédric Krier 51b857cc36 Simplify xmlrpc marshallers for Python3
issue8143
review45961002
2019-03-08 23:40:20 +01:00
Cédric Krier e5bf50805d Return XML-RPC answer only to XML-RPC request
This prevents to answer an XML-RPC fault to a request which only set xml as
accepted mimetype.

issue7913
review66481002
2018-12-30 00:21:39 +01:00
Cédric Krier d2a461390a Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:19 +02:00
Cédric Krier 965d010dc9 Add user application
issue5782
review28641002
2016-09-27 11:56:19 +02:00
Cédric Krier 8a4ba59b2d Switch to WSGI API
issue4646
review20541003
2016-03-15 16:57:26 +01:00
Cédric Krier 29129855ec Add support for Python 3
issue3211
review7311002
2016-02-07 16:46:16 +01:00
Cédric Krier 31e8634bf4 Fix bytes and bytearray usage
- sqlite can not convert bytearray, must use buffer
- binary value could be stored as unicode
- don't dump bytes as base64 in xmlrpclib if bytes is str
2015-03-16 20:13:03 +01:00
Cédric Krier 5cfde31ed2 Use bytes and bytearray for Binary
issue4637
review11091002
2015-03-16 19:28:34 +01:00
Cédric Krier 0ac0990c77 Improve logging
issue4458
review11781002
2015-03-02 23:39:15 +01:00
Cédric Krier 0991a552de Add TimeDelta field
And remove float_time widget.

issue4026
review5911002
2015-02-09 22:58:56 +01:00
Cédric Krier c144f8c349 Fix most flake8 errors
review8771002
2014-12-02 12:54:01 +01:00
Cédric Krier e0b995abbe Refactore configuration to allow easy extention
issue3627
review7401002
2014-09-03 23:32:01 +02:00
Cédric Krier bc29051ee6 XML-RPC dumps None to nil instead of bool
issue3981
review6351003
2014-06-13 19:08:32 +02:00
Cédric Krier 174b2ed218 Fix protocols and add unittest
review12371002
2014-06-07 23:54:44 +02:00
Cédric Krier 66d9aeb29f Fix and add missing registering type for json and xmlrpc
introduced in changeset ec4c234379ab
2014-06-07 01:04:46 +02:00
Nicolas Évrard d83fc99f35 Allow to register different type for json/xmlrpc encoding/decoding
issue3839
review5021003
2014-06-06 12:57:27 +02:00
Cédric Krier 80fc6aff30 Use copy of handlers set to prevent changed size during iteration 2014-04-04 23:38:21 +02:00
Cédric Krier 68127768cf Remove old backward Python <= 2.6 compatibility code 2014-04-04 23:34:56 +02:00
Cédric Krier 64421ff64f Manage microseconds in JSON-RPC and XML-RPC
review3551002
2014-03-15 10:36:20 +01:00
Cédric Krier bc6acd08ee Drop support of Python 2.6
review2691002
2014-01-31 00:02:03 +01:00
Cédric Krier 5e01f5c068 Fix flake8 2013-02-27 22:50:31 +01:00
Cédric Krier 1a362c3879 Remove dependency to pyOpenSSL
review598006
2012-12-13 19:04:52 +01:00
Cédric Krier 5c9ea961ec Add missing shutdown_request on TCPServer for Python <= 2.6
issue2606
review374001
2012-05-19 15:30:38 +02:00
Cédric Krier ee3be37a36 Fix pep8 and pyflakes 2012-04-01 23:08:15 +02:00
Cédric Krier 08e24d4acf Add missing RegisterHandlerMixin in SimpleXMLRPCRequestHandler 2012-03-27 10:35:24 +02:00
Cédric Krier 1b0a713dad New autoreload that restarts the server instead of reloading modules
issue2417
review283001
2012-03-12 22:27:59 +01:00
Cédric Krier e348c49312 Add support of fields.Time
issue2313
review231006
2012-02-07 16:11:22 +01:00
Cédric Krier 54e3189fb6 Keep traceback as str as we don't know the encoding
issue2302
review225001
2012-01-17 13:54:08 +01:00
Cédric Krier 4bd45954fb Activate SO_KEEPALIVE on socket
review221002
2012-01-17 13:51:08 +01:00
Cédric Krier 8b33421403 Use XML-RPC struct for Decimal and Date
review191006
2011-12-22 22:17:08 +01:00
Korbinian Preisler 775640f882 Fix error handling for XML-RPC
issue2315
review191003
2011-12-02 07:27:51 +01:00
Cédric Krier 8df135fe65 No need to go further in parse_request if it did not succeed
review180001
2011-11-19 19:38:47 +01:00
Nicolas Évrard 0a471486e0 correct pyflake errors
review164003
2011-11-02 15:49:38 +01:00
Cédric Krier 80fd323cae Missing import of Exceptions 2011-10-11 20:42:08 +02:00
Cédric Krier fefd67c3a5 Improve Binary fields
* Support size format in context for Binary fields
* Use buffer for Binary fields
* No more store Binary fields in base64

review74006
2011-09-17 14:43:05 +02:00
Cédric Krier 1a84c04adf Rational exceptions
review94001
2011-09-05 20:30:26 +02:00
Cédric Krier d5efbc62ad Drop NetRPC and activate JSON-RPC by default 2011-08-06 14:31:24 +02:00
Cédric Krier a370592430 Remove socket timeout code for Python < 2.6 2011-07-16 20:17:30 +02:00
Korbinian Preisler f87758c593 convert Float to double for xmlrpc for issue1903 2011-03-25 16:19:19 +01:00
Cédric Krier 54a2967cec Convert dictionary with numeric keys into str for xmlrpc 2010-12-27 16:35:23 +01:00
Cédric Krier c370a1fdc7 Handle timeout in SocketServer for Python < 2.6 for issue1731 2010-10-19 22:32:37 +02:00
Cédric Krier 33b2698270 Don't lose precision when dumping Decimal for XML-RPC
By converting Decimal into float, there is a precision lost so it is better to
write directly the string format of Decimal
2010-10-08 22:52:55 +02:00
Phillip Heller 91184b1173 Factored out common daemon code from services to new trytond.protocols.com
Suppress Errno 57 when attempting to close an already shut socket, fixes issue1624
Revert from join() on enumerated threads to join() on individual service threadsto preserve debugging environments
2010-10-06 16:53:00 -04:00
Cédric Krier 483afed26a Catch only Exception according to PEP 352 2010-07-08 19:53:39 +02:00
Cédric Krier 9922b401a7 Handle date and datetime in XML-RPC 2010-06-09 19:52:47 +02:00
Cédric Krier 0a238cd62f Use basic access authentication for XML-RPC 2010-03-23 10:45:02 +01:00
Cédric Krier 0415e46c73 Don't allow to use float in Numeric fields
The goal is to prevent to introduce float errors in Numeric fields.
There is a trick for external protocols like XML-RPC and JSON-RPC where the
string representation is stored in the Float object and will be used to
convert it into Decimal.
2010-03-12 17:41:07 +01:00
Cédric Krier b5fb4d1ef3 Refactoring by validation with pylint 2010-02-18 18:50:35 +01:00
Cédric Krier 90f3f5b16c Rename HttpDaemon into XMLRPCDaemon 2009-11-13 12:41:43 +01:00
Cédric Krier c85187a104 Add timeout to SimpleThreadedXMLRPCServer for Python 2.6 2009-08-20 17:18:02 +02:00