source/riffle/icon_factory.py
def type(self, item):
        '''Return appropriate icon type for *item*.'''
        iconType = IconType.Unknown

        if isinstance(item, riffle.model.Computer):
            iconType = IconType.Computer

        elif isinstance(item, riffle.model.Mount):
            iconType = IconType.Mount

        elif isinstance(item, riffle.model.Directory):
            iconType = IconType.Directory

        elif isinstance(item, riffle.model.File):
            iconType = IconType.File

        elif isinstance(item, riffle.model.Collection):
            iconType = IconType.Collection

        return iconType
def type(self, item):
        '''Return appropriate icon type for *item*.'''
        iconType = IconType.Unknown

        if isinstance(item, riffle.model.Computer):
            iconType = IconType.Computer

        elif isinstance(item, riffle.model.Mount):
            iconType = IconType.Mount

        elif isinstance(item, riffle.model.Directory):
            iconType = IconType.Directory

        elif isinstance(item, riffle.model.File):
            iconType = IconType.File

        elif isinstance(item, riffle.model.Collection):
            iconType = IconType.Collection

        return iconType
Return appropriate icon type for *item*.