'Look up the value of an attribute and return a string displaying it.'

def view_attr(self, obj, attr):

    if obj.attributes.has(attr):
        return ('\nAttribute    %s/%s    =    %s' % (obj.name, attr, obj.attributes.get(attr)))
    else:
        return ("\n%s    has    no    attribute    '%s'." % (obj.name, attr))
