Exemple #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)
Exemple #2
0
def bltxt():
    '''returns a textual representation of the new sorter's buddylist tree'''

    dump_elem_tree(p.blist.new_sorter.gather())
Exemple #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)
Exemple #4
0
def bltxt():
    '''returns a textual representation of the new sorter's buddylist tree'''

    dump_elem_tree(p.blist.new_sorter.gather())
Exemple #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)