Home | Trees | Index | Help |
---|
|
object --+ | AttachmentStore --+ | FileAttachmentStore
An attachment store based on the file system.
The locations are the names of files in the file system.
|
|||
__init__(self,
root=None)
Construct a new 'FileAttachmentStore' |
|||
GetData(self,
location)
Return the data for an attachment. |
|||
GetDataFile(self,
location)
Return the path to a file containing the data for 'attachment'. |
|||
GetSize(self,
location)
Return the size of the data for an attachment. |
|||
Store(self,
attachment,
location)
Add an attachment to the store. |
|||
Remove(self,
location)
Remove an attachment. |
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
Construct a new 'FileAttachmentStore' 'root' -- If not 'None', the root directory for the store. All locations are relative to this directory. If 'None', all locations are relative to the current directory.
|
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.
|
Add an attachment to the store. 'attachment' -- The 'Attachment' to store. 'location' -- The location in which to store the 'attachment'.
|
Remove an attachment. 'location' -- The location whose data should be removed. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 3.0alpha2 on Fri Sep 28 00:57:30 2007 | http://epydoc.sf.net |