Back to index

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

List of all members.

Public Member Functions

def __init__
def portal_url
def update
def render
def index

Public Attributes

 context
 request
 view
 manager
 portal_state
 site_url

Private Attributes

 __parent__

Detailed Description

Base class with common functions for link viewlets.

Definition at line 18 of file common.py.


Constructor & Destructor Documentation

def plone.app.layout.viewlets.common.ViewletBase.__init__ (   self,
  context,
  request,
  view,
  manager 
)

Definition at line 23 of file common.py.

00023 
00024     def __init__(self, context, request, view, manager):
00025         super(ViewletBase, self).__init__(context, request)
00026         self.__parent__ = view
00027         self.context = context
00028         self.request = request
00029         self.view = view
00030         self.manager = manager

Here is the caller graph for this function:


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:


Member Data Documentation

Definition at line 25 of file common.py.

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 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: