Home | Trees | Indices | Help |
---|
|
An arbitrary file attachment.
Conceptually, an attachment is composed of these parts:
For efficiency reasons, the attachment data is not stored in the attachment. Instead, a *location* is stored, which is a key into the associated 'AttachmentStore' object.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
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 | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Dec 23 12:30:40 2011 | http://epydoc.sourceforge.net |