Exemplo n.º 1
0
    def get(self):
        agencies = utils.get_all_agencies()
        agency_count = utils.get_agency_count()

        self.render('agencies_astable.html',
                    agencies=agencies,
                    agency_count=agency_count)
Exemplo n.º 2
0
 def get(self):
     agencies = utils.get_all_agencies()
     data = [[agency.lastupdate, agency] for agency in agencies]
     data.sort(reverse=True)
     agencies = [x[-1] for x in data]
     agency_count = utils.get_agency_count()
     
     self.render('agencies_bylastupdate.html', agencies=agencies, agency_count=agency_count)
Exemplo n.º 3
0
 def get(self):
     agencies = utils.get_all_agencies()
     # data = [[agency.country_name, agency.state_name, agency.name, agency] for agency in agencies]
     # data.sort()
     # agencies = [x[-1] for x in data]
     agency_count = utils.get_agency_count()
     
     self.render('agencies_bylocation.html', agencies=agencies, agency_count=agency_count)
Exemplo n.º 4
0
    def get(self):
        agencies = utils.get_all_agencies()
        data = [[agency.lastupdate, agency] for agency in agencies]
        data.sort(reverse=True)
        agencies = [x[-1] for x in data]
        agency_count = utils.get_agency_count()

        self.render('agencies_bylastupdate.html',
                    agencies=agencies,
                    agency_count=agency_count)
Exemplo n.º 5
0
    def get(self):
        agencies = utils.get_all_agencies()
        # data = [[agency.country_name, agency.state_name, agency.name, agency] for agency in agencies]
        # data.sort()
        # agencies = [x[-1] for x in data]
        agency_count = utils.get_agency_count()

        self.render('agencies_bylocation.html',
                    agencies=agencies,
                    agency_count=agency_count)
Exemplo n.º 6
0
 def get(self):
     agencies = utils.get_all_agencies()
     
     grouped = {}
     for agency in agencies:
         letter = agency.name[0].upper()
         if letter not in grouped:
             grouped[letter] = []
         grouped[letter].append(agency)
     
     grouped = grouped.items()
     grouped.sort()
     agency_count = utils.get_agency_count()
     
     self.render('agencies.html', agencies=agencies,
                                 grouped_agencies=grouped,
                                 agency_count=agency_count)
Exemplo n.º 7
0
    def get(self):
        agencies = utils.get_all_agencies()

        grouped = {}
        for agency in agencies:
            letter = agency.name[0].upper()
            if letter not in grouped:
                grouped[letter] = []
            grouped[letter].append(agency)

        grouped = grouped.items()
        grouped.sort()
        agency_count = utils.get_agency_count()

        self.render('agencies.html',
                    agencies=agencies,
                    grouped_agencies=grouped,
                    agency_count=agency_count)
Exemplo n.º 8
0
 def get(self):
     agencies = utils.get_all_agencies()
     agency_count = utils.get_agency_count()
     
     self.render('agencies_astable.html', agencies=agencies, agency_count=agency_count)
Exemplo n.º 9
0
 def get(self):
     agencies = utils.get_all_agencies()
     response = [agency.json() for agency in agencies]
     self.api_response(response)
Exemplo n.º 10
0
 def get(self):
     agencies = utils.get_all_agencies()
     response = [agency.json() for agency in agencies]
     self.api_response(response)
Exemplo n.º 11
0
 def get(self):
     agencies = utils.get_all_agencies()
     aliases = utils.get_all_aliases()
     self.render('admin_aliases.html', agencies=agencies, aliases=aliases)