Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
plone.app.layout.presentation.presentation.PresentationViewlet Class Reference
Inheritance diagram for plone.app.layout.presentation.presentation.PresentationViewlet:
Inheritance graph
[legend]
Collaboration diagram for plone.app.layout.presentation.presentation.PresentationViewlet:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def update
def render
def portal_url
def index

Public Attributes

 presentation_enabled
 context
 request
 view
 manager
 portal_state
 site_url

Detailed Description

Definition at line 85 of file presentation.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 from plone.app.layout.viewlets.common.ViewletBase.

Definition at line 96 of file presentation.py.

00096 
00097     def render(self):
00098         if self.presentation_enabled:
00099             url = "%s/presentation_view" % self.context.absolute_url()
00100             msg = _(u'Also available in presentation mode\u2026')
00101             msg = translate(msg, domain='plone', context=self.request)
00102             return u'<p id="link-presentation"><a href="%s" rel="nofollow" class="link-presentation">%s</a></p>' % (url, msg)
00103         return u''

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

Definition at line 86 of file presentation.py.

00086 
00087     def update(self):
00088         getPresentation = getattr(self.context.aq_base, "getPresentation", None)
00089         self.presentation_enabled = False
00090         if getPresentation is not None:
00091             try:
00092                 self.presentation_enabled = getPresentation()
00093             except KeyError:
00094                 # schema not updated yet
00095                 self.presentation_enabled = False

Here is the caller graph for this function:


Member Data Documentation

Definition at line 26 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 88 of file presentation.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: