Back to index

plone3  3.1.7
interfaces.py
Go to the documentation of this file.
00001 from zope.interface import Interface, Attribute
00002 
00003 
00004 class IContentIcon(Interface):
00005     """An icon for a piece of content
00006     """
00007 
00008     width  = Attribute("The width of the icon (required).")
00009     height = Attribute("Returns the height of the icon (required).")
00010 
00011     url =  Attribute("The absolute url of the icon. This should be " 
00012                     "None if no icon should be rendered.")
00013 
00014     description = Attribute("The description used for the alt attribute. "
00015                             "Should be at least an empty string.")
00016 
00017     title = Attribute("The content of the title attribute. Should be None "
00018                       "if the title is empty.")
00019 
00020     def html_tag():
00021         """Return a HTML string that is the tag for rendering this icon.
00022         """
00023