Back to index

plone3  3.1.7
Public Member Functions | Private Member Functions
plone.app.layout.nextprevious.view.NextPreviousView Class Reference
Inheritance diagram for plone.app.layout.nextprevious.view.NextPreviousView:
Inheritance graph
[legend]
Collaboration diagram for plone.app.layout.nextprevious.view.NextPreviousView:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def next
def previous
def enabled
def isViewTemplate

Private Member Functions

def _provider

Detailed Description

Information about next/previous navigation

Definition at line 12 of file view.py.


Member Function Documentation

Definition at line 38 of file view.py.

00038 
00039     def _provider(self):
00040         # Note - the next/previous provider is the container of this object!
00041         # This may not support next/previous navigation, so code defensively
00042         return INextPreviousProvider(aq_parent(aq_inner(self.context)), None)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 31 of file view.py.

00031 
00032     def enabled(self):
00033         provider = self._provider()
00034         if provider is None:
00035             return False
00036         return provider.enabled

Here is the call graph for this function:

Definition at line 44 of file view.py.

00044 
00045     def isViewTemplate(self):
00046         plone = getMultiAdapter((self.context, self.request), name=u'plone_context_state')
00047         return plone.is_view_template()
00048 

Here is the call graph for this function:

Definition at line 17 of file view.py.

00017 
00018     def next(self):
00019         provider = self._provider()
00020         if provider is None:
00021             return None
00022         return provider.getNextItem(aq_inner(self.context))
    

Here is the call graph for this function:

Definition at line 24 of file view.py.

00024 
00025     def previous(self):
00026         provider = self._provider()
00027         if provider is None:
00028             return None
00029         return provider.getPreviousItem(aq_inner(self.context))

Here is the call graph for this function:


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