RPC made even easier
Quick summary
The article presents a simpler way to use RPC, making remote communication with applications related to OpenERP easier. Its focus is technical: reducing the complexity of integrations between applications.
Contents
The KDE client provides libraries that developers can use to create applications while relying on the OpenObject server for data storage and management. This article focuses on the RPC library.
XML-RPC is straightforward to use from Python, but Net-RPC offers better performance. Koo’s RPC library hides the underlying protocol and provides a simple interface, including asynchronous queries that keep the user interface responsive while requests run in the background.
The API was undergoing cleanup at the time, including renaming the old ktiny namespace to Koo (KDE OpenObject).
A synchronous example:
```python import Koo.Rpc session = Koo.Rpc.Session() session.login('http://admin:admin@localhost:8069', 'database')
Or: session.login('socket://admin:admin@localhost:8069', 'database')
session.call('/object', 'execute', 'res.partner', 'search', [('name', 'ilike', 'NaN')]) session.logout() ```
GUI applications can instead use asynchronous calls so that network operations do not block the interface.
Frequently asked questions
What is RPC in the context of the article?
It is the remote communication mechanism presented in the article as a simpler way to interact with the system.
What is the article mainly about?
It explains how to make RPC easier to use in applications related to OpenERP.
What benefit does the presented approach seek?
It aims to reduce the complexity of interacting with the system remotely and make integrations easier to develop.
Does the article address a user feature or a technical topic?
It mainly addresses a technical issue related to communication between applications.
Related articles
Developer
PostgreSQL text-search performance
The article discusses a comparison between PostgreSQL and Oracle text-search performance. PostgreSQL’s capabilities made it possible to implement Koo’s text search quickly and provide fast results from OpenERP data.
Developer
Documentation: The new framework explained
Koo’s new documentation framework connects the manual with contextual help for menus, views, and fields. Documentation lives alongside modules as Sphinx files, can include dynamic references and screenshots, and is generated after the paragraphs have been imported and processed.
Developer
My life without full text search
Koo’s full-text search provides a fast way to find customer details, worksheets, knowledge-base content and CRM cases. The article highlights the Control + T shortcut and explains why searching can be quicker than browsing menus or relying on individual shortcuts.