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

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

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