def all_facilities(self):
     if self._all_facilities is None:
         self._all_facilities = FacilityField.getFacilities()
     return self._all_facilities
Esempio n. 2
0
 def all_facilities(self):
     if self._all_facilities is None:
         self._all_facilities = FacilityField.getFacilities()
     return self._all_facilities
Esempio n. 3
0
    def facility_name_map(self):
        from hsph.fields import FacilityField

        facilities = FacilityField.getFacilities(domain=self.domain)
        return dict([(facility.get('val'), facility.get('text'))
                     for facility in facilities])
def get_facility_map(domain):
    from hsph.fields import FacilityField

    facilities = FacilityField.getFacilities(domain=domain)
    return dict([(facility.get('val'), facility.get('text'))
                 for facility in facilities])
    def facility_name_map(self):
        from hsph.fields import FacilityField

        facilities = FacilityField.getFacilities(domain=self.domain)
        return dict([(facility.get('val'), facility.get('text'))
                     for facility in facilities])
Esempio n. 6
0
def get_facility_map(domain):
    from hsph.fields import FacilityField

    facilities = FacilityField.getFacilities(domain=domain)
    return dict([(facility.get('val'), facility.get('text'))
                for facility in facilities])