This commit is contained in:
Cédric Krier committed 2008-08-19 15:41:42 +02:00
commit 32078c678e
1 file changed
+5
+5
View File
@@ -23,6 +23,11 @@ LOG_CRITICAL = 'critical'
from config import CONFIG
# convert decimal to float before marshalling:
from decimal import Decimal
xmlrpclib.Marshaller.dispatch[Decimal] = \
lambda self, value, write: self.dump_long(float(value), write)
def start_SSL(socket):
from OpenSSL import SSL
ctx = SSL.Context(SSL.SSLv23_METHOD)