Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
plone.app.layout.viewlets.common.GlobalSectionsViewlet Class Reference
Inheritance diagram for plone.app.layout.viewlets.common.GlobalSectionsViewlet:
Inheritance graph
[legend]
Collaboration diagram for plone.app.layout.viewlets.common.GlobalSectionsViewlet:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def update
def portal_url
def render
def index

Public Attributes

 portal_tabs
 selected_tabs
 selected_portal_tab
 context
 request
 view
 manager
 portal_state
 site_url

Static Public Attributes

tuple index = ViewPageTemplateFile('sections.pt')

Detailed Description

Definition at line 140 of file common.py.


Member Function Documentation

Reimplemented in plone.app.layout.viewlets.common.TitleViewlet.

Definition at line 46 of file common.py.

00046 
00047     def index(self):
00048         raise NotImplementedError(
00049             '`index` method must be implemented by subclass.')
00050 

Here is the caller graph for this function:

Definition at line 33 of file common.py.

00033 
00034     def portal_url(self):
00035         return self.site_url
00036 

Reimplemented in plone.app.layout.presentation.presentation.PresentationViewlet.

Definition at line 42 of file common.py.

00042 
00043     def render(self):
00044         # defer to index method, because that's what gets overridden by the template ZCML attribute
00045         return self.index()
        

Here is the call graph for this function:

Reimplemented from plone.app.layout.viewlets.common.ViewletBase.

Definition at line 143 of file common.py.

00143 
00144     def update(self):
00145         context_state = getMultiAdapter((self.context, self.request),
00146                                         name=u'plone_context_state')
00147         actions = context_state.actions()
00148         portal_tabs_view = getMultiAdapter((self.context, self.request),
00149                                            name='portal_tabs_view')
00150         self.portal_tabs = portal_tabs_view.topLevelTabs(actions=actions)
00151 
00152         selectedTabs = self.context.restrictedTraverse('selectedTabs')
00153         self.selected_tabs = selectedTabs('index_html',
00154                                           self.context,
00155                                           self.portal_tabs)
00156         self.selected_portal_tab = self.selected_tabs['portal']
00157 

Here is the caller graph for this function:


Member Data Documentation

Definition at line 26 of file common.py.

tuple plone.app.layout.viewlets.common.GlobalSectionsViewlet.index = ViewPageTemplateFile('sections.pt') [static]

Definition at line 141 of file common.py.

Definition at line 29 of file common.py.

Reimplemented in plone.app.layout.viewlets.common.TitleViewlet.

Definition at line 38 of file common.py.

Definition at line 149 of file common.py.

Definition at line 27 of file common.py.

Definition at line 155 of file common.py.

Definition at line 152 of file common.py.

Definition at line 40 of file common.py.

Definition at line 28 of file common.py.


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