|
@@ 4484-4493 (lines=10) @@
|
| 4481 |
|
else: |
| 4482 |
|
latitude = None |
| 4483 |
|
|
| 4484 |
|
if 'longitude' in new_values.keys() and new_values['longitude'] is not None: |
| 4485 |
|
if not (isinstance(new_values['longitude'], float) or |
| 4486 |
|
isinstance(new_values['longitude'], int)) or \ |
| 4487 |
|
new_values['longitude'] < -180.0 or \ |
| 4488 |
|
new_values['longitude'] > 180.0: |
| 4489 |
|
raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST', |
| 4490 |
|
description='API.INVALID_LONGITUDE_VALUE') |
| 4491 |
|
longitude = new_values['longitude'] |
| 4492 |
|
else: |
| 4493 |
|
longitude = None |
| 4494 |
|
|
| 4495 |
|
if 'description' in new_values.keys() and \ |
| 4496 |
|
new_values['description'] is not None and \ |
|
@@ 4473-4482 (lines=10) @@
|
| 4470 |
|
else: |
| 4471 |
|
cost_center_id = None |
| 4472 |
|
|
| 4473 |
|
if 'latitude' in new_values.keys() and new_values['latitude'] is not None: |
| 4474 |
|
if not (isinstance(new_values['latitude'], float) or |
| 4475 |
|
isinstance(new_values['latitude'], int)) or \ |
| 4476 |
|
new_values['latitude'] < -90.0 or \ |
| 4477 |
|
new_values['latitude'] > 90.0: |
| 4478 |
|
raise falcon.HTTPError(status=falcon.HTTP_400, title='API.BAD_REQUEST', |
| 4479 |
|
description='API.INVALID_LATITUDE_VALUE') |
| 4480 |
|
latitude = new_values['latitude'] |
| 4481 |
|
else: |
| 4482 |
|
latitude = None |
| 4483 |
|
|
| 4484 |
|
if 'longitude' in new_values.keys() and new_values['longitude'] is not None: |
| 4485 |
|
if not (isinstance(new_values['longitude'], float) or |