Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
plone.app.layout.icons.icons.DefaultContentIcon Class Reference
Inheritance diagram for plone.app.layout.icons.icons.DefaultContentIcon:
Inheritance graph
[legend]
Collaboration diagram for plone.app.layout.icons.icons.DefaultContentIcon:
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
 obj

Static Public Attributes

int width = 16
int height = 16

Detailed Description

Definition at line 138 of file icons.py.


Constructor & Destructor Documentation

def plone.app.layout.icons.icons.DefaultContentIcon.__init__ (   self,
  context,
  request,
  obj 
)

Definition at line 141 of file icons.py.

00141 
00142     def __init__(self, context, request, obj):
00143         self.context = context
00144         self.request = request
00145         self.obj = obj

Here is the caller graph for this function:


Member Function Documentation

Definition at line 157 of file icons.py.

00157 
00158     def description(self):
00159         if self.obj is None:
00160             return None
00161         return self.obj.Title()

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 163 of file icons.py.

00163 
00164     def title(self):
00165         return None

Here is the caller graph for this function:

Definition at line 150 of file icons.py.

00150 
00151     def url(self):
00152         portal_url = getToolByName(self.context, 'portal_url')()
00153         if self.obj is None:
00154             return None
00155         return "%s/error_icon.gif" % portal_url

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 142 of file icons.py.

Definition at line 147 of file icons.py.

Definition at line 144 of file icons.py.

Definition at line 143 of file icons.py.

Definition at line 146 of file icons.py.


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