comparison gpp/oembed/views.py @ 287:47a7138fcccb

Fix typo in oembed/views.py. Added oembed provider fixture.
author Brian Neal <bgneal@gmail.com>
date Sat, 23 Oct 2010 20:42:45 +0000
parents 72fd300685d5
children 6d6fdc58487c
comparison
equal deleted inserted replaced
286:72fd300685d5 287:47a7138fcccb
60 60
61 data = dict(id=oembed.id, embed=oembed.html) 61 data = dict(id=oembed.id, embed=oembed.html)
62 return HttpResponse(json.dumps(data), 62 return HttpResponse(json.dumps(data),
63 content_type='application/json') 63 content_type='application/json')
64 64
65 return HttpBadRequest("Sorry, we couldn't find that video.") 65 return HttpResponseBadRequest("Sorry, we couldn't find that video.")
66 66
67 67
68 def fetch_saved_media(request): 68 def fetch_saved_media(request):
69 """ 69 """
70 This view returns the HTML embed information for previously saved Oembed 70 This view returns the HTML embed information for previously saved Oembed