Package email :: Package mime :: Module application :: Class MIMEApplication
[hide private]
[frames] | no frames]

_ClassType MIMEApplication

      message.Message --+        
                        |        
            base.MIMEBase --+    
                            |    
nonmultipart.MIMENonMultipart --+
                                |
                               MIMEApplication

Class for generating application/* MIME documents.

Instance Methods [hide private]
 
__init__(self, _data, _subtype='octet-stream', _encoder=<function encode_base64 at 0x41486fb4>, **_params)
Create an application/* type MIME document.

Inherited from nonmultipart.MIMENonMultipart: attach

Inherited from message.Message: __contains__, __delitem__, __getitem__, __len__, __setitem__, __str__, add_header, as_string, del_param, get, get_all, get_boundary, get_charset, get_charsets, get_content_charset, get_content_maintype, get_content_subtype, get_content_type, get_default_type, get_filename, get_param, get_params, get_payload, get_unixfrom, has_key, is_multipart, items, keys, replace_header, set_boundary, set_charset, set_default_type, set_param, set_payload, set_type, set_unixfrom, values

Inherited from message.Message (private): _get_params_preserve

Imports: walk


Method Details [hide private]

__init__(self, _data, _subtype='octet-stream', _encoder=<function encode_base64 at 0x41486fb4>, **_params)
(Constructor)

 

Create an application/* type MIME document.

_data is a string containing the raw applicatoin data.

_subtype is the MIME content type subtype, defaulting to 'octet-stream'.

_encoder is a function which will perform the actual encoding for transport of the application data, defaulting to base64 encoding.

Any additional keyword arguments are passed to the base class constructor, which turns them into parameters on the Content-Type header.

Overrides: message.Message.__init__