コード例 #1
0
 def keys(self):
     combos = get_unique_combinations(self.domain, place_types=self.place_types, place=self.selected_fixture())
     selected_demo_type = self.request.GET.get('demo_type', "")
     for c in combos:
         if self.selected_dt:
             if self.selected_dt == '_all':
                 for dt in DEMO_TYPES:
                     yield [c[pt] for pt in self.place_types] + [dt]
             else:
                 yield [c[pt] for pt in self.place_types] + [selected_demo_type]
         else:
             yield [c[pt] for pt in self.place_types]
コード例 #2
0
 def keys(self):
     combos = get_unique_combinations(self.domain,
                                      place_types=self.place_types,
                                      place=self.selected_fixture())
     selected_demo_type = self.request.GET.get('demo_type', "")
     for c in combos:
         if self.selected_dt:
             if self.selected_dt == '_all':
                 for dt in DEMO_TYPES:
                     yield [c[pt] for pt in self.place_types] + [dt]
             else:
                 yield [c[pt]
                        for pt in self.place_types] + [selected_demo_type]
         else:
             yield [c[pt] for pt in self.place_types]
コード例 #3
0
ファイル: sql_reports.py プロジェクト: ekush/commcare-hq
 def keys(self):
     combos = get_unique_combinations(self.domain,
                                      place_types=self.place_types,
                                      place=self.selected_fixture())
     for c in combos:
         yield [c[pt] for pt in self.place_types]
コード例 #4
0
 def keys(self):
     combos = get_unique_combinations(self.domain, place_types=self.place_types, place=self.selected_fixture())
     for c in combos:
         yield [c[pt] for pt in self.place_types]