odoo-driver 2.2.2__tar.gz → 2.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/PKG-INFO +1 -1
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/__init__.py +15 -5
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/tools/tools_plugins.py +2 -2
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/pyproject.toml +1 -1
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/README.md +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/app.py +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/cli.py +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/default_cert/server.crt +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/default_cert/server.key +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/drivers/__init__.py +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/drivers/driver_abstract.py +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/drivers/driver_abstract_with_queue.py +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/drivers/driver_task.py +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/i18n/babel.cfg +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/i18n/fr/LC_MESSAGES/messages.mo +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/i18n/fr/LC_MESSAGES/messages.po +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/i18n/messages.pot +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/routes/__init__.py +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/routes/routes_odoo.py +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/routes/routes_website.py +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/static/css/bootstrap.min.css +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/static/css/odoo_driver.css +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/static/img/favicon.png +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/static/img/odoo.png +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/static/img/unknown_device.png +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/static/js/bootstrap.bundle.min.js +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/static/js/jquery.min.js +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/templates/application.html.jinja +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/templates/driver_disconnections.html.jinja +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/templates/driver_errored_tasks.html.jinja +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/templates/drivers.html.jinja +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/templates/layout.html.jinja +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/templates/system.html.jinja +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/templates/usb_core_devices.html.jinja +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/tools/__init__.py +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/tools/tools_interface.py +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/tools/tools_serial_code.py +0 -0
- {odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/tools/tools_usb_device.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: odoo-driver
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.0
|
|
4
4
|
Summary: Python library to communicates with devices used by Odoo.(Mainly Point of Sale application)Alternative to Iot Box Odoo solution or Pywebdriver community solution.
|
|
5
5
|
License: AGPLv3+
|
|
6
6
|
Keywords: Odoo,Point Of Sale,Driver,Device
|
|
@@ -10,22 +10,32 @@ __version__ = get_version(__name__, Path(__file__).parent.parent)
|
|
|
10
10
|
__package_name__ = __name__
|
|
11
11
|
|
|
12
12
|
_HASH_EXTENSIONS = [".py"]
|
|
13
|
+
_IGNORED_FILES = [
|
|
14
|
+
# Prevent to change hash, if contributors
|
|
15
|
+
# a new supported device
|
|
16
|
+
"usb_devices.py",
|
|
17
|
+
# routes_website contains only routes for testing purpose
|
|
18
|
+
# for the web interface. only 'routes_odoo' should be hashed.
|
|
19
|
+
"routes_website.py",
|
|
20
|
+
]
|
|
13
21
|
|
|
14
22
|
|
|
15
|
-
def md5_update_from_dir(directory,
|
|
23
|
+
def md5_update_from_dir(directory, hash_value):
|
|
16
24
|
assert Path(directory).is_dir()
|
|
17
25
|
for path in sorted(Path(directory).iterdir(), key=lambda p: str(p).lower()):
|
|
18
|
-
|
|
26
|
+
hash_value.update(path.name.encode())
|
|
19
27
|
if path.is_file():
|
|
20
28
|
if path.suffix not in _HASH_EXTENSIONS:
|
|
21
29
|
continue
|
|
30
|
+
if path.name in _IGNORED_FILES:
|
|
31
|
+
continue
|
|
22
32
|
logger.debug(f"Hashing file {path.absolute()}...")
|
|
23
33
|
with open(path, "rb") as f:
|
|
24
34
|
for chunk in iter(lambda: f.read(4096), b""):
|
|
25
|
-
|
|
35
|
+
hash_value.update(chunk)
|
|
26
36
|
elif path.is_dir():
|
|
27
|
-
|
|
28
|
-
return
|
|
37
|
+
hash_value = md5_update_from_dir(path, hash_value)
|
|
38
|
+
return hash_value
|
|
29
39
|
|
|
30
40
|
|
|
31
41
|
logger.info("Computing hash for 'odoo_driver'...")
|
|
@@ -34,8 +34,8 @@ def load_installed_plugins():
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
def _load_usb_devices_from_plugin(plugin):
|
|
37
|
-
logger.info(f"Adding {len(plugin.
|
|
38
|
-
for _vendor_product_code, _device_info in plugin.
|
|
37
|
+
logger.info(f"Adding {len(plugin.USB_DEVICES)} compatible devices.")
|
|
38
|
+
for _vendor_product_code, _device_info in plugin.USB_DEVICES.items():
|
|
39
39
|
usb_devices[_vendor_product_code] = _device_info
|
|
40
40
|
usb_devices[_vendor_product_code].update(
|
|
41
41
|
{
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/templates/driver_disconnections.html.jinja
RENAMED
|
File without changes
|
{odoo_driver-2.2.2 → odoo_driver-2.3.0}/odoo_driver/templates/driver_errored_tasks.html.jinja
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|