* Added result messages about folder operations,

* Better display (I hope) of those messages.

see #55
This commit is contained in:
Antoine Nguyen
2011-03-30 19:15:21 +02:00
parent b997dec8f4
commit 3a29f1345e
6 changed files with 36 additions and 23 deletions
+3 -3
View File
@@ -74,7 +74,7 @@ def getctx(status, level=1, callback=None, **kwargs):
ctx[kw] = v
return ctx
def ajax_response(request, status="ok", error=None,
def ajax_response(request, status="ok", respmsg=None,
url="", ajaxnav=False, norefresh=False,
template=None, **kwargs):
"""Ajax response shortcut
@@ -97,8 +97,8 @@ def ajax_response(request, status="ok", error=None,
else:
content = ""
jsonctx = {"status" : status, "content" : content}
if error is not None:
jsonctx["error"] = error
if respmsg is not None:
jsonctx["respmsg"] = respmsg
if ajaxnav:
jsonctx["ajaxnav"] = True
if url != "":