events: Fix the requesting client type being always internal.

(imported from commit b03bee006547ee811c2f0af66d82dfe6bc4331fc)
This commit is contained in:
Tim Abbott
2013-05-07 11:25:25 -04:00
parent d0540efa6a
commit 74148518b4
4 changed files with 18 additions and 8 deletions

View File

@@ -231,11 +231,13 @@ def extract_json_response(resp):
else:
return resp.json
def request_event_queue(user_profile, apply_markdown, event_types=None):
def request_event_queue(user_profile, user_client, apply_markdown,
event_types=None):
if settings.TORNADO_SERVER:
req = {'dont_block' : 'true',
'apply_markdown': simplejson.dumps(apply_markdown),
'client' : 'internal'}
'client' : 'internal',
'user_client' : user_client.name}
if event_types is not None:
req['event_types'] = simplejson.dumps(event_types)
resp = requests.get(settings.TORNADO_SERVER + '/api/v1/events',