def later(): s = ''.join(['expanded root:\n\n', sorter.dump_root(), '\n\ngathered tree:\n\n', sorter.dump_gather()]) s += '\n\npython tree:\n\n' from contacts.buddyliststore import dump_elem_tree root = sorter._gather() try: s += dump_elem_tree(root) finally: sorter._done_gather(root)
def bltxt(): '''returns a textual representation of the new sorter's buddylist tree''' dump_elem_tree(p.blist.new_sorter.gather())
def dump_elem_tree(e, indent = 0, maxwidth=sys.maxint): from contacts.buddyliststore import dump_elem_tree print dump_elem_tree(e, indent, maxwidth)
def dump_elem_tree(e, indent=0, maxwidth=sys.maxint): from contacts.buddyliststore import dump_elem_tree print dump_elem_tree(e, indent, maxwidth)