Commits

Stéphane Wirtel committed ef7310f

[FIX] Import Object class from the RPC and set the right user login

  • Participants
  • Parent commits dd0c293

Comments (0)

Files changed (1)

File examples/demo.py

 
 """
 from flask import Flask
-from flaskext.openerp import OpenERP
+from flask import g
+from flaskext.openerp import OpenERP, Object
 
 class DefaultConfig(object):
     OPENERP_PROTOCOL = 'netrpc'
     OPENERP_HOSTNAME = 'localhost'
     OPENERP_DATABASE = 'openerp'
-    OPENERP_DEFAULT_USERNAME = 'admin'
+    OPENERP_DEFAULT_USER = 'admin'
     OPENERP_DEFAULT_PASSWORD = 'admin'
     OPENERP_PORT = 8070