~openerp-dev/openobject-client-web/trunk-Preferences-kjo

« back to all changes in this revision

Viewing changes to openobject/commands.py

  • Committer: ame (Tiny)
  • Date: 2010-01-04 10:41:58 UTC
  • Revision ID: ame@tinyerp.com-20100104104158-92jypyicgh56twq8
[REF] openerp-web => openobject-web (project name changed)
[REF] openerp => openobject (namespace changed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
import cherrypy
6
6
from cherrypy._cpconfig import as_dict
7
7
 
8
 
from openerp import release
 
8
from openobject import release
9
9
      
10
10
           
11
11
class CPSessionWrapper(object):
36
36
 
37
37
def get_config_file():
38
38
    setupdir = os.path.dirname(os.path.dirname(__file__))
39
 
    configfile = os.path.join(setupdir, "config", "openerp-web.cfg")
 
39
    configfile = os.path.join(setupdir, "config", "openobject-web.cfg")
40
40
    if os.path.exists(configfile):
41
41
        return configfile
42
42
    return None
80
80
    }})
81
81
 
82
82
    # import profiler while makes profile decorator available as __builtins__
83
 
    from openerp.tools import profiler
84
 
    from openerp.addons import load_addons
 
83
    from openobject.tools import profiler
 
84
    from openobject.addons import load_addons
85
85
    
86
86
    load_addons(app_config)
87
87
    
90
90
    app = mount_tree(mount, app_config)
91
91
 
92
92
    # initialize the rpc session
93
 
    host = app.config['openerp'].get('host')
94
 
    port = app.config['openerp'].get('port')
95
 
    protocol = app.config['openerp'].get('protocol')
 
93
    host = app.config['openobject'].get('host')
 
94
    port = app.config['openobject'].get('port')
 
95
    protocol = app.config['openobject'].get('protocol')
96
96
 
97
 
    from openerp.tools import rpc
 
97
    from openobject.tools import rpc
98
98
    rpc.initialize(host, port, protocol, storage=CPSessionWrapper())
99
99
    
100
100