Home | Trees | Indices | Help |
|
---|
|
This class represents a data entry in the MMS body.
A DataPart objectencapsulates any data content that is to be added to the MMS (e.g. an image file, raw image data, audio clips, text, etc).
A DataPart object can be queried using the Python built-in
len()
function.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
contentType Returns the string representation of this data part's "Content-Type" header. |
|||
data A buffer containing the binary data of this part |
|
|
Returns the string representation of this data part's
"Content-Type" header. No parameter information is returned; to
get that, access the "Content-Type" header directly (which has
a tuple value)from this part's |
Note: This function clears any previously-set header entries. |
Note: This function clears any previously-set header entries. |
Convenience wrapper method for setData() This method sets the DataPart object to hold the specified text string, with MIME content type "text/plain".
|
|
contentTypeReturns the string representation of this data part's
"Content-Type" header. No parameter information is returned; to
get that, access the "Content-Type" header directly (which has
a tuple value)from this part's
|
dataA buffer containing the binary data of this part
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Mon Jul 23 15:15:29 2007 | http://epydoc.sourceforge.net |