Changed base url
bzr revid: nicolas.vanhoren@openerp.com-20131002143740-jr8xz6j4qgs97ztp
This commit is contained in:
parent
cf17ef3b3b
commit
5a70bc038a
|
@ -527,6 +527,12 @@ class Home(http.Controller):
|
||||||
|
|
||||||
@http.route('/', type='http', auth="none")
|
@http.route('/', type='http', auth="none")
|
||||||
def index(self, s_action=None, db=None, debug=False, **kw):
|
def index(self, s_action=None, db=None, debug=False, **kw):
|
||||||
|
query = dict(urlparse.parse_qsl(request.httprequest.query_string, keep_blank_values=True))
|
||||||
|
redirect = '/web' + '?' + urllib.urlencode(query)
|
||||||
|
return redirect_with_hash(redirect)
|
||||||
|
|
||||||
|
@http.route('/web', type='http', auth="none")
|
||||||
|
def web_client(self, s_action=None, db=None, debug=False, **kw):
|
||||||
debug = debug != False
|
debug = debug != False
|
||||||
|
|
||||||
lst = http.db_list(True)
|
lst = http.db_list(True)
|
||||||
|
|
|
@ -534,7 +534,7 @@ instance.web.DatabaseManager = instance.web.Widget.extend({
|
||||||
'login': 'admin',
|
'login': 'admin',
|
||||||
'password': form_obj['create_admin_pwd'],
|
'password': form_obj['create_admin_pwd'],
|
||||||
'login_successful': function() {
|
'login_successful': function() {
|
||||||
var url = '/?db=' + form_obj['db_name'];
|
var url = '/web?db=' + form_obj['db_name'];
|
||||||
if (self.session.debug) {
|
if (self.session.debug) {
|
||||||
url += '&debug';
|
url += '&debug';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue