Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias Assign NameStore ListLoad Str Str Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareNotIn NameLoad NameLoad body Assign NameStore Call NameLoad Str Return Call NameLoad Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call NameLoad Str Return Call NameLoad Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Call NameLoad Call AttributeLoad NameLoad attr Dict Str Str Str SubscriptLoad AttributeLoad NameLoad attr Index Num If BoolOpAnd Call NameLoad NameLoad NameLoad CompareIn Str NameLoad body Return Call NameLoad Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad Assign NameStore Call NameLoad Str Return Call NameLoad Call AttributeLoad NameLoad attr Dict Str Str Str Str NameLoad NameLoad decorator_list NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Str Return Call NameLoad Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Str Return Call NameLoad Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad If UnaryOpNot BoolOpOr CompareEq NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad Str Return Call NameLoad Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Return Call NameLoad Call AttributeLoad NameLoad attr Dict Str Str decorator_list NameLoad NameLoad
N/A N/A json django.core.exceptions ObjectDoesNotExist django.db.models get_model django.http HttpResponse HttpResponseNotFound HttpResponseBadRequest HttpResponseForbidden django.utils.translation ugettext _ django.views.decorators.clickjacking xframe_options_sameorigin django.views.decorators.http require_POST kitsune.access.decorators login_required kitsune.upload.models ImageAttachment kitsune.upload.utils upload_imageattachment FileTooLargeError N/A ALLOWED_MODELS N/A questions.Question questions.Answer auth.User up_image_async N/A N/A request model_name object_pk N/A N/A N/A Upload all images in request.FILES. N/A N/A model_name ALLOWED_MODELS N/A N/A message N/A _ Model not allowed. N/A N/A HttpResponseBadRequest N/A N/A json dumps N/A status message error message N/A m N/A get_model N/A N/A model_name split . N/A N/A N/A obj N/A N/A N/A m objects get pk object_pk N/A N/A N/A ObjectDoesNotExist N/A N/A message N/A _ Object does not exist. N/A N/A HttpResponseNotFound N/A N/A json dumps N/A status message error message N/A N/A N/A file_info N/A upload_imageattachment request obj N/A N/A N/A FileTooLargeError N/A e N/A N/A N/A HttpResponseBadRequest N/A N/A json dumps N/A status message error N/A N/A e args N/A 0 N/A N/A N/A isinstance file_info dict N/A thumbnail_url file_info N/A N/A N/A HttpResponse N/A N/A json dumps N/A status file success file_info N/A message N/A _ Invalid or no image received. N/A N/A HttpResponseBadRequest N/A N/A json dumps N/A status message errors error message file_info N/A login_required require_POST xframe_options_sameorigin del_image_async N/A N/A request image_id N/A N/A N/A Delete an image given its object id. N/A user N/A request user N/A N/A N/A N/A user is_authenticated N/A N/A message N/A _ You are not logged in. N/A N/A HttpResponseForbidden N/A N/A json dumps N/A status message error message N/A N/A N/A image N/A N/A N/A ImageAttachment objects get pk image_id N/A N/A N/A N/A ImageAttachment DoesNotExist N/A N/A message N/A _ The requested image could not be found. N/A N/A HttpResponseNotFound N/A N/A json dumps N/A status message error message N/A N/A N/A N/A user N/A image creator N/A N/A user has_perm upload.delete_imageattachment N/A N/A message N/A _ You do not have permission to do that. N/A N/A HttpResponseForbidden N/A N/A json dumps N/A status message error message N/A N/A N/A N/A image file delete N/A N/A image thumbnail N/A N/A N/A N/A N/A image thumbnail delete N/A N/A N/A image delete N/A N/A HttpResponse N/A N/A json dumps N/A status success N/A require_POST xframe_options_sameorigin