← Back to team overview

credativ team mailing list archive

[Bug 903076] Re: can not set / change web.base.url

 

(converting to a question, this is not a valid bug)

** Changed in: openobject-addons
       Status: New => Invalid

** Converted to question:
   https://answers.launchpad.net/openobject-addons/+question/181756

-- 
You received this bug notification because you are a member of OpenERP
Framework Experts, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/903076

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

Status in OpenERP Addons (modules):
  Invalid

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


References