src/lsi/utils/hosts.py
def prettyname(cls, attrib_name):
        """
        Returns the "pretty name" (capitalized, etc) of an attribute, by
        looking it up in ``cls.COLUMN_NAMES`` if it exists there.

        :param attrib_name: An attribute name.
        :type attrib_name: ``str``

        :rtype: ``str``
        """
        if attrib_name.startswith('tags.'):
            tagname = attrib_name[len('tags.'):]
            return '{} (tag)'.format(tagname)
        elif attrib_name in cls.COLUMN_NAMES:
            return cls.COLUMN_NAMES[attrib_name]
        else:
            return attrib_name
def prettyname(cls, attrib_name):
        """
        Returns the "pretty name" (capitalized, etc) of an attribute, by
        looking it up in ``cls.COLUMN_NAMES`` if it exists there.

        :param attrib_name: An attribute name.
        :type attrib_name: ``str``

        :rtype: ``str``
        """
        if attrib_name.startswith('tags.'):
            tagname = attrib_name[len('tags.'):]
            return '{} (tag)'.format(tagname)
        elif attrib_name in cls.COLUMN_NAMES:
            return cls.COLUMN_NAMES[attrib_name]
        else:
            return attrib_name
Returns the "pretty name" (capitalized, etc) of an attribute, by
        looking it up in ``cls.COLUMN_NAMES`` if it exists there.

        :param attrib_name: An attribute name.
        :type attrib_name: ``str``

        :rtype: ``str``