GitHub PullRequestReviewCommentEvent at 2014-06-04 20:43:37
Repository: webrtc
Actor: juberti
Payload: {"comment":{"url":"https://api.github.com/repos/GoogleChrome/webrtc/pulls/comments/13409550","id":13409550,"diff_hunk":"@@ -515,38 +520,42 @@ def get(self):\n     offer_constraints = make_offer_constraints()\n     media_constraints = make_media_stream_constraints(audio, video)\n \n-    template_values = {'error_messages': error_messages,\n-                       'token': token,\n-                       'me': user,\n-                       'room_key': room_key,\n-                       'room_link': room_link,\n-                       'initiator': initiator,\n-                       'pc_config': json.dumps(pc_config),\n-                       'pc_constraints': json.dumps(pc_constraints),\n-                       'offer_constraints': json.dumps(offer_constraints),\n-                       'media_constraints': json.dumps(media_constraints),\n-                       'turn_url': turn_url,\n-                       'stereo': stereo,\n-                       'arbr': arbr,\n-                       'asbr': asbr,\n-                       'vrbr': vrbr,\n-                       'vsbr': vsbr,\n-                       'vsibr': vsibr,\n-                       'ssr': ssr,\n-                       'include_vr_js': include_vr_js,\n-                       'meta_viewport': meta_viewport,\n-                       'audio_send_codec': audio_send_codec,\n-                       'audio_receive_codec': audio_receive_codec\n-                      }\n-    if unittest:\n-      target_page = 'test/test_' + unittest + '.html'\n+    params = {\n+      'error_messages': error_messages,\n+      'token': token,\n+      'me': user,\n+      'room_key': room_key,\n+      'room_link': room_link,\n+      'initiator': initiator,\n+      'pc_config': json.dumps(pc_config),\n+      'pc_constraints': json.dumps(pc_constraints),\n+      'offer_constraints': json.dumps(offer_constraints),\n+      'media_constraints': json.dumps(media_constraints),\n+      'turn_url': turn_url,\n+      'stereo': stereo,\n+      'arbr': arbr,\n+      'asbr': asbr,\n+      'vrbr': vrbr,\n+      'vsbr': vsbr,\n+      'vsibr': vsibr,\n+      'audio_send_codec': audio_send_codec,\n+      'audio_receive_codec': audio_receive_codec\n+      'ssr': ssr,\n+      'include_vr_js': include_vr_js,\n+      'meta_viewport': meta_viewport,\n+    }\n+\n+    if response_type == 'json':\n+      content = json.dumps(params)\n     else:\n-      target_page = 'index.html'\n+      if unittest:\n+        target_page = 'test/test_' + unittest + '.html'\n+      else:\n+        target_page = 'index.html'\n+      template = jinja_environment.get_template(target_page)","path":"samples/web/content/apprtc/apprtc.py","position":88,"original_position":88,"commit_id":"513278e343db4fb8a52d82e9773c4df5031598b0","original_commit_id":"513278e343db4fb8a52d82e9773c4df5031598b0","user":{"login":"juberti","id":1821693,"avatar_url":"https://avatars.githubusercontent.com/u/1821693?","gravatar_id":"d6e46c1cb2ed0521f80303dbd5126673","url":"https://api.github.com/users/juberti","html_url":"https://github.com/juberti","followers_url":"https://api.github.com/users/juberti/followers","following_url":"https://api.github.com/users/juberti/following{/other_user}","gists_url":"https://api.github.com/users/juberti/gists{/gist_id}","starred_url":"https://api.github.com/users/juberti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juberti/subscriptions","organizations_url":"https://api.github.com/users/juberti/orgs","repos_url":"https://api.github.com/users/juberti/repos","events_url":"https://api.github.com/users/juberti/events{/privacy}","received_events_url":"https://api.github.com/users/juberti/received_events","type":"User","site_admin":false},"body":"doh, will update","created_at":"2014-06-04T20:43:37Z","updated_at":"2014-06-04T20:43:37Z","html_url":"https://github.com/GoogleChrome/webrtc/pull/64#discussion_r13409550","pull_request_url":"https://api.github.com/repos/GoogleChrome/webrtc/pulls/64","_links":{"self":{"href":"https://api.github.com/repos/GoogleChrome/webrtc/pulls/comments/13409550"},"html":{"href":"https://github.com/GoogleChrome/webrtc/pull/64#discussion_r13409550"},"pull_request":{"href":"https://api.github.com/repos/GoogleChrome/webrtc/pulls/64"}}}}