From df47581b7c9b4cea8c3a706e26340bc5dedf1fed Mon Sep 17 00:00:00 2001 From: sanj Date: Mon, 6 Dec 2010 23:43:03 +0100 Subject: [PATCH] temp fix for failing for logged in user --- itf/api/views.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/itf/api/views.py b/itf/api/views.py index 12ae230..cad29ce 100644 --- a/itf/api/views.py +++ b/itf/api/views.py @@ -68,6 +68,11 @@ def api_apidoc(request): docs[f] = get_api_doc(f) return render_to_json_response(json_response({'actions': docs})) + +#FIXME: REMOVE THIS FUNCTION WHEN THERE ARE REAL USERS!!!! +def get_user_json(u): + return {'name': 'Guest', 'group': 'guest', 'preferences': {}} + def api_hello(request): ''' return {'status': {'code': int, 'text': string},