Beispiel #1
0
 def zip4_lookup(self, force=False):
     if force or not self.zip4:
         try:
             zip4 = address_inferrence_service.zip4_lookup(self.street_address, self.city, self.state, self.zip5)
             self.update(zip4=zip4)
         except:
             pass
Beispiel #2
0
 def resolve_zip4(self, force=False):
     if force or not self.zip4.data:
         self.zip4.data = address_inferrence_service.zip4_lookup(self.street_address.data,
                                                                 self.city.data,
                                                                 self.state.data,
                                                                 self.zip5.data
                                                                 )
Beispiel #3
0
 def zip4_lookup(self, force=False):
     if force or not self.zip4:
         try:
             zip4 = address_inferrence_service.zip4_lookup(
                 self.street_address, self.city, self.state, self.zip5)
             self.update(zip4=zip4)
         except:
             pass
 def zip4_lookup(self, force=False):
     if force or not self.zip4:
         try:
             self.zip4 = address_inferrence_service.zip4_lookup(self.street_address,
                                                                self.city,
                                                                self.state,
                                                                self.zip5
                                                                )
             db.session.commit()
         except:
             db.session.rollback()
Beispiel #5
0
 def resolve_zip4(self, force=False):
     if force or not self.zip4.data:
         self.zip4.data = address_inferrence_service.zip4_lookup(
             self.street_address.data, self.city.data, self.state.data,
             self.zip5.data)