Fixing few issues with context menu icon missing.

Introduced a new ajax function to return the HTTP Status code 410 (GONE).
Changed the location of the javascript from each modules, it loads.

Added .swp, .swo files in the .gitignore file
This commit is contained in:
Ashesh Vashi
2015-12-04 14:47:18 +05:30
parent b36e264fd3
commit 537df154fe
4 changed files with 12 additions and 2 deletions

View File

@@ -92,3 +92,11 @@ def success_return(message=''):
success=1,
info=message
)
def gone(errormsg=''):
"""Create a response with HTTP status code 410 - GONE."""
return make_json_response(
status=410,
success=0,
errormsg=errormsg
)