Home | Trees | Indices | Help |
---|
|
object --+ | AttachmentStore
Interface for classes which store attachment data.
An attachment store stores the raw data for an attachment. The store is not responsible for storing auxiliary information, including the attachment's description, file name, or MIME type.
Users of an 'AttachmentStore' reference attachment data by a *location*, which is stored with the attachment.
Please note that the 'AttachmentStore' interface provides methods for retrieving attachment data only; not for storing it. The interface for storing may be defined in any way by implementations.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
Return the data for an attachment. returns -- A string containing the attachment data. |
Return the path to a file containing the data for 'attachment'. returns -- A file system path. The file is read-only, and may be a temporary file. The caller should not modify the file in any way. |
Return the size of the data for an attachment. returns -- The length of the attachment data, in bytes. This method may be overridden by derived classes. |
Handle a web request to download attachment data. 'request' -- A 'WebRequest' object. The location of the attachment data is stored in the 'location' property, and the MIME type in the 'mime_type' property. returns -- A pair '(mime_type, data)' where 'mime_type' is the MIME type stored in the request and 'data' is the contents of the attachment. |
Add an attachment to the store. 'attachment' -- The 'Attachment' to store. 'location' -- The location in which to store the 'attachment'. |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Dec 23 12:30:40 2011 | http://epydoc.sourceforge.net |