Module ImportFrom alias ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr attr body Raise Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore BoolOpOr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr CompareEq Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Num CompareNotEq AttributeLoad NameLoad attr Str body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr If CompareIs SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad body Assign NameStore Call NameLoad Assign NameStore Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Num orelse If Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore BinOpAdd AttributeLoad NameLoad attr Num orelse Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str Str NameLoad NameLoad Str NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad Str body Return AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Str Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad body Break Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad Num body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Num Return BoolOpOr NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword Dict Str Str Str Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list
N/A __future__ unicode_literals uuid uuid4 N/A os N/A subprocess django forms django.utils timezone djblets.util.filesystem is_exe_in_path reviewboard.attachments.models FileAttachment FileAttachmentHistory reviewboard.reviews.models ReviewRequestDraft FileAttachmentComment UploadFileForm N/A N/A forms Form N/A N/A A form that handles uploading of new files.

    A file takes a path argument and optionally a caption.
     N/A DEFAULT_MIMETYPE application/octet-stream N/A READ_BUF_SIZE 1024 N/A caption N/A N/A forms CharField required False N/A path N/A N/A forms FileField required True N/A attachment_history N/A N/A forms ModelChoiceField queryset N/A N/A N/A FileAttachmentHistory objects all required False __init__ N/A N/A self review_request N/A args kwargs N/A N/A Initialize the form. N/A N/A N/A N/A super UploadFileForm self __init__ args kwargs N/A N/A self review_request review_request N/A clean_attachment_history N/A N/A self N/A N/A N/A Validate that the specified file attachment history exists. N/A history N/A N/A self cleaned_data N/A attachment_history N/A N/A N/A history None N/A N/A N/A N/A N/A N/A N/A self review_request file_attachment_histories filter pk N/A history pk exists N/A N/A N/A N/A forms ValidationError The FileAttachmentHistory provided is not part of this review request. N/A history N/A create N/A N/A self filediff N/A None N/A N/A Create a FileAttachment based on this form. N/A file N/A N/A self files N/A path N/A caption N/A N/A N/A self cleaned_data N/A caption N/A file name N/A N/A N/A file content_type N/A N/A len N/A N/A N/A file content_type split / 2 N/A N/A file content_type application/octet-stream N/A N/A mimetype N/A file content_type N/A N/A mimetype N/A N/A self _guess_mimetype file N/A filename N/A %s__%s N/A N/A uuid4 N/A file name N/A N/A N/A N/A self cleaned_data N/A attachment_history None N/A N/A attachment_history N/A FileAttachmentHistory N/A attachment_revision 1 N/A N/A attachment_history display_position N/A N/A FileAttachmentHistory compute_next_display_position N/A self review_request N/A N/A N/A attachment_history save N/A N/A N/A N/A N/A self review_request file_attachment_histories add attachment_history N/A N/A attachment_history N/A N/A self cleaned_data N/A attachment_history N/A N/A N/A latest N/A N/A N/A attachment_history file_attachments latest N/A N/A N/A N/A FileAttachment DoesNotExist N/A N/A latest None N/A N/A latest None N/A N/A attachment_revision 1 N/A N/A N/A N/A N/A latest review_request exists N/A N/A attachment_revision N/A N/A latest attachment_revision 1 N/A N/A attachment_revision N/A latest attachment_revision N/A N/A N/A latest delete N/A attachment_kwargs N/A attachment_history attachment_revision caption draft_caption orig_filename mimetype attachment_history attachment_revision caption N/A N/A N/A os path basename N/A file name mimetype N/A filediff N/A N/A file_attachment N/A N/A N/A FileAttachment objects create_from_filediff filediff save False attachment_kwargs N/A N/A file_attachment N/A FileAttachment attachment_kwargs N/A N/A N/A N/A file_attachment file save filename file save True N/A draft N/A N/A ReviewRequestDraft create N/A self review_request N/A N/A N/A N/A draft file_attachments add file_attachment N/A N/A N/A draft save N/A file_attachment N/A _guess_mimetype N/A N/A self file N/A N/A N/A Guess the mimetype of an uploaded file.

        Uploaded files don't necessarily have valid mimetypes provided,
        so attempt to guess them when they're blank.

        This only works if `file` is in the path. If it's not, or guessing
        fails, we fall back to a mimetype of application/octet-stream.
         N/A N/A N/A is_exe_in_path file N/A N/A N/A self DEFAULT_MIMETYPE N/A p N/A N/A subprocess Popen N/A file --mime-type -b - stdout N/A subprocess PIPE stderr N/A subprocess PIPE stdin N/A subprocess PIPE N/A chunk N/A N/A file chunks N/A N/A N/A N/A N/A N/A N/A p stdin write chunk N/A N/A N/A IOError N/A N/A N/A N/A N/A N/A p stdin close N/A ret N/A N/A p wait N/A N/A ret 0 N/A N/A mimetype N/A N/A N/A N/A N/A p stdout read strip N/A N/A mimetype None N/A N/A N/A file seek 0 N/A N/A mimetype N/A self DEFAULT_MIMETYPE N/A N/A CommentFileForm N/A N/A forms Form N/A N/A A form that handles commenting on a file. N/A review N/A N/A forms CharField widget N/A N/A forms Textarea attrs N/A rows cols 8 70 create N/A N/A self file_attachment review_request N/A N/A N/A Create a FileAttachmentComment based on this form. N/A comment N/A FileAttachmentComment text N/A N/A self cleaned_data N/A review file_attachment file_attachment N/A N/A comment timestamp N/A N/A timezone now N/A N/A N/A comment save save True N/A draft N/A N/A ReviewRequestDraft create review_request N/A N/A N/A N/A draft file_attachment_comments add comment N/A N/A N/A draft save N/A comment N/A N/A