Only require a service ID when asking for user specific info

This commit is contained in:
2010-05-30 22:34:04 +01:00
parent 31e324d0a2
commit 661b93cc56

View File

@@ -25,7 +25,7 @@ def retrieve_xml(request):
# If they don't provide any kind of query, shoot a quick error message. # If they don't provide any kind of query, shoot a quick error message.
return HttpResponse('No API query specified.') return HttpResponse('No API query specified.')
if not 'service' in params: if 'userID' in params and not 'service' in params:
return HttpResponse('No Service ID provided.') return HttpResponse('No Service ID provided.')
# The query system will retrieve a cached_doc that was either previously # The query system will retrieve a cached_doc that was either previously