Functions
wg_invent_client::attachment_help Namespace Reference

Functions

def _encode_multipart_formdata
def build_request

Function Documentation

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.



wg_invent_client
Author(s): Scott Hassan, Kevin Watts
autogenerated on Sat Dec 28 2013 17:55:42