Back to index

moin  1.9.0~rc2
Public Member Functions
fckoutput.BaseHttpMixin Class Reference
Inheritance diagram for fckoutput.BaseHttpMixin:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def setHttpHeaders

Detailed Description

Definition at line 49 of file fckoutput.py.


Member Function Documentation

def fckoutput.BaseHttpMixin.setHttpHeaders (   self,
  content_type = 'text/xml' 
)

Definition at line 50 of file fckoutput.py.

00050 
00051        def setHttpHeaders(self, content_type='text/xml'):
00052               "Purpose: to prepare the headers for the xml to return"
00053               # Prevent the browser from caching the result.
00054               # Date in the past
00055               self.setHeader('Expires','Mon, 26 Jul 1997 05:00:00 GMT')
00056               # always modified
00057               self.setHeader('Last-Modified',strftime("%a, %d %b %Y %H:%M:%S GMT", gmtime()))
00058               # HTTP/1.1
00059               self.setHeader('Cache-Control','no-store, no-cache, must-revalidate')
00060               self.setHeader('Cache-Control','post-check=0, pre-check=0')
00061               # HTTP/1.0
00062               self.setHeader('Pragma','no-cache')
00063 
00064               # Set the response format.
00065               self.setHeader( 'Content-Type', content_type + '; charset=utf-8' )
00066               return

Here is the call graph for this function:

Here is the caller graph for this function:


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