Back to index

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

List of all members.

Public Member Functions

def update
def portal_url
def render
def index

Public Attributes

 navigation_root_url
 logo_tag
 portal_title
 context
 request
 view
 manager
 portal_state
 site_url

Static Public Attributes

tuple index = ViewPageTemplateFile('logo.pt')

Detailed Description

Definition at line 125 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 128 of file common.py.

00128 
00129     def update(self):
00130         super(LogoViewlet, self).update()
00131 
00132         self.navigation_root_url = self.portal_state.navigation_root_url()
00133 
00134         portal = self.portal_state.portal()
00135         logoName = portal.restrictedTraverse('base_properties').logoName
00136         self.logo_tag = portal.restrictedTraverse(logoName).tag()
00137 
00138         self.portal_title = self.portal_state.portal_title()
00139 

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.LogoViewlet.index = ViewPageTemplateFile('logo.pt') [static]

Definition at line 126 of file common.py.

Definition at line 135 of file common.py.

Definition at line 29 of file common.py.

Definition at line 131 of file common.py.

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

Definition at line 38 of file common.py.

Definition at line 137 of file common.py.

Definition at line 27 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: