def head_id_format(nodeid): "Special format for property list / node id" if utils.noquotes(nodeid): return "%s:" % (clidisplay.attr_value(nodeid)) return '%s="%s"' % (clidisplay.attr_name('$id'), clidisplay.attr_value(nodeid))
def nvpair_format(n, v): if v is None: return clidisplay.attr_name(n) else: return '='.join((clidisplay.attr_name(n), clidisplay.attr_value(quote_wrap(v))))