From 7c9ef68b102933cef6a629ca1a85264196bc08cf Mon Sep 17 00:00:00 2001 From: j Date: Sat, 27 Feb 2010 16:07:00 +0530 Subject: [PATCH] add json_errors placeholder --- pandora/oxuser/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pandora/oxuser/views.py b/pandora/oxuser/views.py index 60984a9cb..6ea3968e8 100644 --- a/pandora/oxuser/views.py +++ b/pandora/oxuser/views.py @@ -1,4 +1,4 @@ -# -*- coding: utf-8 -*- + # -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 import uuid import hashlib @@ -17,6 +17,9 @@ from oxdjango.decorators import login_required_json import models +def json_errors(form): + return {'status': {'code': 402, 'text': 'form error'}} + class LoginForm(forms.Form): username = forms.TextInput() password = forms.TextInput()