Back to index

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

List of all members.

Public Member Functions

def update
def index
def portal_url
def render

Public Attributes

 portal_state
 context_state
 page_title
 portal_title
 context
 request
 view
 manager
 site_url

Detailed Description

Definition at line 51 of file common.py.


Member Function Documentation

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

Definition at line 61 of file common.py.

00061 
00062     def index(self):
00063         portal_title = safe_unicode(self.portal_title())
00064         page_title = safe_unicode(self.page_title())
00065         if page_title == portal_title:
00066             return u"<title>%s</title>" % (escape(portal_title))
00067         else:
00068             return u"<title>%s &mdash; %s</title>" % (
00069                 escape(safe_unicode(page_title)),
00070                 escape(safe_unicode(portal_title)))
00071 

Here is the call graph for this function:

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 53 of file common.py.

00053 
00054     def update(self):
00055         self.portal_state = getMultiAdapter((self.context, self.request),
00056                                             name=u'plone_portal_state')
00057         self.context_state = getMultiAdapter((self.context, self.request),
00058                                              name=u'plone_context_state')
00059         self.page_title = self.context_state.object_title
00060         self.portal_title = self.portal_state.portal_title

Here is the caller graph for this function:


Member Data Documentation

Definition at line 26 of file common.py.

Definition at line 56 of file common.py.

Definition at line 29 of file common.py.

Definition at line 58 of file common.py.

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

Definition at line 54 of file common.py.

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