Exemplo n.º 1
0
 def categories(self):
     categories = []
     for asset in self.assets:
         if asset.category not in categories:
             categories.append(asset.category)
     
     for cat in categories:
         cat.status = compute_status(self.assets[cat])
     
     categories.sort(cmp=lambda x, y: cmp(x.ordering, y.ordering))
     return categories
Exemplo n.º 2
0
 def status(self):
     subgroups_status = compute_status(self.subgroups)
     assets_status = compute_status(self.assets)
     return compute_status((subgroups_status, assets_status))
Exemplo n.º 3
0
 def status(self):
     return compute_status(self.assets)
Exemplo n.º 4
0
 def status(self):
     return compute_status(self.shots)