Rename HttpDaemon into XMLRPCDaemon

This commit is contained in:
Cédric Krier
2009-11-13 12:41:43 +01:00
parent 26eca14fc1
commit 90f3f5b16c
3 changed files with 6 additions and 5 deletions
+1
View File
@@ -1,3 +1,4 @@
* Rename HttpDaemon into XMLRPCDaemon
* Improve TranslateFactory to fetch all translations for a report in one query
* Handle displayname on webdav.collection
* Handle current-user-privilege-set on webdav.collection
+1 -1
View File
@@ -171,7 +171,7 @@ class SecureThreadedXMLRPCServer6(SecureThreadedXMLRPCServer):
address_family = socket.AF_INET6
class HttpDaemon(threading.Thread):
class XMLRPCDaemon(threading.Thread):
def __init__(self, interface, port, secure=False):
threading.Thread.__init__(self)
+4 -4
View File
@@ -151,8 +151,8 @@ class TrytonServer(object):
# Launch Server
if CONFIG['xmlrpc']:
from trytond.protocols.xmlrpc import HttpDaemon
httpd = HttpDaemon(CONFIG['interface'], CONFIG['xmlport'],
from trytond.protocols.xmlrpc import XMLRPCDaemon
xmlrpcd = XMLRPCDaemon(CONFIG['interface'], CONFIG['xmlport'],
CONFIG['secure_xmlrpc'])
self.logger.info("starting XML-RPC%s protocol, port %d" % \
(CONFIG['secure_xmlrpc'] and ' Secure' or '',
@@ -182,7 +182,7 @@ class TrytonServer(object):
if CONFIG['netrpc']:
netrpcd.stop()
if CONFIG['xmlrpc']:
httpd.stop()
xmlrpcd.stop()
if CONFIG['webdav']:
webdavd.stop()
if CONFIG['pidfile']:
@@ -212,7 +212,7 @@ class TrytonServer(object):
if CONFIG['netrpc']:
netrpcd.start()
if CONFIG['xmlrpc']:
httpd.start()
xmlrpcd.start()
if CONFIG['webdav']:
webdavd.start()