Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Private Attributes
plone.app.portlets.portlets.base.Renderer Class Reference
Inheritance diagram for plone.app.portlets.portlets.base.Renderer:
Inheritance graph
[legend]
Collaboration diagram for plone.app.portlets.portlets.base.Renderer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def update
def render
def available

Public Attributes

 context
 request
 view
 manager
 data

Private Attributes

 __parent__

Detailed Description

Base class for portlet renderers.

You must override render() to return a string to render. One way of 
doing this is to write:

    from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
    ...
    render = ViewPageTemplateFile('mytemplate.pt')
    
This will render the template mytemplate.pt, found in the same directory
as your source code file.

Definition at line 58 of file base.py.


Constructor & Destructor Documentation

def plone.app.portlets.portlets.base.Renderer.__init__ (   self,
  context,
  request,
  view,
  manager,
  data 
)

Reimplemented in plone.app.portlets.portlets.navigation.Renderer, plone.app.portlets.portlets.calendar.Renderer, plone.app.portlets.portlets.search.Renderer, plone.app.portlets.portlets.classic.Renderer, plone.app.portlets.portlets.login.Renderer, and plone.app.portlets.portlets.language.Renderer.

Definition at line 74 of file base.py.

00074 
00075     def __init__(self, context, request, view, manager, data):
00076         self.context = context
00077         self.request = request
00078         self.view = view
00079         self.__parent__ = view
00080         self.manager = manager
00081         self.data = data

Here is the caller graph for this function:


Member Function Documentation

Reimplemented in plone.app.portlets.portlets.navigation.Renderer, plone.app.portlets.portlets.base.DeferredRenderer, plone.app.portlets.portlets.calendar.Renderer, plone.app.portlets.portlets.events.Renderer, plone.app.portlets.portlets.recent.Renderer, and plone.app.portlets.portlets.news.Renderer.

Definition at line 85 of file base.py.

00085 
00086     def render(self):
00087         raise NotImplementedError("You must implement 'render' as a method "
00088                                   "or page template file attribute")


Member Data Documentation

Definition at line 78 of file base.py.

Reimplemented in plone.app.portlets.portlets.classic.Renderer.

Definition at line 75 of file base.py.

Reimplemented in plone.app.portlets.portlets.classic.Renderer.

Definition at line 80 of file base.py.

Definition at line 79 of file base.py.

Definition at line 76 of file base.py.

Definition at line 77 of file base.py.


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