1. 优化从设备同步到服务端的信息,不要再同步回设备
This commit is contained in:
+1
-2
@@ -18,8 +18,7 @@ class OdooRPCClient:
|
||||
self._connect()
|
||||
|
||||
def _connect(self):
|
||||
self.common = xmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(self.url), verbose=False, use_builtin_types=True,
|
||||
context=ssl._create_unverified_context())
|
||||
self.common = xmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(self.url))
|
||||
self.uid = self.common.authenticate(self.db, self.username, self.password, {})
|
||||
if not self.uid:
|
||||
raise Exception("Authentication failed.")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
asyncio
|
||||
configparser
|
||||
aiomqtt
|
||||
certifi
|
||||
pip-system-certs
|
||||
Reference in New Issue
Block a user