AppRecommender Survey
+Unfortunately your request could not be proccessed.
+Please report this error along with the submitted
file to tassia@gmail.com.
diff --git a/src/web/survey.py b/src/web/survey.py index b9c78c9..24cc0aa 100755 --- a/src/web/survey.py +++ b/src/web/survey.py @@ -175,7 +175,7 @@ class Survey: pkgs_list = [line.strip() for line in packages_list.readlines()] request = Request(web_input,self.submissions_dir,user_id,pkgs_list) if not request.validates(): - return render.error(request.errors) + return render.error_survey() else: user = User(dict.fromkeys(request.pkgs_list,1),request.user_id) user.maximal_pkg_profile() @@ -206,7 +206,10 @@ class Survey: pkg_summaries[pkg] = cache[pkg].candidate.summary except: pkg_summaries[pkg] = "" - return render.survey(pkg_details, request) + if pkg_details: + return render.survey(pkg_details, request) + else: + return render.error_survey() def add_global_hook(): g = web.storage({"counter": "1"}) diff --git a/src/web/templates/error_survey.html b/src/web/templates/error_survey.html new file mode 100644 index 0000000..313b22e --- /dev/null +++ b/src/web/templates/error_survey.html @@ -0,0 +1,20 @@ +$var title: Error +$var mod = 'error'; +$var cssfiles: static/css/facebox.css +$var jsfiles: static/js/facebox.js + + +
Unfortunately your request could not be proccessed.
+Please report this error along with the submitted
file to tassia@gmail.com.