credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #01070
[Bug 903076] Re: can not set / change web.base.url
Hello Dr.Ferdinand,
I am not getting exactly your problem. would you please elaborate more
on this issue with related example.
Thanks and waiting for your reply.
** Changed in: openobject-addons
Status: New => Incomplete
--
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):
Incomplete
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