| Home | Trees | Index | Help |
|---|
| Package qm :: Module attachment :: Class Attachment |
|
An arbitrary file attachment.
Conceptually, an attachment is composed of these parts:| Method Summary | |
|---|---|
Create a new attachment. | |
__cmp__(self,
other)
| |
__str__(self)
| |
Get attachment data. | |
Return the path to a file containing attachment data. | |
Return the attachment's description. | |
Return the attachment's file name. | |
Return the attachment's location in an attachment store. | |
Return the attachment's MIME type. | |
Return the store in which this attachment is located. | |
Move the 'Attachment' to a new location. | |
| Method Details |
|---|
__init__(self,
mime_type,
description,
file_name,
location,
store)
|
GetData(self)Get attachment data. returns -- The attachment data. |
GetDataFile(self)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. |
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. |
GetMimeType(self)Return the attachment's MIME type. |
GetStore(self)Return the store in which this attachment is located. returns -- The 'AttachmentStore' that contains this attachment. |
Move(self, store, location)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 2.1 on Thu Sep 27 15:49:01 2007 | http://epydoc.sf.net |