Back to index

plone3  3.1.7
Functions
kss.core.ttwapi Namespace Reference

Functions

def startKSSCommands
def getKSSCommandSet
def renderKSSCommands
def retrieveView

Function Documentation

Definition at line 17 of file ttwapi.py.

00017 
00018 def getKSSCommandSet(name):
00019     view = retrieveView()
00020     cs = view.getCommandSet(name)
00021     return cs

Here is the call graph for this function:

Definition at line 22 of file ttwapi.py.

00022 
00023 def renderKSSCommands():
00024     view = retrieveView()
00025     return view.render()

Here is the call graph for this function:

Definition at line 26 of file ttwapi.py.

00026 
00027 def retrieveView():
00028     #because the view registers itself as a site,
00029     #we can retrieve it...
00030     site = getSite()
00031     if not IKSSView.providedBy(site):
00032         raise LookupError(
00033             "You haven't initialized the KSS response yet, "
00034             "do so by calling startKSSCommands(context, request).")
00035     return site
00036 
00037 

Here is the caller graph for this function:

def kss.core.ttwapi.startKSSCommands (   context,
  request 
)

Definition at line 9 of file ttwapi.py.

00009 
00010 def startKSSCommands(context, request):
00011     view = KSSView(context, request)
00012     # Alec suggested we should fire the BeforeTraverseEvent, but after
00013     # debugging for a while I stopped caring about the event and think
00014     # that setSite() is the only thing we're interested in.
00015     setSite(view)
00016     return view