Table of Contents

Class: TemporaryAttachmentStore qm/attachment.py

Temporary storage for attachment data.

A TemporaryAttachmentStore stores attachment data in a temporary location, for up to the lifetime of the running program. When the program ends, all temporarily stored attachment data is deleted.

A data object in the temporary store is identified by its location. Locations should be generated by make_temporary_location.

Base Classes   
FileAttachmentStore
Methods   
HandleUploadRequest
__init__
  HandleUploadRequest 
HandleUploadRequest ( self,  request )

Handle a web request to upload attachment data.

Store the attachment data contained in the request as a temporary attachment. It is assumed that the request is being submitted from a popup upload browser window, so the returned HTML page instructs the window to close itself.

request
A WebRequest object.
returns
HTML text of a page that instructs the browser window to close.
  __init__ 
__init__ ( self )

Construct a temporary attachment store.

The store is initially empty.


Table of Contents

This document was automatically generated on Mon Jan 3 09:42:29 2005 by HappyDoc version 2.1