[IMP] do no hardcode the port for the default value of ir.config_parameter web.base.url
bzr revid: chs@openerp.com-20111014093328-lztmfdnekti62i43
This commit is contained in:
@@ -25,7 +25,7 @@ Store database-specific configuration parameters
|
||||
from osv import osv,fields
|
||||
import uuid
|
||||
import datetime
|
||||
from tools import misc
|
||||
from tools import misc, config
|
||||
|
||||
"""
|
||||
A dictionary holding some configuration parameters to be initialized when the database is created.
|
||||
@@ -33,7 +33,7 @@ A dictionary holding some configuration parameters to be initialized when the da
|
||||
_default_parameters = {
|
||||
"database.uuid": lambda: str(uuid.uuid1()),
|
||||
"database.create_date": lambda: datetime.datetime.now().strftime(misc.DEFAULT_SERVER_DATETIME_FORMAT),
|
||||
"web.base.url": lambda: "http://localhost:8069",
|
||||
"web.base.url": lambda: "http://localhost:%s" % config.get('xmlrpc_port'),
|
||||
}
|
||||
|
||||
class ir_config_parameter(osv.osv):
|
||||
|
||||
Reference in New Issue
Block a user