temp fix for failing for logged in user

This commit is contained in:
sanj 2010-12-06 23:43:03 +01:00
parent c8fc941d73
commit df47581b7c

View File

@ -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},