oerplib.service.common

class oerplib.service.common.Common(oerp)

New in version 0.6.

OpenERP is an ERP+CRM program for small and medium businesses.

The whole source code is distributed under the terms of the GNU Public Licence.

  1. 2003-TODAY, Fabien Pinckaers - Tiny sprl’

    >>> oerp.common.about(True)
    ['
    

OpenERP is an ERP+CRM program for small and medium businesses.

The whole source code is distributed under the terms of the GNU Public Licence.

  1. 2003-TODAY, Fabien Pinckaers - Tiny sprl’, ‘5.0.16’]

    param:extended: if True then return version info
    return:string if extended is False else tuple
    timezone_get(db, login, password)
    >>> oerp.common.timezone_get('test_db', 'admin', 'admin_passwd')
    'UTC'
    
    get_server_environment()
    >>> print(oerp.common.get_server_environment())
    Environment Information :
    System : Linux-2.6.32-5-686-i686-with-debian-6.0.4
    OS Name : posix
    Distributor ID: Debian
    Description:    Debian GNU/Linux 6.0.4 (squeeze)
    Release:        6.0.4
    Codename:       squeeze
    Operating System Release : 2.6.32-5-686
    Operating System Version : #1 SMP Mon Mar 26 05:20:33 UTC 2012
    Operating System Architecture : 32bit
    Operating System Locale : fr_FR.UTF8
    Python Version : 2.6.6
    OpenERP-Server Version : 5.0.16
    Last revision No. & ID :
    
    login_message()
    >>> oerp.common.login_message()
    'Welcome'
    
    set_loglevel(loglevel, logger=None)
    >>> oerp.common.set_loglevel(TODO)
    True
    
    get_stats()
    >>> print(oerp.common.get_stats())
    OpenERP server: 5 threads
    Servers started
    Net-RPC: running
    
    list_http_services()
    >>> oerp.common.list_http_services()
    []
    
    check_connectivity()
    >>> oerp.common.check_connectivity()
    True
    
    get_os_time()
    >>> oerp.common.get_os_time()
    (0.01, 0.0, 0.0, 0.0, 17873633.129999999)
    
    get_sql_count()
    >>> oerp.common.get_sql_count()
    TODO
    

Previous topic

oerplib.service.osv

Next topic

oerplib.service.db

This Page