Exemple #1
0
def getIcon(obj, **kwa):
    graphical = IGraphical(obj, None)
    icon = ''
    if graphical:
        icon = graphical.get_graphic('icon')
    if not icon:
        iconic = IIconic(obj, None)
        if iconic:
            icon = iconic.get_icon()
    if not icon:
        icon = obj.getIcon(True)
    return icon
Exemple #2
0
def getThumbnail(obj, **kwargs):
    graphical = IGraphical(obj, None)
    return graphical and graphical.get_graphic('thumb') or None