Did I find the right examples for you? yes no

All Samples(12)  |  Call(7)  |  Derive(0)  |  Import(5)
Encapsulate multipart form data.  To use this, make an instance and then
add parts to it via the two methods (field and file).  When done, you can
get the result via the get method.

See http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2 for
details on multipart/form-data.

Watch http://bugs.python.org/issue3244 to see if this is fixed in the
Python libraries.
(more...)

src/f/a/face_client-1.2.dev/face_client/face_client.py   face_client(Download)
        # Local file is provided, use multi-part form
        if 'file' in parameters:
            from multipart import Multipart
            form = Multipart()
 

src/p/y/python-face-client-HEAD/face_client/face_client.py   python-face-client(Download)
        # Local file is provided, use multi-part form
        if files:
            from multipart import Multipart
            form = Multipart()
 

src/a/u/automaticdj-HEAD/face_client/face_client.py   automaticdj(Download)
		# Local file is provided, use multi-part form
		if 'file' in parameters:
			from multipart import Multipart
			form = Multipart()
 

src/h/y/hydrus-HEAD/include/ClientConstants.py   hydrus(Download)
def GenerateDumpMultipartFormDataCTAndBody( fields ):
 
    m = multipart.Multipart()
 
    for ( name, type, value ) in fields:
def GenerateMultipartFormDataCTAndBodyFromDict( fields ):
 
    m = multipart.Multipart()
 
    for ( name, value ) in fields.items(): m.field( name, HC.b( value ) )

src/n/i/nike4all-HEAD/Runnerplus/uploader.py   nike4all(Download)
#Multipart is provided
#courtesy of http://stacyprowell.com/blog/2009/05/29/handling-multipartform-data-in-python/
from multipart import Multipart
 
import ClientCookie
                if self.isNewFile(fname):
 
                    m = Multipart()
                    m.field('public_run','checked')
                    m.field('MAX_FILE_SIZE','14000000')

src/t/u/TumblrThemeUpdater-HEAD/update.py   TumblrThemeUpdater(Download)
#!/bin/usr/env python
import httplib, mimetypes, mimetools, urllib2, cookielib, urllib
from multipart import Multipart
import re
import os
    customize_url = "http://www.tumblr.com/customize/%s" % blog_name
 
    m = Multipart()
    m.field("edit_tumblelog[custom_theme]", open(file_path, 'r').read())
    m.field("form_key", form_key)