Public bug reported:

apparently this is set as default, but IMHO will rarely be the one
useful in production envirenment

"web.base.url": lambda: "http://localhost:%s"; %
config.get('xmlrpc_port'),

IMHO it must be possilbe to change this value somewhere

this seems not to do it.
./openobject-server/openerp/addons/base/res/res_users.py 

        if uid == openerp.SUPERUSER_ID:
            # Successfully logged in as admin!
            # Attempt to guess the web base url...
            if user_agent_env and user_agent_env.get('base_location'):
                cr = pooler.get_db(db).cursor()
                try:
                    self.pool.get('ir.config_parameter').set_param(cr, uid, 
'web.base.url',
                                                                   
user_agent_env['base_location'])
                    cr.commit()
                except Exception:
                    logging.getLogger('res.users').exception("Failed to update 
web.base.url configuration parameter")
                finally:
                    cr.close()

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/903076

Title:
  can not set / change web.base.url

Status in OpenERP Addons (modules):
  New

Bug description:
  apparently this is set as default, but IMHO will rarely be the one
  useful in production envirenment

  "web.base.url": lambda: "http://localhost:%s"; %
  config.get('xmlrpc_port'),

  IMHO it must be possilbe to change this value somewhere

  this seems not to do it.
  ./openobject-server/openerp/addons/base/res/res_users.py 

          if uid == openerp.SUPERUSER_ID:
              # Successfully logged in as admin!
              # Attempt to guess the web base url...
              if user_agent_env and user_agent_env.get('base_location'):
                  cr = pooler.get_db(db).cursor()
                  try:
                      self.pool.get('ir.config_parameter').set_param(cr, uid, 
'web.base.url',
                                                                     
user_agent_env['base_location'])
                      cr.commit()
                  except Exception:
                      logging.getLogger('res.users').exception("Failed to 
update web.base.url configuration parameter")
                  finally:
                      cr.close()

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/903076/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help   : https://help.launchpad.net/ListHelp

Reply via email to