Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
PluggableAuthService.PluggableAuthService.ResponseCleanup Class Reference

List of all members.

Public Member Functions

def __init__
def __del__

Public Attributes

 resp

Detailed Description

Definition at line 1132 of file PluggableAuthService.py.


Constructor & Destructor Documentation

Definition at line 1133 of file PluggableAuthService.py.

01133 
01134     def __init__(self, resp):
01135         self.resp = resp

Definition at line 1136 of file PluggableAuthService.py.

01136 
01137     def __del__(self):
01138         # Free the references.
01139         #
01140         # No errors of any sort may propagate, and we don't care *what*
01141         # they are, even to log them.
01142         stack = getattr(self.resp, '_unauthorized_stack', [])
01143         old = None
01144 
01145         while stack:
01146             old = stack.pop()
01147 
01148         if old is not None:
01149             self.resp._unauthorized = old
01150         else:
01151             try:
01152                 del self.resp._unauthorized
01153             except:
01154                 pass
01155 
01156         try:
01157             del self.resp
01158         except:
01159             pass


Member Data Documentation

Definition at line 1134 of file PluggableAuthService.py.


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