Back to index

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

List of all members.

Public Member Functions

def __init__
def url
def description
def title
def html_tag

Public Attributes

 context
 request
 brain

Static Public Attributes

int width = 16
int height = 16

Detailed Description

Definition at line 31 of file icons.py.


Constructor & Destructor Documentation

def plone.app.layout.icons.icons.CatalogBrainContentIcon.__init__ (   self,
  context,
  request,
  brain 
)

Definition at line 34 of file icons.py.

00034 
00035     def __init__(self, context, request, brain):
00036         self.context = context
00037         self.request = request
00038         self.brain = brain

Here is the caller graph for this function:


Member Function Documentation

Definition at line 49 of file icons.py.

00049 
00050     def description(self):
00051         context = aq_inner(self.context)
00052         tt = getToolByName(context, 'portal_types')
00053         return tt.get(self.brain['portal_type']).Title()

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 17 of file icons.py.

00017 
00018     def html_tag(self):
00019         
00020         if not self.url:
00021             return None
00022         
00023         tag = '<img width="%s" height="%s" src="%s"' % (self.width, self.height, self.url,)
00024         if self.title:
00025             tag += ' title="%s"' % self.title
00026         if self.description:
00027             tag += ' alt="%s"' % self.description
00028         tag += ' />'
00029         return tag
00030 

Definition at line 55 of file icons.py.

00055 
00056     def title(self):
00057         return None
00058 

Here is the caller graph for this function:

Definition at line 43 of file icons.py.

00043 
00044     def url(self):
00045         portal_url = getToolByName(self.context, 'portal_url')()
00046         path = self.brain.getIcon
00047         return "%s/%s" % (portal_url, path)

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 37 of file icons.py.

Definition at line 35 of file icons.py.

Definition at line 40 of file icons.py.

Definition at line 36 of file icons.py.

Definition at line 39 of file icons.py.


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