Пример #1
0
def pretty_print(projects, show_empty=False, show_checkpoint=False):
    for p in projects.values():
        for app in p.applications:
            tasks = p.applications[app].tasks
            adjustColumnSpacing(tasks)

    for key, p in sorted(projects.items()):
        p.show_empty = show_empty # hack
        if len(p) != 0 or show_empty:
            print str(p) + '\n'
Пример #2
0
 def test_str(self):
     print ""
     t1 = task.Task(name="Task object")
     print t1
     t2 = task.Task_local(name="Task local object")
     print t2
     t3 = task.Task_web(name="Task web object")
     print t3
     t4 = task.Task_web_worldcommunitygrid(name="Task web worldcommunitygrid object")
     print t4
     l = [t1, t2, t3, t4]
     task.adjustColumnSpacing(l)
     for t in l:
         print t