Back to index

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

List of all members.

Public Member Functions

def html_tag

Static Private Attributes

 __allow_access_to_unprotected_subobjects__ = True

Detailed Description

Helper base class for html rendering

Definition at line 10 of file icons.py.


Member Function Documentation

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 


Member Data Documentation

Definition at line 14 of file icons.py.


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