示例#1
0
 def bulk_update_locations(self, types, locations):
     importer = NewLocationImporter(
         self.domain.name,
         [LocationTypeStub(*loc_type) for loc_type in types],
         [LocationStub(*loc) for loc in locations],
     )
     result = importer.run()
     return result
示例#2
0
 def bulk_update_locations(self, types, locations):
     importer = NewLocationImporter(
         self.domain.name,
         [LocationTypeStub(*loc_type) for loc_type in types],
         [LocationStub(*loc) for loc in locations],
     )
     result = importer.run()
     return result