1 # -*- coding: iso8859-15 -*- 2 from faces import * 3 4 class dev1(Resource): 5 name = "Paul Smith" 6 7 def Acso(): 8 title = "Accounting Software" 9 load = WeeklyMax("35H") 10 resource = dev1 11 now = "2002-1-22 10:00" 12 13 def Deliveries(): 14 title = "Milestones" 15 16 def Begin(): 17 title = "Projectstart" 18 milestone = True 19 start = Multi("2002-01-16", delayed="2002-01-24") 20 21 def Done(): 22 title = "Ship Product to customer" 23 milestone = True 24 example_same_row = up.Begin 25 start = up.up.Software.end 26 27 def Spec(): 28 effort = "2d" 29 start = up.Deliveries.Begin.end 30 31 def Software(): 32 title = "Software Development" 33 example_shape = "wedge_bar_house" 34 example_prop = { "up" : False, 35 "end.up" : True, 36 "start.facecolor" : "green", 37 "facecolor" : "white", 38 "height" : 6, 39 "end.facecolor" : "red", 40 "end.magnification" : 2 } 41 42 def Database(): 43 title = "Database coupling" 44 effort = "2d" 45 start = up.up.Spec.end 46 47 def Gui(): 48 title = "Graphical Interface" 49 effort = Multi("3.5d", delayed="4d") 50 start = max(up.Database.end, up.Backend.end) 51 52 def Backend(): 53 title = "Back-End Functions" 54 effort = "3d" 55 complete = 95 56 start = max(up.Database.end, up.up.Spec.end) 57 #example_shape = "circlebar" 58 59 acso = BalancedProject(Acso, balance=SLOPPY)