Back to index

plone3  3.1.7
Classes | Functions | Variables
CMFPlone.browser.navigation Namespace Reference

Classes

class  CatalogNavigationTree
class  CatalogSiteMap
class  CatalogNavigationTabs
class  CatalogNavigationBreadcrumbs
class  PhysicalNavigationBreadcrumbs
class  RootPhysicalNavigationBreadcrumbs

Functions

def get_url
def get_id
def get_view_url

Variables

string DefaultPage = 'plone.app.layout.navigation.defaultpage:DefaultPage'

Function Documentation

Definition at line 44 of file navigation.py.

00044 
00045 def get_id(item):
00046     getId = getattr(item, 'getId')
00047     if not utils.safe_callable(getId):
00048         # Looks like a brain
00049         return getId
00050     return getId()

Here is the caller graph for this function:

Definition at line 38 of file navigation.py.

00038 
00039 def get_url(item):
00040     if hasattr(aq_base(item), 'getURL'):
00041         # Looks like a brain
00042         return item.getURL()
00043     return item.absolute_url()

Here is the caller graph for this function:

Definition at line 51 of file navigation.py.

00051 
00052 def get_view_url(context):
00053     props = getToolByName(context, 'portal_properties')
00054     stp = props.site_properties
00055     view_action_types = stp.getProperty('typesUseViewActionInListings', ())
00056 
00057     item_url = get_url(context)
00058     name = get_id(context)
00059 
00060     if context.portal_type in view_action_types:
00061         item_url += '/view'
00062         name += '/view'
00063 
00064     return name, item_url

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

string CMFPlone.browser.navigation.DefaultPage = 'plone.app.layout.navigation.defaultpage:DefaultPage'

Definition at line 32 of file navigation.py.