Openerp-proxy

Latest version: v1.0.0

Safety actively analyzes 628969 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

0.6.6

-------------

- Bugfix: Issue `4 <https://github.com/katyukha/openerp-proxy/issues/4>`__
- Bugfix: double call to _get_registered_objects, caused be cleaning caches,
on assess to any service first time
- module_utils plugin fixes mostly related to __dir__ method
(used for auto-complete in IPython)

- added ``stdcall`` decorators to ``upgrade`` and ``install``
methods of 'ir.module.module' object
- Bugfix in ``__dir__`` implementation for plugin object
- added ``installed_modules`` property to ``module_utils`` plugin
- better tests for this plugin

0.6.5

-------------

- Added ``openerp_proxy.plugins.external_ids`` plugin
- ``openerp_proxy.ext.repr``:
better support of ``IPython.display.HTML`` objects representation
- ``openerp_proxy.ext.sugar``:
Added ability to access plugins directly from ``client`` instance
For example, instead of writing ``client.plugins.Test``,
you may write ``client.Test``
- ``stdcall`` decorator and ``stdcall``-methods.
All methods of ``orm.object.Object`` instances,
decorated with this decorator will be visible as
methods of ``orm.record.Record`` and ``orm.record.RecordList``
instances, which means that these methods could be
called in ``meth([ids], *, context=context, **)`` format.
All automaticaly generated proxy method are marked as ``stdcall``
This is implemented to be able to use ``dir``-based auto-completition
for such method for ``Record`` and ``RecordList`` instances
- ``openerp_proxy.plugin.Plugins``, ``openerp_proxy.plugin.PluginManager``,
``openerp_proxy.service.service.ServiceManager``,
``openepr_proxy.service.service.ServiceBase`` representation
improvements (better ``__str__`` and ``__repr__`` overrides)
- Bugfix. Automaticaly clean service caches when new service class is defined
- Added ``__contains__`` override for ``module_utils`` plugin.
Thus it is posible to check if some addon is available on odoo easier:
``'project_sla' in client.plugins.module_utils``
or ``'project_sla' in client.module_utils``
- Improved documentation

0.6.4

-------------

- Added ``Client.user_context`` property
- Bugfix in ``openerp_proxy.ext.repr`` with nested tables when,
field is a function
- Fix for PR 3
- Documentation improvements

0.6.3

-------------

- Added ``Record.copy()`` method override.
- HTML representation fixes and improvements

0.6.2

-------------

- **experimental** Added integration with
`AnyField <https://pypi.python.org/pypi/anyfield>`_
- Added ``RecordList.mapped`` method,
similar to Odoo's ``RecordSet.mapped`` method.
- Partial fix related to changes in Odoo versioning.
See `Issue 9799 <https://github.com/odoo/odoo/issues/9799>`_
- To ``module_utils`` plugin added ``update_module_list`` method.
- A bit of renaming (usualy used internaly)
(may affect custom plugins and extensions)
Property ``proxy``, which points to related ``Client`` instance,
was renamed to ``client``
- Added ``tabulate`` integration. Now when app is running under IPython
shell, it is posible to print ``RecordList``, and single ``Record``
as normal readable tables.
Thanks to `Tabulate <https://pypi.python.org/pypi/tabulate>`_ project
- Added ability to extend Record of specific models.
This allows records of diferent models (objects) to behave specificaly
This may be used for example to add virtual fields in client sripts
- Little refactored connection system. Bugs with connection via SSL (https)
seems to be fixed. As for JSON-RPC, there are some errors may be thrown,
telling that program cannot verify certificate. as workaround
You may pass to Client constructor kayword argument *ssl_verify=False*
- ``log_execute_console`` Added ``TimeTracker`` context manager,
which can be used for performance testing. It makes posible
to get total time code was running, and how much time was spent
on RPC requests.

0.6.1

-------------

- DB service little bit refactored. added methods:
- dump_db: wrapper around ``db.dump`` server method.
- restore_db: wrapper around ``db.restore`` server methods.
- ``openerp_proxy.ext.repr.HField`` added ``F()`` method,
which allows to create child field instance
- ``openerp_proxy.ext.repr`` improved styles for HTML representations

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.