()
| 187 | |
| 188 | |
| 189 | def _build_regions(): |
| 190 | def csv_record_to_objects(info): |
| 191 | yield Region(id=int(info[0]), name=info[1]) |
| 192 | |
| 193 | build_generic((Region,), "regions.csv", csv_record_to_objects) |
| 194 | |
| 195 | def csv_record_to_objects(info): |
| 196 | yield RegionName(region_id=int(info[0]), language_id=int(info[1]), name=info[2]) |
| 197 | |
| 198 | build_generic((RegionName,), "region_names.csv", csv_record_to_objects) |
| 199 | |
| 200 | |
| 201 | ################ |
no test coverage detected