Skip to content

Instantly share code, notes, and snippets.

@luser
Forked from peterbe/symbolsproxyendpoint.py
Created January 27, 2016 16:42
Show Gist options
  • Save luser/05b827890bb3c62dda49 to your computer and use it in GitHub Desktop.
Save luser/05b827890bb3c62dda49 to your computer and use it in GitHub Desktop.
def get(request):
debug_id = request.get('debug_id')
debug_filename = request.get('debug_filename')
if might_be_on_msdn(debug_id, debug_filename):
symbol_from_msdn = fetch_from_msdn(debug_id, debug_filename)
if not symbol_from_msdn:
raise PageNotFound()
else:
new_s3_key = upload_to_symbols_m_o_S3(symbol_from_msd)
return PageOK(new_s3_key.absolute_url)
else:
raise PageNotFound()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment