示例#1
0
 def lookup(self, site_code):
     case_location = get_supply_point_and_location(
         self.domain,
         site_code
     )
     return case_location.case
示例#2
0
 def lookup(self, site_code):
     case_location = get_supply_point_and_location(self.domain, site_code)
     return case_location.case
示例#3
0
 def get_supply_point_and_location(self, loc_code):
     """return the supply point case referenced by loc_code"""
     case_location_tuple = get_supply_point_and_location(self.domain.name, loc_code)
     if not case_location_tuple:
         raise SMSError('invalid location code "%s"' % loc_code)
     return case_location_tuple
示例#4
0
文件: sms.py 项目: soitun/commcare-hq
 def get_supply_point_and_location(self, loc_code):
     """return the supply point case referenced by loc_code"""
     case_location_tuple = get_supply_point_and_location(self.domain.name, loc_code)
     if not case_location_tuple:
         raise SMSError('invalid location code "%s"' % loc_code)
     return case_location_tuple