From 0542f652fb1e9a15ff55c414a806c8b4af418b20 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 31 Jan 2013 22:05:39 +0530 Subject: [PATCH] get post fix --- public/js/wn/request.js | 1 + webnotes/handler.py | 1 + 2 files changed, 2 insertions(+) diff --git a/public/js/wn/request.js b/public/js/wn/request.js index 535cd4b317..48200f0651 100644 --- a/public/js/wn/request.js +++ b/public/js/wn/request.js @@ -52,6 +52,7 @@ wn.call = function(opts) { } wn.request.call({ + type: opts.type || "POST", args: args, success: opts.callback, error: opts.error, diff --git a/webnotes/handler.py b/webnotes/handler.py index cbcefc910a..482a302120 100755 --- a/webnotes/handler.py +++ b/webnotes/handler.py @@ -157,6 +157,7 @@ def handle(): # login executed in webnotes.auth if webnotes.request_method == "POST": webnotes.conn.begin() + try: execute_cmd(cmd) except webnotes.ValidationError, e: