File: ref_oerplib.rst

package info (click to toggle)
python-oerplib 0.8.3-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,212 kB
  • ctags: 503
  • sloc: python: 3,232; makefile: 115
file content (15 lines) | stat: -rw-r--r-- 563 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
oerplib
=======

.. automodule:: oerplib
    :members:

Here's a sample session using this module::

    >>> import oerplib
    >>> oerp = oerplib.OERP('localhost')                    # connect to localhost, default port
    >>> user = oerp.login('admin', 'admin', 'my_database')  # login returns an user object
    >>> user.name
    'Administrator'
    >>> oerp.save('foo')                                    # save session informations in ~/.oerplibrc
    >>> oerp = oerplib.load('foo')                          # get a pre-configured session from ~/.oerplibrc