Exemplo n.º 1
0
        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)
Exemplo n.º 2
0
def bltxt():
    '''returns a textual representation of the new sorter's buddylist tree'''

    dump_elem_tree(p.blist.new_sorter.gather())
Exemplo n.º 3
0
def dump_elem_tree(e, indent = 0, maxwidth=sys.maxint):
    from contacts.buddyliststore import dump_elem_tree
    print dump_elem_tree(e, indent, maxwidth)
Exemplo n.º 4
0
def bltxt():
    '''returns a textual representation of the new sorter's buddylist tree'''

    dump_elem_tree(p.blist.new_sorter.gather())
Exemplo n.º 5
0
def dump_elem_tree(e, indent=0, maxwidth=sys.maxint):
    from contacts.buddyliststore import dump_elem_tree
    print dump_elem_tree(e, indent, maxwidth)