Skip to content
Snippets Groups Projects
Commit 41989e63 authored by Renaud Le Gac's avatar Renaud Le Gac
Browse files

Fix a bug in the jsonstore: the debug flag is define by App.debug and can't be overwritten.

Polish the debug print in the database controller.
parent de56fa3a
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,8 @@ def index(): ...@@ -32,7 +32,8 @@ def index():
if debug: if debug:
print "\nSTART DATABASE CONTROLLER" print "\nSTART DATABASE CONTROLLER"
print "POST arguments:", request.vars print "Method:", request.env.request_method
print "Arguments:", request.vars
try: try:
di = HttpDb(db).proceed(request.vars) di = HttpDb(db).proceed(request.vars)
......
...@@ -299,11 +299,12 @@ class HttpDb(BaseSvc): ...@@ -299,11 +299,12 @@ class HttpDb(BaseSvc):
""" """
BaseSvc.proceed(self, vars) BaseSvc.proceed(self, vars)
self._debug("Start HttpDb.proceed", vars) self._debug("Start HttpDb.proceed")
self._is_keyword("action") self._is_keyword("action")
self._is_action_valid(vars.action) self._is_action_valid(vars.action)
self._debug("End HttpDb.proceed")
return eval("self.%s()" % vars.action) return eval("self.%s()" % vars.action)
......
...@@ -55,12 +55,7 @@ App.JsonStore = Ext.extend(Ext.data.Store, { ...@@ -55,12 +55,7 @@ App.JsonStore = Ext.extend(Ext.data.Store, {
table: config.table, table: config.table,
tableFields: config.tableFields, tableFields: config.tableFields,
} }
// add the debug
if ("debug" in config){
this.baseParams.debug = config.debug;
}
// add the foreign key // add the foreign key
if ("foreignFields" in config){ if ("foreignFields" in config){
this.baseParams.foreignFields = config.foreignFields; this.baseParams.foreignFields = config.foreignFields;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment