[imp] added some debugging tools
bzr revid: nicolas.vanhoren@openerp.com-20110712091131-ixr36d9dyilfnoyj
This commit is contained in:
parent
8c761e24be
commit
2b47b7f69a
|
@ -304,6 +304,7 @@ QWeb2.Engine = (function() {
|
|||
" /* START TEMPLATE */ try {\n" +
|
||||
(e.compile()) + "\n" +
|
||||
" /* END OF TEMPLATE */ } catch(error) {\n" +
|
||||
" if (console && console.exception) console.exception(error);\n" +
|
||||
" context.engine.tools.exception('Runtime Error: ' + error, context);\n" +
|
||||
" }\n" +
|
||||
" return r.join('');";
|
||||
|
|
|
@ -921,6 +921,11 @@ openerp.base.Login = openerp.base.Controller.extend({
|
|||
this.selected_db = localStorage.getItem('last_db_login_success');
|
||||
this.selected_login = localStorage.getItem('last_login_login_success');
|
||||
}
|
||||
if (jQuery.deparam(jQuery.param.querystring()).debug != undefined) {
|
||||
this.selected_db = "trunk";
|
||||
this.selected_login = "admin";
|
||||
this.selected_password = "a";
|
||||
}
|
||||
},
|
||||
start: function() {
|
||||
var self = this;
|
||||
|
|
|
@ -86,7 +86,8 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td><label for="password">Password:</label></td>
|
||||
<td><input type="password" name="password"/></td>
|
||||
<td><input type="password" name="password"
|
||||
t-att-value="selected_password || ''"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
|
|
Loading…
Reference in New Issue