Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
kss.core.browserview.KSSBrowserView Class Reference
Inheritance diagram for kss.core.browserview.KSSBrowserView:
Inheritance graph
Collaboration diagram for kss.core.browserview.KSSBrowserView:
Collaboration graph

List of all members.

Public Member Functions

def attach_error
def attach_payload

Static Public Attributes

tuple render_error = PageTemplateFile('browser/')

Detailed Description

Definition at line 27 of file

Member Function Documentation

def kss.core.browserview.KSSBrowserView.attach_error (   self,

Definition at line 33 of file

00034     def attach_error(self, err_type, err_value):
00035         'Attach the error payload on the response'
00036         message = '%s: %s' % (err_type, err_value)
00037         message = cgi.escape(message)
00038         payload = self.render_error(type='system', message=message)
00039         self.attach_payload(payload)

Here is the call graph for this function:

def kss.core.browserview.KSSBrowserView.attach_payload (   self,
  header_name = 'X-KSSCOMMANDS' 

Definition at line 40 of file

00041     def attach_payload(self, payload, header_name='X-KSSCOMMANDS'):
00042         'Attach the commands on the response'
00043         # get rid of newlines
00044         payload = payload.replace('\n', ' ')
00045         self.request.response.setHeader(header_name, payload)
00047 # coherent naming KSS 
# deprecate Kss

Here is the caller graph for this function:

Member Data Documentation

tuple kss.core.browserview.KSSBrowserView.render_error = PageTemplateFile('browser/') [static]

Definition at line 31 of file

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