Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
plone.app.portlets.portlets.navigation.NavtreeStrategy Class Reference
Inheritance diagram for plone.app.portlets.portlets.navigation.NavtreeStrategy:
Inheritance graph
[legend]
Collaboration diagram for plone.app.portlets.portlets.navigation.NavtreeStrategy:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def subtreeFilter

Public Attributes

 bottomLevel
 rootPath

Detailed Description

The navtree strategy used for the default navigation portlet

Definition at line 295 of file navigation.py.


Constructor & Destructor Documentation

def plone.app.portlets.portlets.navigation.NavtreeStrategy.__init__ (   self,
  context,
  portlet 
)

Definition at line 301 of file navigation.py.

00301 
00302     def __init__(self, context, portlet):
00303         SitemapNavtreeStrategy.__init__(self, context, portlet)
00304         portal_properties = getToolByName(context, 'portal_properties')
00305         navtree_properties = getattr(portal_properties, 'navtree_properties')
00306         
00307         # XXX: We can't do this with a 'depth' query to EPI...
00308         self.bottomLevel = portlet.bottomLevel or navtree_properties.getProperty('bottomLevel', 0)
00309 
00310         currentFolderOnly = portlet.currentFolderOnly or navtree_properties.getProperty('currentFolderOnlyInNavtree', False)
00311         topLevel = portlet.topLevel or navtree_properties.getProperty('topLevel', 0)
00312         self.rootPath = getRootPath(context, currentFolderOnly, topLevel, portlet.root)

Here is the call graph for this function:

Here is the caller graph for this function:


Member Function Documentation

Definition at line 313 of file navigation.py.

00313 
00314     def subtreeFilter(self, node):
00315         sitemapDecision = SitemapNavtreeStrategy.subtreeFilter(self, node)
00316         if sitemapDecision == False:
00317             return False
00318         depth = node.get('depth', 0)
00319         if depth > 0 and self.bottomLevel > 0 and depth >= self.bottomLevel:
00320             return False
00321         else:
00322             return True
            

Member Data Documentation

Definition at line 307 of file navigation.py.

Definition at line 311 of file navigation.py.


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