Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
plone.portlet.static.static.Renderer Class Reference

List of all members.

Public Member Functions

def available
def css_class
def has_link
def has_footer

Static Public Attributes

tuple render = ViewPageTemplateFile('static.pt')

Detailed Description

Portlet renderer.

This is registered in configure.zcml. The referenced page template is
rendered, and the implicit variable 'view' will refer to an instance
of this class. Other methods can be added and referenced in the template.

Definition at line 95 of file static.py.


Member Function Documentation

Definition at line 106 of file static.py.

00106 
00107     def available(self):
00108         return not self.data.hide

Generate a CSS class from the portlet header

Definition at line 109 of file static.py.

00109 
00110     def css_class(self):
00111         """Generate a CSS class from the portlet header
00112         """
00113         header = self.data.header
00114         normalizer = getUtility(IIDNormalizer)
00115         return "portlet-static-%s" % normalizer.normalize(header)

Definition at line 119 of file static.py.

00119 
00120     def has_footer(self):
00121         return bool(self.data.footer)
00122 

Definition at line 116 of file static.py.

00116 
00117     def has_link(self):
00118         return bool(self.data.more_url)


Member Data Documentation

tuple plone.portlet.static.static.Renderer.render = ViewPageTemplateFile('static.pt') [static]

Definition at line 103 of file static.py.


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