Back to index

plone3  3.1.7
Public Member Functions | Private Attributes | Static Private Attributes
Archetypes.BaseObject.Wrapper Class Reference
Inheritance diagram for Archetypes.BaseObject.Wrapper:
Inheritance graph
[legend]
Collaboration diagram for Archetypes.BaseObject.Wrapper:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __call__

Private Attributes

 _data
 _filename
 _mimetype

Static Private Attributes

int __allow_access_to_unprotected_subobjects__ = 1

Detailed Description

Wrapper object for access to sub objects.

Definition at line 1155 of file BaseObject.py.


Constructor & Destructor Documentation

def Archetypes.BaseObject.Wrapper.__init__ (   self,
  data,
  filename,
  mimetype 
)

Definition at line 1159 of file BaseObject.py.

01159 
01160     def __init__(self, data, filename, mimetype):
01161         self._data = data
01162         self._filename = filename
01163         self._mimetype = mimetype

Here is the caller graph for this function:


Member Function Documentation

def Archetypes.BaseObject.Wrapper.__call__ (   self,
  REQUEST = None,
  RESPONSE = None 
)

Definition at line 1164 of file BaseObject.py.

01164 
01165     def __call__(self, REQUEST=None, RESPONSE=None):
01166         if RESPONSE is None:
01167             RESPONSE = REQUEST.RESPONSE
01168         if RESPONSE is not None:
01169             mt = self._mimetype
01170             name = self._filename
01171             RESPONSE.setHeader('Content-type', str(mt))
01172             RESPONSE.setHeader('Content-Disposition',
01173                                'inline;filename=%s' % name)
01174             RESPONSE.setHeader('Content-Length', len(self._data))
01175         return self._data

Here is the caller graph for this function:


Member Data Documentation

Definition at line 1157 of file BaseObject.py.

Definition at line 1160 of file BaseObject.py.

Definition at line 1161 of file BaseObject.py.

Definition at line 1162 of file BaseObject.py.


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