def make_string(n, attname):
    """look for an attribute of a node and returns the attribute, or --"""
    if hasattr(n, attname):
        val = getattr(n, attname, None)
        if val is None:
            return '--'
        else:
            return str(val)