Commit Graph
20 Commits
Author SHA1 Message Date
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
Cédric Krier 3564b0a50d Use dump_double instead of dump_long for Decimal in xmlrpc.Marshaller 2009-07-15 17:29:19 +02:00
Cédric Krier ac297f15a1 Better comment for gzip encoding 2009-06-24 14:55:40 +02:00
Cédric Krier a050e5ad81 Add gzip encoding for XML-RPC 2009-06-24 13:23:02 +02:00
Cédric Krier 805ce0c869 Remove logging from protocols and add host, port, protocol on dispatch 2009-02-27 18:48:07 +01:00
Cédric Krier a9c8d58be5 Add introspection and use better syntax for XML-RPC
Syntax:
    url = http://ip:port/database_name
    method = (model|wizard|report).object_name.method
2009-02-27 00:52:40 +01:00
Cédric Krier 5b37a3b9dd Convert None into False for XML-RPC 2009-02-27 00:49:05 +01:00
Cédric Krier 77067f009d Remove unused call to register_introspection_functions 2009-02-25 12:21:27 +01:00
Cédric Krier a4455679bd Move xmlrpc into protocols 2009-02-12 18:31:42 +01:00