Back to index

moin  1.9.0~rc2
Public Member Functions | Static Public Attributes Class Reference
Collaboration diagram for
Collaboration graph

List of all members.

Public Member Functions

def __call__

Static Public Attributes

string default_mimetype = 'text/html'

Detailed Description

A subclass of base response which sets the default mimetype to text/html.
It the `Request` that came in is using Werkzeug sessions, this class
takes care of saving that session.

Definition at line 65 of file

Member Function Documentation

def (   self,

Definition at line 73 of file

00074     def __call__(self, environ, start_response):
00075         # get the request object
00076         request = environ['werkzeug.request']
00078         if request.session_store is not None:
00079             # save the session if neccessary
00080             request.session_store.save_if_modified(request.session)
00082             # set the cookie for the browser if it is not there:
00083             if request.cookie_name not in request.cookies:
00084                 self.set_cookie(request.cookie_name, request.session.sid)
00086         # go on with normal response business
00087         return ResponseBase.__call__(self, environ, start_response)

Here is the call graph for this function:

Member Data Documentation

Definition at line 71 of file

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