Allura/allura/lib/plugin.py
def app_icon_url(self, app, size):
        """returns the default icon for the given app (or non-app thing like 'subproject').
            Takes an instance of class Application, or else a string.
            Expected to be overriden by derived Themes.
        """
        if isinstance(app, unicode):
            app = str(app)
        if isinstance(app, str):
            if app in self.icons and size in self.icons[app]:
                return g.theme_href(self.icons[app][size])
            elif app in g.entry_points['tool']:
                return g.entry_points['tool'][app].icon_url(size)
            else:
                return None
        else:
            return app.icon_url(size)
returns the default icon for the given app (or non-app thing like 'subproject').
            Takes an instance of class Application, or else a string.
            Expected to be overriden by derived Themes.
        
returns the default icon for the given app (or non-app thing like 'subproject').
Takes an instance of class Application, or else a string.
Expected to be overriden by derived Themes.
returns the default icon for the given app ( or non - app thing like ' subproject ' ) . Takes an instance of class Application or else a string . Expected to be overriden by derived Themes .
def app_icon_url(self, app, size):
        if isinstance(app, unicode):
            app = str(app)
        if isinstance(app, str):
            if app in self.icons and size in self.icons[app]:
                return g.theme_href(self.icons[app][size])
            elif app in g.entry_points['tool']:
                return g.entry_points['tool'][app].icon_url(size)
            else:
                return None
        else:
            return app.icon_url(size)
def app_icon_url ( self , app , size ) : if isinstance ( app , unicode ) : app = str ( app ) if isinstance ( app , str ) : if app in self . icons and size in self . icons [ app ] : return g . theme_href ( self . icons [ app ] [ size ] ) elif app in g . entry_points [ 'tool' ] : return g . entry_points [ 'tool' ] [ app ] . icon_url ( size ) else : return None else : return app . icon_url ( size )
returns the default icon for the given app (or non-app thing like 'subproject').
returns the default icon for the given app ( or non - app thing like ' subproject ' ) .
"""returns the default icon for the given app (or non-app thing like 'subproject').
            Takes an instance of class Application, or else a string.
            Expected to be overriden by derived Themes.
        """
self
app
size