Back to index

plone3  3.1.7
Classes | Functions
plone.app.kss.content_replacer Namespace Reference

Classes

class  Acquirer
class  ContentView
class  ContentMenuView

Functions

def acquirerFactory
def getCurrentContext

Function Documentation

Definition at line 30 of file content_replacer.py.

00030 
00031 def acquirerFactory(context):
00032     return context.aq_chain[0].__of__(Acquirer().__of__(aq_parent(context)))

Here is the caller graph for this function:

Check if context is default page in folder and/or portal

Definition at line 33 of file content_replacer.py.

00033 
00034 def getCurrentContext(context):
00035     """ Check if context is default page in folder and/or portal
00036     """
00037     # check if context is default page
00038     context = aq_inner(context)
00039     context_state = context.restrictedTraverse('@@plone_context_state')
00040     portal = getToolByName(context, 'portal_url').getPortalObject()
00041     if context_state.is_default_page() and context != portal:
00042         context = aq_parent(context)
00043     return context
00044 

Here is the call graph for this function:

Here is the caller graph for this function: