| Home | Trees | Index | Help |
|---|
|
|
An arbitrary file attachment.
Conceptually, an attachment is composed of these parts:
|
|||
|
__init__(self,
mime_type,
description,
file_name,
location,
store)
Create a new attachment. |
|||
|
GetMimeType(self)
Return the attachment's MIME type. |
|||
|
GetDescription(self)
Return the attachment's description. |
|||
|
GetFileName(self)
Return the attachment's file name. |
|||
|
GetLocation(self)
Return the attachment's location in an attachment store. |
|||
|
GetData(self)
Get attachment data. |
|||
|
GetDataFile(self)
Return the path to a file containing attachment data. |
|||
|
GetStore(self)
Return the store in which this attachment is located. |
|||
|
Move(self,
store,
location)
Move the 'Attachment' to a new location. |
|||
| __str__(self) | |||
| __cmp__(self, other) | |||
|
|||
Create a new attachment. 'mime_type' -- The MIME type. If 'None' or an empty string, the function attempts to guess the MIME type from other information. 'description' -- A description of the attachment contents. 'file_name' -- The user-visible file name to associate the attachment. 'location' -- The location in an attachment store at which to find the attachment data. 'store' -- The attachment store in which the data is stored. |
|
|
|
|
Get attachment data. returns -- The attachment data. |
Return the path to a file containing attachment data. returns -- A file system path. The file should be considered read-only, and should not be modified in any way. |
Return the store in which this attachment is located. returns -- The 'AttachmentStore' that contains this attachment. |
Move the 'Attachment' to a new location. 'store' -- The 'AttachmentStore' that will contain the attachment. 'location' -- The location of the attachment within its current store. |
|
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 3.0alpha2 on Fri Sep 28 00:57:30 2007 | http://epydoc.sf.net |