Package bioMoby :: Package webservice :: Module Invocators :: Class CGIPostMInvocator
[show private | hide private]
[frames | no frames]

Class CGIPostMInvocator

GeneralInvocator --+
                   |
                  CGIPostMInvocator


Functions for multipart post Directly taken from http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/146306 Invokes a CGI script in Post multipart
Method Summary
  __init__(self, queryKey, command, userdir, timeout)
a command argument shall contain URL, fields and filelist
  encode_multipart_formdata(self)
fields is a sequence of (name, value) elements for regular form fields.
  execute(self)
  get_content_type(self, filename)
  post_multipart(self, host, selector)
Post fields and files to an http host as multipart/form-data.
  posturl(self)
    Inherited from GeneralInvocator
  getResults(self)

Method Details

__init__(self, queryKey, command, userdir='/tmp', timeout=None)
(Constructor)

a command argument shall contain URL, fields and filelist
Overrides:
bioMoby.webservice.Invocators.GeneralInvocator.__init__

encode_multipart_formdata(self)

fields is a sequence of (name, value) elements for regular form fields. files is a sequence of (name, filename, value) elements for data to be uploaded as files Return (content_type, body) ready for httplib.HTTP instance

post_multipart(self, host, selector)

Post fields and files to an http host as multipart/form-data. fields is a sequence of (name, value) elements for regular form fields. files is a sequence of (name, filename, value) elements for data to be uploaded as files Return the server's response page.

Generated by Epydoc 2.1 on Wed Nov 3 17:06:09 2004 http://epydoc.sf.net