Logo Search packages:      
Sourcecode: paste version File versions  Download package

paste::httpheaders::_ContentDisposition Class Reference

Inheritance diagram for paste::httpheaders::_ContentDisposition:

paste::httpheaders::_SingleValueHeader paste::httpheaders::HTTPHeader

List of all members.


Detailed Description

Content-Disposition, RFC 2183 (use ``CONTENT_DISPOSITION``)

This header can be constructed (using keyword arguments),
by first specifying one of the following mechanisms:

  ``attachment``

      if True, this specifies that the content should not be
      shown in the browser and should be handled externally,
      even if the browser could render the content

  ``inline``

     exclusive with attachment; indicates that the content
     should be rendered in the browser if possible, but
     otherwise it should be handled externally

Only one of the above 2 may be True.  If both are None, then
the disposition is assumed to be an ``attachment``. These are
distinct fields since support for field enumeration may be
added in the future.

  ``filename``

      the filename parameter, if any, to be reported; if
      this is None, then the current object's filename
      attribute is used

The usage of ``apply()`` on this header has side-effects. If
filename is provided, and Content-Type is not set or is
'application/octet-stream', then the mimetypes.guess is used to
upgrade the Content-Type setting.

Definition at line 797 of file httpheaders.py.


Public Member Functions

def __call__
def __lt__
def __new__
def __repr__
def __str__
def apply
def compose
def delete
def parse
def tuples
def update
def values

Public Attributes

 category
 name
 reference
 sort_order
 version

Static Public Attributes

string category = 'general'
dictionary extensions = {}
string reference = ''
string version = '1.1'

Private Member Functions

def _compose

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index