Skip to content

Instantly share code, notes, and snippets.

@peterbe
Created January 27, 2016 16:40
Show Gist options
  • Save peterbe/0512765697bd7735c57c to your computer and use it in GitHub Desktop.
Save peterbe/0512765697bd7735c57c 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