Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Properties | Private Member Functions | Private Attributes
kss.core.kssview.KSSView Class Reference
Inheritance diagram for kss.core.kssview.KSSView:
Inheritance graph
Collaboration diagram for kss.core.kssview.KSSView:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def render
def cancelRedirect
def getCommands
def getCommandSet
def __before_publishing_traverse__
def getSiteManager
def setSiteManager

Public Attributes



 context = property(_get_context, _set_context)

Private Member Functions

def _initcommands
def _set_context
def _get_context

Private Attributes


Detailed Description

KSS view

This allows setting up the content of the response, and then
generate it out.

Definition at line 131 of file

Constructor & Destructor Documentation

def kss.core.kssview.KSSView.__init__ (   self,

Reimplemented from kss.core.kssview.SiteView.

Reimplemented in kss.core.kssview.AzaxBaseView.

Definition at line 139 of file

00140     def __init__(self, context, request):
00141         super(KSSView, self).__init__(context, request)
00142         self._initcommands()

Here is the call graph for this function:

Here is the caller graph for this function:

Member Function Documentation

def kss.core.kssview.SiteView.__before_publishing_traverse__ (   self,
) [inherited]

Definition at line 111 of file

00112     def __before_publishing_traverse__(self, obj, request):
00113         event.notify(BeforeTraverseEvent(self, request))

def kss.core.kssview.KSSView._get_context (   self) [private]

Definition at line 150 of file

00151     def _get_context(self):
        return self._context[0]
def kss.core.kssview.KSSView._initcommands (   self) [private]

Definition at line 143 of file

00144     def _initcommands(self):
00145         self.commands = KSSCommands()

Here is the caller graph for this function:

def kss.core.kssview.KSSView._set_context (   self,
) [private]

Definition at line 148 of file

00149     def _set_context(self, context):
        self._context = [context]

Definition at line 158 of file

00159     def cancelRedirect(self):
00160         if self.request.response.getStatus() in (302, 303):
00161             # Try to not redirect if requested
00162             self.request.response.setStatus(200)

Here is the caller graph for this function:

Definition at line 163 of file

00164     def getCommands(self):
00165         return self.commands

def kss.core.kssview.KSSView.getCommandSet (   self,

Definition at line 166 of file

00167     def getCommandSet(self, name):
00168         commandset = getRegisteredCommandSet(name)
00169         # return the adapted view
00170         return commandset.provides(self)

Here is the call graph for this function:

def kss.core.kssview.SiteView.getSiteManager (   self) [inherited]

Definition at line 116 of file

00117     def getSiteManager(self):
00118         return self._sitemanager

Views can use this to return their command set.

Definition at line 154 of file

00155     def render(self):
00156         """Views can use this to return their command set."""
00157         return self.commands.render(self.request)

def kss.core.kssview.SiteView.setSiteManager (   self,
) [inherited]

Definition at line 119 of file

00120     def setSiteManager(self, sm):
00121         raise TypeError("Site manager of SiteView can't be changed.")

Member Data Documentation

Definition at line 149 of file

Definition at line 144 of file

Property Documentation

Definition at line 152 of file

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