Functions | |
def | _encode_multipart_formdata |
def | build_request |
def wg_invent_client.attachment_help._encode_multipart_formdata | ( | fields, | |
files, | |||
BOUNDARY = '-----'+mimetools.choose_boundary()+'-----' |
|||
) | [private] |
-------------------------------------------------------------
Encodes fields and files for uploading. fields is a sequence of (name, value) elements for regular form fields - or a dictionary. files is a sequence of (name, filename, value) elements for data to be uploaded as files. Return (content_type, body) ready for urllib2.Request instance You can optionally pass in a boundary string to use or we'll let mimetools provide one.
Definition at line 48 of file attachment_help.py.
def wg_invent_client.attachment_help.build_request | ( | theurl, | |
fields, | |||
files, | |||
txheaders = None |
|||
) |
Definition at line 90 of file attachment_help.py.