Openerp-proxy

Latest version: v1.0.0

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

Scan your dependencies

Page 3 of 3

0.6

-----------

- *Backward incompatible*: Changed session file format.
*Start up imports* and *extra_paths* moved to *options* section of file.
- *Backward incompatible*: ``IPYSession`` moved to
``openerp_proxy.ext.repr`` extensions.
Now when using IPython notebook, this extension have to be imported first,
to enable HTML representation of session object.
- *Backward incompatible*: Changed signature of ``Session.connect()`` method.
- *Backward incompatible*:
Renamed ``ERP_Proxy`` to ``Client`` and inherited objects renamed in such way
(for example sugar extension module)
- *Backward incompatible*:
removed ``ERP_Proxy` and ``ERP_Session`` compatability aliases
- *Backward incompatible*:
rename ``openerp_proxy.service.service.ServiceManager.list`` to
``openerp_proxy.service.service.ServiceManager.service_list``.
This affects ``Client.services`` so now ``Client.services.service_list``
should be used instead of using ``Client.services.list``
- *Backward incompatible*:
reports service refactored. ``wrap_result`` parametr to report
service method removed. instead added ``generate_report`` method,
which is recommended to use.
- Added new way reports could be generated in
``client.services.report[report_name].generate(report_data)``
where ``report_data`` could be one of:

- Record instance
- RecordList instance
- tuple('model.name', model_ids))

- Added HTML representation for report service objects
- Changed ``store_passwords`` option meaning.
now if set it will store passwords bese64 encoded,
instead of using simple-crypt module.
This change makes it faster to decode password,
because last-versions of simple-crypt become too slow,
and usualy no encryption needed here.
- Experimental *Python 3.3+* support
- Added ``HField.with_args`` method.
- Added basic implementation of graph plugin.
- Improved ``openerp_proxy.ext.log_execute_console`` extension. Added timing.
- Added ``Client.clean_caches()`` method, which is used to clean
cache of registered models
- RecordList prefetching logic moved to cache module and highly refactored
(Added support of prefetching of related fields)
- Added ``Client.login(dbname, user, password)`` method.
- Added ``HTMLTable.update`` method.
- Added ``RecordList.copy()`` and ``RecordList.existing()`` methods.
- Added ``HTMLTable.to_csv()`` method.
- Added ``Client.server_version`` property
- Client parametrs (dbname, user, pwd) now are not required.
This is useful when working with ``db`` service (``client.services.db``)

0.5

-----------

- Added ``RecordList.prefetch`` method. Als *RecordList's* *fields* argument
now works.
- Changed ``Object`` class. Now it have
``extend_me.ExtensibleByHashType`` metaclass
which allows it to be extended separatly for each model,
and in general way.
For example look at ``openerp_proxy.plugins.module_utils`` module.
- Refactored ``openerp_proxy.core`` module. + better docstrings
- ``openerp_proxy.ext.data``
- ``RecordList.prefetch`` is disabled at the moment.
Will be integrated in code, or atleast reimplemented in different way
- Better ``RecordList.group_by`` method.
Now it colud receive callable which should
calculate key for records to group them by
- Added ``RecordList.filter`` method.
Useful when You want to filter records by functional field.
- Added ``openerp_proxy.ext.log_execute_console`` extension
- HTML representation for IPython notebook extension ``openerp_proxy.ext.repr``
- Added HTML representation of
- Record
- Record.as_table (user is able to specify fields of record to display)
- RecordList
- RecordList.as_html_table (display records contained by list
as table with abilities to highlight them by condition callables
and to specify fields to be displayed)
- Object.columns_info now displayed as HTML table.
- Also *context help* in HTML representation present
- Partial context passing support in ORM
- ``openerp_proxy.orm.record`` refactored greatly
- In this version added support of "query cache", like that one present
in odoo's browse_record class (version 7.0).
It is dict with data shared by records in one query.
thus no need to read each record separatly, nor need to read all fields
records in current query at one time.
But major optimization which is not implemented yet is
implementation of some prefetching mechanism,
to allow user to specify what fields for what model
he would like to read, to reduce RPC calls.
- Record class little bit optimized with slots,
but still takes a lot of memory, because of extensibility.
- Added ``Record.read`` method, which, performs read on record,
store data been read to record, and returns dict with data been read
- ``RecordList.sort`` method was added.
implements *in-place* sort like in usual lists.
- ``RecordList.search`` and ``RecordList.search_records``
methods were implemented.
The difference from standard is that these methods will automaticaly
add [('id','in',self.ids)] to search domain
- ``Object`` class: added properties:

- ``model_name``: return name of object's model
- ``model``: returns ``Record`` instance for model of this object

- Added ``module_utils`` plugin, as example and as utility to work
with modules via RPC
- Report service wrapper (``openerp_proxy.service.report``) refactored.
- Simplified RPC methods signatures.
- Added wrapper on report result which can automaticaly decode and save
report result
- Added basic options support for sessions.
But in future this should be reimplemented as normal config
At this moment there only one option ``store_passwords``
which enables session to store encrypted passwords in session
Note that encryption is very low.
To make this option work You should install simple-crypt.
- ``ERP_Session`` renamed to ``Session`` but for backward compatability,
there is ``ERP_Session`` name still present in module.
- Added ``IPYSession`` class.
At this moment there is only one difference from standard ``Session`` class:
presense of ``_repr_html_`` method.

0.4

-----------

- Record objects now behaves more like browse_record in OpenERP.
No more need in suffix '__obj' to get related fields as records.
They will be automaticaly converted to Record objects.
- __getattribute___ in most cases changed to __getattr__
- Record._name property that returns result of name_get method for this record
- Objec.columns_info refactored to use fields_get method
to get list of fields for an object
- Plugin system refactored. Not it is class-based.
- Added extension system, which allow to extend most of classe. For example see
'openerp_proxy.ext' dir/package where placed some set of extensions
- All orm-related logic facored out into separate package *openerp_proxy.orm*
- session's database's aliases:
to easily get some database in futuer, You could give it alias name
- Now it is posible to enable automatic conversion of date/time
field value to datetime objects.
Implemented via extension
- Sugar extension: less typing)

Page 3 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.