igs-slm 0.1.0b0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- igs_slm-0.1.0b0.dist-info/LICENSE +21 -0
- igs_slm-0.1.0b0.dist-info/METADATA +151 -0
- igs_slm-0.1.0b0.dist-info/RECORD +447 -0
- igs_slm-0.1.0b0.dist-info/WHEEL +4 -0
- igs_slm-0.1.0b0.dist-info/entry_points.txt +3 -0
- igs_tools/__init__.py +0 -0
- igs_tools/connection.py +88 -0
- igs_tools/defines/__init__.py +8 -0
- igs_tools/defines/constellation.py +21 -0
- igs_tools/defines/data_center.py +75 -0
- igs_tools/defines/rinex.py +49 -0
- igs_tools/directory.py +247 -0
- igs_tools/utils.py +66 -0
- slm/__init__.py +21 -0
- slm/admin.py +674 -0
- slm/api/edit/__init__.py +0 -0
- slm/api/edit/serializers.py +316 -0
- slm/api/edit/views.py +1632 -0
- slm/api/fields.py +89 -0
- slm/api/filter.py +504 -0
- slm/api/pagination.py +55 -0
- slm/api/permissions.py +65 -0
- slm/api/public/__init__.py +0 -0
- slm/api/public/serializers.py +249 -0
- slm/api/public/views.py +606 -0
- slm/api/serializers.py +132 -0
- slm/api/views.py +148 -0
- slm/apps.py +323 -0
- slm/authentication.py +198 -0
- slm/bin/__init__.py +0 -0
- slm/bin/startproject.py +262 -0
- slm/bin/templates/{{ project_dir }}/pyproject.toml +35 -0
- slm/bin/templates/{{ project_dir }}/sites/__init__.py +0 -0
- slm/bin/templates/{{ project_dir }}/sites/{{ site }}/__init__.py +0 -0
- slm/bin/templates/{{ project_dir }}/sites/{{ site }}/base.py +15 -0
- slm/bin/templates/{{ project_dir }}/sites/{{ site }}/develop/__init__.py +56 -0
- slm/bin/templates/{{ project_dir }}/sites/{{ site }}/develop/local.py +4 -0
- slm/bin/templates/{{ project_dir }}/sites/{{ site }}/develop/wsgi.py +16 -0
- slm/bin/templates/{{ project_dir }}/sites/{{ site }}/manage.py +34 -0
- slm/bin/templates/{{ project_dir }}/sites/{{ site }}/production/__init__.py +61 -0
- slm/bin/templates/{{ project_dir }}/sites/{{ site }}/production/wsgi.py +16 -0
- slm/bin/templates/{{ project_dir }}/sites/{{ site }}/urls.py +7 -0
- slm/bin/templates/{{ project_dir }}/sites/{{ site }}/validation.py +11 -0
- slm/bin/templates/{{ project_dir }}/{{ extension_app }}/__init__.py +0 -0
- slm/bin/templates/{{ project_dir }}/{{ extension_app }}/admin.py +5 -0
- slm/bin/templates/{{ project_dir }}/{{ extension_app }}/apps.py +14 -0
- slm/bin/templates/{{ project_dir }}/{{ extension_app }}/management/__init__.py +0 -0
- slm/bin/templates/{{ project_dir }}/{{ extension_app }}/management/commands/__init__.py +0 -0
- slm/bin/templates/{{ project_dir }}/{{ extension_app }}/management/commands/import_archive.py +64 -0
- slm/bin/templates/{{ project_dir }}/{{ extension_app }}/migrations/__init__.py +0 -0
- slm/bin/templates/{{ project_dir }}/{{ extension_app }}/models.py +6 -0
- slm/bin/templates/{{ project_dir }}/{{ extension_app }}/templates/slm/base.html +8 -0
- slm/bin/templates/{{ project_dir }}/{{ extension_app }}/urls.py +10 -0
- slm/bin/templates/{{ project_dir }}/{{ extension_app }}/views.py +5 -0
- slm/defines/AlertLevel.py +24 -0
- slm/defines/AntennaCalibration.py +25 -0
- slm/defines/AntennaFeatures.py +27 -0
- slm/defines/AntennaReferencePoint.py +22 -0
- slm/defines/Aspiration.py +13 -0
- slm/defines/CardinalDirection.py +19 -0
- slm/defines/CollocationStatus.py +12 -0
- slm/defines/EquipmentState.py +22 -0
- slm/defines/FlagSeverity.py +14 -0
- slm/defines/FractureSpacing.py +15 -0
- slm/defines/FrequencyStandardType.py +15 -0
- slm/defines/GeodesyMLVersion.py +48 -0
- slm/defines/ISOCountry.py +1194 -0
- slm/defines/Instrumentation.py +19 -0
- slm/defines/LogEntryType.py +30 -0
- slm/defines/SLMFileType.py +18 -0
- slm/defines/SiteFileUploadStatus.py +61 -0
- slm/defines/SiteLogFormat.py +49 -0
- slm/defines/SiteLogStatus.py +78 -0
- slm/defines/TectonicPlates.py +28 -0
- slm/defines/__init__.py +46 -0
- slm/forms.py +1126 -0
- slm/jinja2/slm/sitelog/ascii_9char.log +346 -0
- slm/jinja2/slm/sitelog/legacy.log +346 -0
- slm/jinja2/slm/sitelog/xsd/0.4/collocationInformation.xml +12 -0
- slm/jinja2/slm/sitelog/xsd/0.4/condition.xml +12 -0
- slm/jinja2/slm/sitelog/xsd/0.4/contact.xml +52 -0
- slm/jinja2/slm/sitelog/xsd/0.4/formInformation.xml +5 -0
- slm/jinja2/slm/sitelog/xsd/0.4/frequencyStandard.xml +12 -0
- slm/jinja2/slm/sitelog/xsd/0.4/gnssAntenna.xml +16 -0
- slm/jinja2/slm/sitelog/xsd/0.4/gnssReceiver.xml +11 -0
- slm/jinja2/slm/sitelog/xsd/0.4/humiditySensor.xml +13 -0
- slm/jinja2/slm/sitelog/xsd/0.4/localEpisodicEffect.xml +10 -0
- slm/jinja2/slm/sitelog/xsd/0.4/moreInformation.xml +22 -0
- slm/jinja2/slm/sitelog/xsd/0.4/multipathSource.xml +10 -0
- slm/jinja2/slm/sitelog/xsd/0.4/otherInstrumentation.xml +5 -0
- slm/jinja2/slm/sitelog/xsd/0.4/pressureSensor.xml +12 -0
- slm/jinja2/slm/sitelog/xsd/0.4/radioInterference.xml +11 -0
- slm/jinja2/slm/sitelog/xsd/0.4/sensor.xml +16 -0
- slm/jinja2/slm/sitelog/xsd/0.4/signalObstruction.xml +10 -0
- slm/jinja2/slm/sitelog/xsd/0.4/siteIdentification.xml +22 -0
- slm/jinja2/slm/sitelog/xsd/0.4/siteLocation.xml +21 -0
- slm/jinja2/slm/sitelog/xsd/0.4/surveyedLocalTie.xml +20 -0
- slm/jinja2/slm/sitelog/xsd/0.4/temperatureSensor.xml +13 -0
- slm/jinja2/slm/sitelog/xsd/0.4/waterVaporSensor.xml +11 -0
- slm/jinja2/slm/sitelog/xsd/0.5/document.xml +10 -0
- slm/jinja2/slm/sitelog/xsd/geodesyml_0.4.xml +99 -0
- slm/jinja2/slm/sitelog/xsd/geodesyml_0.5.xml +112 -0
- slm/management/__init__.py +0 -0
- slm/management/commands/__init__.py +53 -0
- slm/management/commands/build_index.py +96 -0
- slm/management/commands/generate_sinex.py +675 -0
- slm/management/commands/head_from_index.py +541 -0
- slm/management/commands/import_archive.py +908 -0
- slm/management/commands/import_equipment.py +351 -0
- slm/management/commands/set_site.py +56 -0
- slm/management/commands/sitelog.py +144 -0
- slm/management/commands/synchronize.py +60 -0
- slm/management/commands/update_data_availability.py +167 -0
- slm/management/commands/validate_db.py +186 -0
- slm/management/commands/validate_gml.py +73 -0
- slm/map/__init__.py +1 -0
- slm/map/admin.py +5 -0
- slm/map/api/__init__.py +0 -0
- slm/map/api/edit/__init__.py +0 -0
- slm/map/api/edit/serializers.py +28 -0
- slm/map/api/edit/views.py +46 -0
- slm/map/api/public/__init__.py +0 -0
- slm/map/api/public/serializers.py +29 -0
- slm/map/api/public/views.py +64 -0
- slm/map/apps.py +7 -0
- slm/map/defines.py +53 -0
- slm/map/migrations/0001_initial.py +115 -0
- slm/map/migrations/__init__.py +0 -0
- slm/map/models.py +63 -0
- slm/map/static/slm/css/map.css +86 -0
- slm/map/static/slm/js/map.js +159 -0
- slm/map/templates/slm/map.html +374 -0
- slm/map/templates/slm/station/base.html +11 -0
- slm/map/templates/slm/station/edit.html +10 -0
- slm/map/templates/slm/top_nav.html +17 -0
- slm/map/templatetags/__init__.py +0 -0
- slm/map/templatetags/slm_map.py +18 -0
- slm/map/urls.py +25 -0
- slm/map/views.py +36 -0
- slm/middleware.py +29 -0
- slm/migrations/0001_alter_siteantenna_marker_enu_alter_sitelocation_llh_and_more.py +47 -0
- slm/migrations/0001_initial.py +4826 -0
- slm/migrations/0002_alter_dataavailability_site.py +22 -0
- slm/migrations/0003_remove_logentry_slm_logentr_site_lo_7a2af7_idx_and_more.py +80 -0
- slm/migrations/0004_alter_logentry_timestamp_and_more.py +25 -0
- slm/migrations/0005_alter_logentry_options_alter_logentry_section_and_more.py +46 -0
- slm/migrations/0006_alter_logentry_options_alter_logentry_index_together.py +24 -0
- slm/migrations/0007_alter_dataavailability_rate.py +23 -0
- slm/migrations/0008_alter_archiveindex_options_and_more.py +64 -0
- slm/migrations/0009_alter_archiveindex_end.py +21 -0
- slm/migrations/0010_alter_dataavailability_rinex_version_and_more.py +844 -0
- slm/migrations/0011_alter_siteidentification_fracture_spacing.py +33 -0
- slm/migrations/0012_alter_logentry_type.py +36 -0
- slm/migrations/0013_unpublishedfilesalert.py +48 -0
- slm/migrations/0014_sitelogpublished.py +48 -0
- slm/migrations/0015_alter_siteantenna_options_and_more.py +181 -0
- slm/migrations/0016_alter_antenna_description_alter_radome_description_and_more.py +42 -0
- slm/migrations/0017_alter_logentry_unique_together_and_more.py +54 -0
- slm/migrations/0018_afix_deleted.py +34 -0
- slm/migrations/0018_alter_siteantenna_options_and_more.py +244 -0
- slm/migrations/0019_remove_siteantenna_marker_enu_siteantenna_marker_une_and_more.py +101 -0
- slm/migrations/0020_alter_manufacturer_options.py +16 -0
- slm/migrations/0021_alter_siteform_report_type.py +23 -0
- slm/migrations/0022_rename_antcal_antenna_radome_slm_antcal_antenna_20827a_idx_and_more.py +297 -0
- slm/migrations/0023_archivedsitelog_gml_version_and_more.py +55 -0
- slm/migrations/0024_alter_agency_name_alter_agency_shortname.py +24 -0
- slm/migrations/0025_alter_archivedsitelog_log_format_and_more.py +61 -0
- slm/migrations/0026_alter_archivedsitelog_log_format_and_more.py +61 -0
- slm/migrations/0027_importalert_file_contents_importalert_findings_and_more.py +41 -0
- slm/migrations/0028_antenna_replaced_manufacturer_url_radome_replaced_and_more.py +46 -0
- slm/migrations/0029_manufacturer_full_name.py +17 -0
- slm/migrations/0030_alter_antenna_state_alter_radome_state_and_more.py +43 -0
- slm/migrations/__init__.py +0 -0
- slm/migrations/load_satellitesystems.py +27 -0
- slm/models/__init__.py +118 -0
- slm/models/about.py +14 -0
- slm/models/alerts.py +1204 -0
- slm/models/data.py +58 -0
- slm/models/equipment.py +229 -0
- slm/models/help.py +14 -0
- slm/models/index.py +428 -0
- slm/models/sitelog.py +4279 -0
- slm/models/system.py +723 -0
- slm/models/user.py +304 -0
- slm/parsing/__init__.py +786 -0
- slm/parsing/legacy/__init__.py +4 -0
- slm/parsing/legacy/binding.py +817 -0
- slm/parsing/legacy/parser.py +377 -0
- slm/parsing/xsd/__init__.py +34 -0
- slm/parsing/xsd/binding.py +86 -0
- slm/parsing/xsd/geodesyml/0.4/commonTypes.xsd +133 -0
- slm/parsing/xsd/geodesyml/0.4/contact.xsd +29 -0
- slm/parsing/xsd/geodesyml/0.4/dataStreams.xsd +129 -0
- slm/parsing/xsd/geodesyml/0.4/document.xsd +64 -0
- slm/parsing/xsd/geodesyml/0.4/equipment.xsd +427 -0
- slm/parsing/xsd/geodesyml/0.4/fieldMeasurement.xsd +170 -0
- slm/parsing/xsd/geodesyml/0.4/geodesyML.xsd +71 -0
- slm/parsing/xsd/geodesyml/0.4/geodeticEquipment.xsd +343 -0
- slm/parsing/xsd/geodesyml/0.4/geodeticMonument.xsd +147 -0
- slm/parsing/xsd/geodesyml/0.4/lineage.xsd +614 -0
- slm/parsing/xsd/geodesyml/0.4/localInterferences.xsd +131 -0
- slm/parsing/xsd/geodesyml/0.4/measurement.xsd +473 -0
- slm/parsing/xsd/geodesyml/0.4/monumentInfo.xsd +251 -0
- slm/parsing/xsd/geodesyml/0.4/observationSystem.xsd +429 -0
- slm/parsing/xsd/geodesyml/0.4/project.xsd +38 -0
- slm/parsing/xsd/geodesyml/0.4/quality.xsd +176 -0
- slm/parsing/xsd/geodesyml/0.4/referenceFrame.xsd +194 -0
- slm/parsing/xsd/geodesyml/0.4/siteLog.xsd +71 -0
- slm/parsing/xsd/geodesyml/0.5/commonTypes.xsd +133 -0
- slm/parsing/xsd/geodesyml/0.5/contact.xsd +29 -0
- slm/parsing/xsd/geodesyml/0.5/dataStreams.xsd +129 -0
- slm/parsing/xsd/geodesyml/0.5/document.xsd +64 -0
- slm/parsing/xsd/geodesyml/0.5/equipment.xsd +427 -0
- slm/parsing/xsd/geodesyml/0.5/fieldMeasurement.xsd +170 -0
- slm/parsing/xsd/geodesyml/0.5/geodesyML.xsd +71 -0
- slm/parsing/xsd/geodesyml/0.5/geodeticEquipment.xsd +343 -0
- slm/parsing/xsd/geodesyml/0.5/geodeticMonument.xsd +147 -0
- slm/parsing/xsd/geodesyml/0.5/lineage.xsd +614 -0
- slm/parsing/xsd/geodesyml/0.5/localInterferences.xsd +131 -0
- slm/parsing/xsd/geodesyml/0.5/measurement.xsd +473 -0
- slm/parsing/xsd/geodesyml/0.5/monumentInfo.xsd +306 -0
- slm/parsing/xsd/geodesyml/0.5/observationSystem.xsd +429 -0
- slm/parsing/xsd/geodesyml/0.5/project.xsd +38 -0
- slm/parsing/xsd/geodesyml/0.5/quality.xsd +176 -0
- slm/parsing/xsd/geodesyml/0.5/referenceFrame.xsd +194 -0
- slm/parsing/xsd/geodesyml/0.5/siteLog.xsd +73 -0
- slm/parsing/xsd/parser.py +116 -0
- slm/parsing/xsd/resolver.py +28 -0
- slm/receivers/__init__.py +11 -0
- slm/receivers/alerts.py +87 -0
- slm/receivers/cleanup.py +41 -0
- slm/receivers/event_loggers.py +175 -0
- slm/receivers/index.py +67 -0
- slm/settings/__init__.py +55 -0
- slm/settings/auth.py +15 -0
- slm/settings/ckeditor.py +14 -0
- slm/settings/debug.py +47 -0
- slm/settings/internationalization.py +12 -0
- slm/settings/logging.py +113 -0
- slm/settings/platform/__init__.py +0 -0
- slm/settings/platform/darwin.py +10 -0
- slm/settings/rest.py +21 -0
- slm/settings/root.py +152 -0
- slm/settings/routines.py +43 -0
- slm/settings/secrets.py +37 -0
- slm/settings/security.py +5 -0
- slm/settings/slm.py +188 -0
- slm/settings/static_templates.py +53 -0
- slm/settings/templates.py +29 -0
- slm/settings/uploads.py +8 -0
- slm/settings/urls.py +126 -0
- slm/settings/validation.py +196 -0
- slm/signals.py +250 -0
- slm/singleton.py +49 -0
- slm/static/rest_framework/css/bootstrap-tweaks.css +204 -0
- slm/static/rest_framework/css/bootstrap.min.css +7 -0
- slm/static/rest_framework/css/bootstrap.min.css.map +1 -0
- slm/static/rest_framework/css/default.css +82 -0
- slm/static/rest_framework/css/prettify.css +30 -0
- slm/static/rest_framework/docs/css/base.css +344 -0
- slm/static/rest_framework/docs/css/highlight.css +125 -0
- slm/static/rest_framework/docs/css/jquery.json-view.min.css +11 -0
- slm/static/rest_framework/docs/img/favicon.ico +0 -0
- slm/static/rest_framework/docs/img/grid.png +0 -0
- slm/static/rest_framework/docs/js/api.js +321 -0
- slm/static/rest_framework/docs/js/highlight.pack.js +2 -0
- slm/static/rest_framework/docs/js/jquery.json-view.min.js +7 -0
- slm/static/rest_framework/img/grid.png +0 -0
- slm/static/rest_framework/js/ajax-form.js +127 -0
- slm/static/rest_framework/js/bootstrap.bundle.min.js +7 -0
- slm/static/rest_framework/js/bootstrap.bundle.min.js.map +1 -0
- slm/static/rest_framework/js/bootstrap.min.js.map +1 -0
- slm/static/rest_framework/js/coreapi-0.1.1.js +2043 -0
- slm/static/rest_framework/js/csrf.js +52 -0
- slm/static/rest_framework/js/default.js +47 -0
- slm/static/rest_framework/js/jquery-3.5.1.min.js +2 -0
- slm/static/rest_framework/js/prettify-min.js +28 -0
- slm/static/slm/css/admin.css +3 -0
- slm/static/slm/css/defines.css +82 -0
- slm/static/slm/css/forms.css +1 -0
- slm/static/slm/css/style.css +1004 -0
- slm/static/slm/img/email-branding.png +0 -0
- slm/static/slm/img/favicon.ico +0 -0
- slm/static/slm/img/login-bg.jpg +0 -0
- slm/static/slm/img/slm-logo.svg +4 -0
- slm/static/slm/js/autocomplete.js +341 -0
- slm/static/slm/js/enums.js +322 -0
- slm/static/slm/js/fileIcons.js +30 -0
- slm/static/slm/js/form.js +404 -0
- slm/static/slm/js/formWidget.js +23 -0
- slm/static/slm/js/persistable.js +33 -0
- slm/static/slm/js/slm.js +1028 -0
- slm/static/slm/js/time24.js +212 -0
- slm/static_templates/slm/css/defines.css +26 -0
- slm/static_templates/slm/js/enums.js +28 -0
- slm/static_templates/slm/js/fileIcons.js +16 -0
- slm/static_templates/slm/js/urls.js +5 -0
- slm/templates/account/base.html +20 -0
- slm/templates/account/email/base.html +43 -0
- slm/templates/account/email/base_message.txt +7 -0
- slm/templates/account/email/email_confirmation_message.html +16 -0
- slm/templates/account/email/email_confirmation_message.txt +7 -0
- slm/templates/account/email/email_confirmation_signup_message.html +1 -0
- slm/templates/account/email/email_confirmation_signup_message.txt +1 -0
- slm/templates/account/email/email_confirmation_signup_subject.txt +1 -0
- slm/templates/account/email/email_confirmation_subject.txt +4 -0
- slm/templates/account/email/password_reset_key_message.html +28 -0
- slm/templates/account/email/password_reset_key_message.txt +9 -0
- slm/templates/account/email/password_reset_key_subject.txt +4 -0
- slm/templates/account/email/unknown_account_message.html +25 -0
- slm/templates/account/email/unknown_account_message.txt +12 -0
- slm/templates/account/email/unknown_account_subject.txt +4 -0
- slm/templates/account/login.html +67 -0
- slm/templates/account/logout.html +38 -0
- slm/templates/account/password_change.html +48 -0
- slm/templates/account/password_reset.html +51 -0
- slm/templates/account/password_reset_done.html +20 -0
- slm/templates/account/password_reset_from_key.html +52 -0
- slm/templates/account/password_reset_from_key_done.html +17 -0
- slm/templates/admin/base.html +7 -0
- slm/templates/messages.html +8 -0
- slm/templates/rest_framework/README +16 -0
- slm/templates/rest_framework/admin/detail.html +10 -0
- slm/templates/rest_framework/admin/dict_value.html +11 -0
- slm/templates/rest_framework/admin/list.html +32 -0
- slm/templates/rest_framework/admin/list_value.html +11 -0
- slm/templates/rest_framework/admin/simple_list_value.html +2 -0
- slm/templates/rest_framework/admin.html +282 -0
- slm/templates/rest_framework/api.html +3 -0
- slm/templates/rest_framework/base.html +334 -0
- slm/templates/rest_framework/docs/auth/basic.html +42 -0
- slm/templates/rest_framework/docs/auth/session.html +40 -0
- slm/templates/rest_framework/docs/auth/token.html +41 -0
- slm/templates/rest_framework/docs/document.html +37 -0
- slm/templates/rest_framework/docs/error.html +71 -0
- slm/templates/rest_framework/docs/index.html +55 -0
- slm/templates/rest_framework/docs/interact.html +57 -0
- slm/templates/rest_framework/docs/langs/javascript-intro.html +5 -0
- slm/templates/rest_framework/docs/langs/javascript.html +15 -0
- slm/templates/rest_framework/docs/langs/python-intro.html +3 -0
- slm/templates/rest_framework/docs/langs/python.html +13 -0
- slm/templates/rest_framework/docs/langs/shell-intro.html +3 -0
- slm/templates/rest_framework/docs/langs/shell.html +6 -0
- slm/templates/rest_framework/docs/link.html +113 -0
- slm/templates/rest_framework/docs/sidebar.html +78 -0
- slm/templates/rest_framework/filters/base.html +16 -0
- slm/templates/rest_framework/filters/ordering.html +17 -0
- slm/templates/rest_framework/filters/search.html +13 -0
- slm/templates/rest_framework/horizontal/checkbox.html +23 -0
- slm/templates/rest_framework/horizontal/checkbox_multiple.html +32 -0
- slm/templates/rest_framework/horizontal/dict_field.html +11 -0
- slm/templates/rest_framework/horizontal/fieldset.html +16 -0
- slm/templates/rest_framework/horizontal/form.html +6 -0
- slm/templates/rest_framework/horizontal/input.html +21 -0
- slm/templates/rest_framework/horizontal/list_field.html +11 -0
- slm/templates/rest_framework/horizontal/list_fieldset.html +13 -0
- slm/templates/rest_framework/horizontal/radio.html +42 -0
- slm/templates/rest_framework/horizontal/select.html +36 -0
- slm/templates/rest_framework/horizontal/select_multiple.html +38 -0
- slm/templates/rest_framework/horizontal/textarea.html +21 -0
- slm/templates/rest_framework/inline/checkbox.html +8 -0
- slm/templates/rest_framework/inline/checkbox_multiple.html +14 -0
- slm/templates/rest_framework/inline/dict_field.html +9 -0
- slm/templates/rest_framework/inline/fieldset.html +6 -0
- slm/templates/rest_framework/inline/form.html +8 -0
- slm/templates/rest_framework/inline/input.html +9 -0
- slm/templates/rest_framework/inline/list_field.html +9 -0
- slm/templates/rest_framework/inline/list_fieldset.html +3 -0
- slm/templates/rest_framework/inline/radio.html +25 -0
- slm/templates/rest_framework/inline/select.html +24 -0
- slm/templates/rest_framework/inline/select_multiple.html +25 -0
- slm/templates/rest_framework/inline/textarea.html +9 -0
- slm/templates/rest_framework/login.html +3 -0
- slm/templates/rest_framework/login_base.html +65 -0
- slm/templates/rest_framework/pagination/numbers.html +47 -0
- slm/templates/rest_framework/pagination/previous_and_next.html +21 -0
- slm/templates/rest_framework/raw_data_form.html +11 -0
- slm/templates/rest_framework/schema.js +3 -0
- slm/templates/rest_framework/vertical/checkbox.html +16 -0
- slm/templates/rest_framework/vertical/checkbox_multiple.html +30 -0
- slm/templates/rest_framework/vertical/dict_field.html +7 -0
- slm/templates/rest_framework/vertical/fieldset.html +13 -0
- slm/templates/rest_framework/vertical/form.html +6 -0
- slm/templates/rest_framework/vertical/input.html +17 -0
- slm/templates/rest_framework/vertical/list_field.html +7 -0
- slm/templates/rest_framework/vertical/list_fieldset.html +7 -0
- slm/templates/rest_framework/vertical/radio.html +40 -0
- slm/templates/rest_framework/vertical/select.html +34 -0
- slm/templates/rest_framework/vertical/select_multiple.html +31 -0
- slm/templates/rest_framework/vertical/textarea.html +17 -0
- slm/templates/slm/about.html +21 -0
- slm/templates/slm/alerts/alert.html +15 -0
- slm/templates/slm/alerts/geodesymlinvalid.html +8 -0
- slm/templates/slm/alerts/importalert.html +10 -0
- slm/templates/slm/alerts.html +18 -0
- slm/templates/slm/auth_menu.html +41 -0
- slm/templates/slm/base.html +195 -0
- slm/templates/slm/emails/alert_issued.html +31 -0
- slm/templates/slm/emails/alert_issued.txt +9 -0
- slm/templates/slm/emails/base.html +6 -0
- slm/templates/slm/emails/changes_rejected.txt +7 -0
- slm/templates/slm/emails/review_requested.txt +7 -0
- slm/templates/slm/forms/widgets/auto_complete.html +21 -0
- slm/templates/slm/forms/widgets/auto_complete_multiple.html +18 -0
- slm/templates/slm/forms/widgets/checkbox_multiple.html +6 -0
- slm/templates/slm/forms/widgets/inline_multi.html +1 -0
- slm/templates/slm/forms/widgets/splitdatetime.html +14 -0
- slm/templates/slm/forms/widgets/time24.html +37 -0
- slm/templates/slm/help.html +54 -0
- slm/templates/slm/messages.html +13 -0
- slm/templates/slm/new_site.html +88 -0
- slm/templates/slm/profile.html +57 -0
- slm/templates/slm/register.html +40 -0
- slm/templates/slm/reports/file_log.html +43 -0
- slm/templates/slm/reports/head_log.html +23 -0
- slm/templates/slm/reports/head_report.html +55 -0
- slm/templates/slm/reports/index_log.html +23 -0
- slm/templates/slm/reports/index_report.html +71 -0
- slm/templates/slm/station/alert.html +8 -0
- slm/templates/slm/station/alerts.html +19 -0
- slm/templates/slm/station/base.html +104 -0
- slm/templates/slm/station/download.html +87 -0
- slm/templates/slm/station/edit.html +283 -0
- slm/templates/slm/station/form.html +110 -0
- slm/templates/slm/station/log.html +18 -0
- slm/templates/slm/station/review.html +461 -0
- slm/templates/slm/station/upload.html +295 -0
- slm/templates/slm/station/uploads/attachment.html +20 -0
- slm/templates/slm/station/uploads/geodesyml.html +1 -0
- slm/templates/slm/station/uploads/image.html +27 -0
- slm/templates/slm/station/uploads/json.html +0 -0
- slm/templates/slm/station/uploads/legacy.html +77 -0
- slm/templates/slm/top_nav.html +14 -0
- slm/templates/slm/user_activity.html +16 -0
- slm/templates/slm/widgets/alert_scroll.html +135 -0
- slm/templates/slm/widgets/filelist.html +258 -0
- slm/templates/slm/widgets/legend.html +12 -0
- slm/templates/slm/widgets/log_scroll.html +88 -0
- slm/templates/slm/widgets/stationlist.html +233 -0
- slm/templatetags/__init__.py +0 -0
- slm/templatetags/jinja2.py +9 -0
- slm/templatetags/slm.py +459 -0
- slm/urls.py +148 -0
- slm/utils.py +299 -0
- slm/validators.py +297 -0
- slm/views.py +654 -0
- slm/widgets.py +134 -0
|
@@ -0,0 +1,1194 @@
|
|
|
1
|
+
"""The standard enum type for ISO 3166-1 common countrys"""
|
|
2
|
+
|
|
3
|
+
from django.utils.translation import gettext_lazy as _
|
|
4
|
+
from django_enum import TextChoices
|
|
5
|
+
from enum_properties import p, s
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ISOCountry(
|
|
9
|
+
TextChoices,
|
|
10
|
+
s("numeric"), # type: ignore
|
|
11
|
+
s("alpha3", case_fold=True), # type: ignore
|
|
12
|
+
p("independent"), # type: ignore
|
|
13
|
+
s("short_name", case_fold=True), # type: ignore
|
|
14
|
+
s("full_name", case_fold=True), # type: ignore
|
|
15
|
+
):
|
|
16
|
+
"""
|
|
17
|
+
An enumeration for ISO 3166-1 Country codes.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
_symmetric_builtins_ = [s("name", case_fold=True), s("ascii", case_fold=True)]
|
|
21
|
+
|
|
22
|
+
AD = "AD", _("Andorra"), 20, "AND", True, "Andorra", "the Principality of Andorra"
|
|
23
|
+
AE = (
|
|
24
|
+
"AE",
|
|
25
|
+
_("United Arab Emirates (the)"),
|
|
26
|
+
784,
|
|
27
|
+
"ARE",
|
|
28
|
+
True,
|
|
29
|
+
"United Arab Emirates (the)",
|
|
30
|
+
"the United Arab Emirates",
|
|
31
|
+
)
|
|
32
|
+
AF = (
|
|
33
|
+
"AF",
|
|
34
|
+
_("Afghanistan"),
|
|
35
|
+
4,
|
|
36
|
+
"AFG",
|
|
37
|
+
True,
|
|
38
|
+
"Afghanistan",
|
|
39
|
+
"the Islamic Republic of Afghanistan",
|
|
40
|
+
)
|
|
41
|
+
AG = (
|
|
42
|
+
"AG",
|
|
43
|
+
_("Antigua and Barbuda"),
|
|
44
|
+
28,
|
|
45
|
+
"ATG",
|
|
46
|
+
True,
|
|
47
|
+
"Antigua and Barbuda",
|
|
48
|
+
"Antigua and Barbuda",
|
|
49
|
+
)
|
|
50
|
+
AI = "AI", _("Anguilla"), 660, "AIA", False, "Anguilla", "Anguilla"
|
|
51
|
+
AL = "AL", _("Albania"), 8, "ALB", True, "Albania", "the Republic of Albania"
|
|
52
|
+
AM = "AM", _("Armenia"), 51, "ARM", True, "Armenia", "the Republic of Armenia"
|
|
53
|
+
AO = "AO", _("Angola"), 24, "AGO", True, "Angola", "the Republic of Angola"
|
|
54
|
+
AQ = "AQ", _("Antarctica"), 10, "ATA", False, "Antarctica", "Antarctica"
|
|
55
|
+
AR = "AR", _("Argentina"), 32, "ARG", True, "Argentina", "the Argentine Republic"
|
|
56
|
+
AS = "AS", _("American Samoa"), 16, "ASM", False, "American Samoa", "American Samoa"
|
|
57
|
+
AT = "AT", _("Austria"), 40, "AUT", True, "Austria", "the Republic of Austria"
|
|
58
|
+
AU = "AU", _("Australia"), 36, "AUS", True, "Australia", "Australia"
|
|
59
|
+
AW = "AW", _("Aruba"), 533, "ABW", False, "Aruba", "Aruba"
|
|
60
|
+
AX = "AX", _("Åland Islands"), 248, "ALA", False, "Åland Islands", "Åland Islands"
|
|
61
|
+
AZ = (
|
|
62
|
+
"AZ",
|
|
63
|
+
_("Azerbaijan"),
|
|
64
|
+
31,
|
|
65
|
+
"AZE",
|
|
66
|
+
True,
|
|
67
|
+
"Azerbaijan",
|
|
68
|
+
"the Republic of Azerbaijan",
|
|
69
|
+
)
|
|
70
|
+
BA = (
|
|
71
|
+
"BA",
|
|
72
|
+
_("Bosnia and Herzegovina"),
|
|
73
|
+
70,
|
|
74
|
+
"BIH",
|
|
75
|
+
True,
|
|
76
|
+
"Bosnia and Herzegovina",
|
|
77
|
+
"Bosnia and Herzegovina",
|
|
78
|
+
)
|
|
79
|
+
BB = "BB", _("Barbados"), 52, "BRB", True, "Barbados", "Barbados"
|
|
80
|
+
BD = (
|
|
81
|
+
"BD",
|
|
82
|
+
_("Bangladesh"),
|
|
83
|
+
50,
|
|
84
|
+
"BGD",
|
|
85
|
+
True,
|
|
86
|
+
"Bangladesh",
|
|
87
|
+
"the People's Republic of Bangladesh",
|
|
88
|
+
)
|
|
89
|
+
BE = "BE", _("Belgium"), 56, "BEL", True, "Belgium", "the Kingdom of Belgium"
|
|
90
|
+
BF = "BF", _("Burkina Faso"), 854, "BFA", True, "Burkina Faso", "Burkina Faso"
|
|
91
|
+
BG = "BG", _("Bulgaria"), 100, "BGR", True, "Bulgaria", "the Republic of Bulgaria"
|
|
92
|
+
BH = "BH", _("Bahrain"), 48, "BHR", True, "Bahrain", "the Kingdom of Bahrain"
|
|
93
|
+
BI = "BI", _("Burundi"), 108, "BDI", True, "Burundi", "the Republic of Burundi"
|
|
94
|
+
BJ = "BJ", _("Benin"), 204, "BEN", True, "Benin", "the Republic of Benin"
|
|
95
|
+
BL = (
|
|
96
|
+
"BL",
|
|
97
|
+
_("Saint Barthélemy"),
|
|
98
|
+
652,
|
|
99
|
+
"BLM",
|
|
100
|
+
False,
|
|
101
|
+
"Saint Barthélemy",
|
|
102
|
+
"Saint Barthélemy",
|
|
103
|
+
)
|
|
104
|
+
BM = "BM", _("Bermuda"), 60, "BMU", False, "Bermuda", "Bermuda"
|
|
105
|
+
BN = (
|
|
106
|
+
"BN",
|
|
107
|
+
_("Brunei Darussalam"),
|
|
108
|
+
96,
|
|
109
|
+
"BRN",
|
|
110
|
+
True,
|
|
111
|
+
"Brunei Darussalam",
|
|
112
|
+
"Brunei Darussalam",
|
|
113
|
+
)
|
|
114
|
+
BO = (
|
|
115
|
+
"BO",
|
|
116
|
+
_("Bolivia (Plurinational State of)"),
|
|
117
|
+
68,
|
|
118
|
+
"BOL",
|
|
119
|
+
True,
|
|
120
|
+
"Bolivia (Plurinational State of)",
|
|
121
|
+
"the Plurinational State of Bolivia",
|
|
122
|
+
)
|
|
123
|
+
BQ = (
|
|
124
|
+
"BQ",
|
|
125
|
+
_("Bonaire, Sint Eustatius and Saba"),
|
|
126
|
+
535,
|
|
127
|
+
"BES",
|
|
128
|
+
False,
|
|
129
|
+
"Bonaire, Sint Eustatius and Saba",
|
|
130
|
+
"Bonaire, Sint Eustatius and Saba",
|
|
131
|
+
)
|
|
132
|
+
BR = (
|
|
133
|
+
"BR",
|
|
134
|
+
_("Brazil"),
|
|
135
|
+
76,
|
|
136
|
+
"BRA",
|
|
137
|
+
True,
|
|
138
|
+
"Brazil",
|
|
139
|
+
"the Federative Republic of Brazil",
|
|
140
|
+
)
|
|
141
|
+
BS = (
|
|
142
|
+
"BS",
|
|
143
|
+
_("Bahamas (the)"),
|
|
144
|
+
44,
|
|
145
|
+
"BHS",
|
|
146
|
+
True,
|
|
147
|
+
"Bahamas (the)",
|
|
148
|
+
"the Commonwealth of the Bahamas",
|
|
149
|
+
)
|
|
150
|
+
BT = "BT", _("Bhutan"), 64, "BTN", True, "Bhutan", "the Kingdom of Bhutan"
|
|
151
|
+
BV = "BV", _("Bouvet Island"), 74, "BVT", False, "Bouvet Island", "Bouvet Island"
|
|
152
|
+
BW = "BW", _("Botswana"), 72, "BWA", True, "Botswana", "the Republic of Botswana"
|
|
153
|
+
BY = "BY", _("Belarus"), 112, "BLR", True, "Belarus", "the Republic of Belarus"
|
|
154
|
+
BZ = "BZ", _("Belize"), 84, "BLZ", True, "Belize", "Belize"
|
|
155
|
+
CA = "CA", _("Canada"), 124, "CAN", True, "Canada", "Canada"
|
|
156
|
+
CC = (
|
|
157
|
+
"CC",
|
|
158
|
+
_("Cocos (Keeling) Islands (the)"),
|
|
159
|
+
166,
|
|
160
|
+
"CCK",
|
|
161
|
+
False,
|
|
162
|
+
"Cocos (Keeling) Islands (the)",
|
|
163
|
+
"Cocos (Keeling) Islands (the)",
|
|
164
|
+
)
|
|
165
|
+
CD = (
|
|
166
|
+
"CD",
|
|
167
|
+
_("Congo (the Democratic Republic of the)"),
|
|
168
|
+
180,
|
|
169
|
+
"COD",
|
|
170
|
+
True,
|
|
171
|
+
"Congo (the Democratic Republic of the)",
|
|
172
|
+
"the Democratic Republic of the Congo",
|
|
173
|
+
)
|
|
174
|
+
CF = (
|
|
175
|
+
"CF",
|
|
176
|
+
_("Central African Republic (the)"),
|
|
177
|
+
140,
|
|
178
|
+
"CAF",
|
|
179
|
+
True,
|
|
180
|
+
"Central African Republic (the)",
|
|
181
|
+
"the Central African Republic",
|
|
182
|
+
)
|
|
183
|
+
CG = (
|
|
184
|
+
"CG",
|
|
185
|
+
_("Congo (the)"),
|
|
186
|
+
178,
|
|
187
|
+
"COG",
|
|
188
|
+
True,
|
|
189
|
+
"Congo (the)",
|
|
190
|
+
"the Republic of the Congo",
|
|
191
|
+
)
|
|
192
|
+
CH = (
|
|
193
|
+
"CH",
|
|
194
|
+
_("Switzerland"),
|
|
195
|
+
756,
|
|
196
|
+
"CHE",
|
|
197
|
+
True,
|
|
198
|
+
"Switzerland",
|
|
199
|
+
"the Swiss Confederation",
|
|
200
|
+
)
|
|
201
|
+
CI = (
|
|
202
|
+
"CI",
|
|
203
|
+
_("Côte d'Ivoire"),
|
|
204
|
+
384,
|
|
205
|
+
"CIV",
|
|
206
|
+
True,
|
|
207
|
+
"Côte d'Ivoire",
|
|
208
|
+
"the Republic of Côte d'Ivoire",
|
|
209
|
+
)
|
|
210
|
+
CK = (
|
|
211
|
+
"CK",
|
|
212
|
+
_("Cook Islands (the)"),
|
|
213
|
+
184,
|
|
214
|
+
"COK",
|
|
215
|
+
False,
|
|
216
|
+
"Cook Islands (the)",
|
|
217
|
+
"Cook Islands (the)",
|
|
218
|
+
)
|
|
219
|
+
CL = "CL", _("Chile"), 152, "CHL", True, "Chile", "the Republic of Chile"
|
|
220
|
+
CM = "CM", _("Cameroon"), 120, "CMR", True, "Cameroon", "the Republic of Cameroon"
|
|
221
|
+
CN = "CN", _("China"), 156, "CHN", True, "China", "the People's Republic of China"
|
|
222
|
+
CO = "CO", _("Colombia"), 170, "COL", True, "Colombia", "the Republic of Colombia"
|
|
223
|
+
CR = (
|
|
224
|
+
"CR",
|
|
225
|
+
_("Costa Rica"),
|
|
226
|
+
188,
|
|
227
|
+
"CRI",
|
|
228
|
+
True,
|
|
229
|
+
"Costa Rica",
|
|
230
|
+
"the Republic of Costa Rica",
|
|
231
|
+
)
|
|
232
|
+
CU = "CU", _("Cuba"), 192, "CUB", True, "Cuba", "the Republic of Cuba"
|
|
233
|
+
CV = (
|
|
234
|
+
"CV",
|
|
235
|
+
_("Cabo Verde"),
|
|
236
|
+
132,
|
|
237
|
+
"CPV",
|
|
238
|
+
True,
|
|
239
|
+
"Cabo Verde",
|
|
240
|
+
"the Republic of Cabo Verde",
|
|
241
|
+
)
|
|
242
|
+
CW = "CW", _("Curaçao"), 531, "CUW", False, "Curaçao", "Curaçao"
|
|
243
|
+
CX = (
|
|
244
|
+
"CX",
|
|
245
|
+
_("Christmas Island"),
|
|
246
|
+
162,
|
|
247
|
+
"CXR",
|
|
248
|
+
False,
|
|
249
|
+
"Christmas Island",
|
|
250
|
+
"Christmas Island",
|
|
251
|
+
)
|
|
252
|
+
CY = "CY", _("Cyprus"), 196, "CYP", True, "Cyprus", "the Republic of Cyprus"
|
|
253
|
+
CZ = "CZ", _("Czechia"), 203, "CZE", True, "Czechia", "the Czech Republic"
|
|
254
|
+
DE = (
|
|
255
|
+
"DE",
|
|
256
|
+
_("Germany"),
|
|
257
|
+
276,
|
|
258
|
+
"DEU",
|
|
259
|
+
True,
|
|
260
|
+
"Germany",
|
|
261
|
+
"the Federal Republic of Germany",
|
|
262
|
+
)
|
|
263
|
+
DJ = "DJ", _("Djibouti"), 262, "DJI", True, "Djibouti", "the Republic of Djibouti"
|
|
264
|
+
DK = "DK", _("Denmark"), 208, "DNK", True, "Denmark", "the Kingdom of Denmark"
|
|
265
|
+
DM = (
|
|
266
|
+
"DM",
|
|
267
|
+
_("Dominica"),
|
|
268
|
+
212,
|
|
269
|
+
"DMA",
|
|
270
|
+
True,
|
|
271
|
+
"Dominica",
|
|
272
|
+
"the Commonwealth of Dominica",
|
|
273
|
+
)
|
|
274
|
+
DO = (
|
|
275
|
+
"DO",
|
|
276
|
+
_("Dominican Republic (the)"),
|
|
277
|
+
214,
|
|
278
|
+
"DOM",
|
|
279
|
+
True,
|
|
280
|
+
"Dominican Republic (the)",
|
|
281
|
+
"the Dominican Republic",
|
|
282
|
+
)
|
|
283
|
+
DZ = (
|
|
284
|
+
"DZ",
|
|
285
|
+
_("Algeria"),
|
|
286
|
+
12,
|
|
287
|
+
"DZA",
|
|
288
|
+
True,
|
|
289
|
+
"Algeria",
|
|
290
|
+
"the People's Democratic Republic of Algeria",
|
|
291
|
+
)
|
|
292
|
+
EC = "EC", _("Ecuador"), 218, "ECU", True, "Ecuador", "the Republic of Ecuador"
|
|
293
|
+
EE = "EE", _("Estonia"), 233, "EST", True, "Estonia", "the Republic of Estonia"
|
|
294
|
+
EG = "EG", _("Egypt"), 818, "EGY", True, "Egypt", "the Arab Republic of Egypt"
|
|
295
|
+
EH = (
|
|
296
|
+
"EH",
|
|
297
|
+
_("Western Sahara*"),
|
|
298
|
+
732,
|
|
299
|
+
"ESH",
|
|
300
|
+
False,
|
|
301
|
+
"Western Sahara*",
|
|
302
|
+
"Western Sahara*",
|
|
303
|
+
)
|
|
304
|
+
ER = "ER", _("Eritrea"), 232, "ERI", True, "Eritrea", "the State of Eritrea"
|
|
305
|
+
ES = "ES", _("Spain"), 724, "ESP", True, "Spain", "the Kingdom of Spain"
|
|
306
|
+
ET = (
|
|
307
|
+
"ET",
|
|
308
|
+
_("Ethiopia"),
|
|
309
|
+
231,
|
|
310
|
+
"ETH",
|
|
311
|
+
True,
|
|
312
|
+
"Ethiopia",
|
|
313
|
+
"the Federal Democratic Republic of Ethiopia",
|
|
314
|
+
)
|
|
315
|
+
FI = "FI", _("Finland"), 246, "FIN", True, "Finland", "the Republic of Finland"
|
|
316
|
+
FJ = "FJ", _("Fiji"), 242, "FJI", True, "Fiji", "the Republic of Fiji"
|
|
317
|
+
FK = (
|
|
318
|
+
"FK",
|
|
319
|
+
_("Falkland Islands (the) [Malvinas]"),
|
|
320
|
+
238,
|
|
321
|
+
"FLK",
|
|
322
|
+
False,
|
|
323
|
+
"Falkland Islands (the) [Malvinas]",
|
|
324
|
+
"Falkland Islands (the) [Malvinas]",
|
|
325
|
+
)
|
|
326
|
+
FM = (
|
|
327
|
+
"FM",
|
|
328
|
+
_("Micronesia (Federated States of)"),
|
|
329
|
+
583,
|
|
330
|
+
"FSM",
|
|
331
|
+
True,
|
|
332
|
+
"Micronesia (Federated States of)",
|
|
333
|
+
"the Federated States of Micronesia",
|
|
334
|
+
)
|
|
335
|
+
FO = (
|
|
336
|
+
"FO",
|
|
337
|
+
_("Faroe Islands (the)"),
|
|
338
|
+
234,
|
|
339
|
+
"FRO",
|
|
340
|
+
False,
|
|
341
|
+
"Faroe Islands (the)",
|
|
342
|
+
"Faroe Islands (the)",
|
|
343
|
+
)
|
|
344
|
+
FR = "FR", _("France"), 250, "FRA", True, "France", "the French Republic"
|
|
345
|
+
GA = "GA", _("Gabon"), 266, "GAB", True, "Gabon", "the Gabonese Republic"
|
|
346
|
+
GB = (
|
|
347
|
+
"GB",
|
|
348
|
+
_("United Kingdom of Great Britain and Northern Ireland (the)"),
|
|
349
|
+
826,
|
|
350
|
+
"GBR",
|
|
351
|
+
True,
|
|
352
|
+
"United Kingdom of Great Britain and Northern Ireland (the)",
|
|
353
|
+
"the United Kingdom of Great Britain and Northern Ireland",
|
|
354
|
+
)
|
|
355
|
+
GD = "GD", _("Grenada"), 308, "GRD", True, "Grenada", "Grenada"
|
|
356
|
+
GE = "GE", _("Georgia"), 268, "GEO", True, "Georgia", "Georgia"
|
|
357
|
+
GF = "GF", _("French Guiana"), 254, "GUF", False, "French Guiana", "French Guiana"
|
|
358
|
+
GG = "GG", _("Guernsey"), 831, "GGY", False, "Guernsey", "Guernsey"
|
|
359
|
+
GH = "GH", _("Ghana"), 288, "GHA", True, "Ghana", "the Republic of Ghana"
|
|
360
|
+
GI = "GI", _("Gibraltar"), 292, "GIB", False, "Gibraltar", "Gibraltar"
|
|
361
|
+
GL = "GL", _("Greenland"), 304, "GRL", False, "Greenland", "Greenland"
|
|
362
|
+
GM = (
|
|
363
|
+
"GM",
|
|
364
|
+
_("Gambia (the)"),
|
|
365
|
+
270,
|
|
366
|
+
"GMB",
|
|
367
|
+
True,
|
|
368
|
+
"Gambia (the)",
|
|
369
|
+
"the Republic of the Gambia",
|
|
370
|
+
)
|
|
371
|
+
GN = "GN", _("Guinea"), 324, "GIN", True, "Guinea", "the Republic of Guinea"
|
|
372
|
+
GP = "GP", _("Guadeloupe"), 312, "GLP", False, "Guadeloupe", "Guadeloupe"
|
|
373
|
+
GQ = (
|
|
374
|
+
"GQ",
|
|
375
|
+
_("Equatorial Guinea"),
|
|
376
|
+
226,
|
|
377
|
+
"GNQ",
|
|
378
|
+
True,
|
|
379
|
+
"Equatorial Guinea",
|
|
380
|
+
"the Republic of Equatorial Guinea",
|
|
381
|
+
)
|
|
382
|
+
GR = "GR", _("Greece"), 300, "GRC", True, "Greece", "the Hellenic Republic"
|
|
383
|
+
GS = (
|
|
384
|
+
"GS",
|
|
385
|
+
_("South Georgia and the South Sandwich Islands"),
|
|
386
|
+
239,
|
|
387
|
+
"SGS",
|
|
388
|
+
False,
|
|
389
|
+
"South Georgia and the South Sandwich Islands",
|
|
390
|
+
"South Georgia and the South Sandwich Islands",
|
|
391
|
+
)
|
|
392
|
+
GT = (
|
|
393
|
+
"GT",
|
|
394
|
+
_("Guatemala"),
|
|
395
|
+
320,
|
|
396
|
+
"GTM",
|
|
397
|
+
True,
|
|
398
|
+
"Guatemala",
|
|
399
|
+
"the Republic of Guatemala",
|
|
400
|
+
)
|
|
401
|
+
GU = "GU", _("Guam"), 316, "GUM", False, "Guam", "Guam"
|
|
402
|
+
GW = (
|
|
403
|
+
"GW",
|
|
404
|
+
_("Guinea-Bissau"),
|
|
405
|
+
624,
|
|
406
|
+
"GNB",
|
|
407
|
+
True,
|
|
408
|
+
"Guinea-Bissau",
|
|
409
|
+
"the Republic of Guinea-Bissau",
|
|
410
|
+
)
|
|
411
|
+
GY = (
|
|
412
|
+
"GY",
|
|
413
|
+
_("Guyana"),
|
|
414
|
+
328,
|
|
415
|
+
"GUY",
|
|
416
|
+
True,
|
|
417
|
+
"Guyana",
|
|
418
|
+
"the Co-operative Republic of Guyana",
|
|
419
|
+
)
|
|
420
|
+
HK = (
|
|
421
|
+
"HK",
|
|
422
|
+
_("Hong Kong"),
|
|
423
|
+
344,
|
|
424
|
+
"HKG",
|
|
425
|
+
False,
|
|
426
|
+
"Hong Kong",
|
|
427
|
+
"the Hong Kong Special Administrative Region of China",
|
|
428
|
+
)
|
|
429
|
+
HM = (
|
|
430
|
+
"HM",
|
|
431
|
+
_("Heard Island and McDonald Islands"),
|
|
432
|
+
334,
|
|
433
|
+
"HMD",
|
|
434
|
+
False,
|
|
435
|
+
"Heard Island and McDonald Islands",
|
|
436
|
+
"Heard Island and McDonald Islands",
|
|
437
|
+
)
|
|
438
|
+
HN = "HN", _("Honduras"), 340, "HND", True, "Honduras", "the Republic of Honduras"
|
|
439
|
+
HR = "HR", _("Croatia"), 191, "HRV", True, "Croatia", "the Republic of Croatia"
|
|
440
|
+
HT = "HT", _("Haiti"), 332, "HTI", True, "Haiti", "the Republic of Haiti"
|
|
441
|
+
HU = "HU", _("Hungary"), 348, "HUN", True, "Hungary", "Hungary"
|
|
442
|
+
ID = (
|
|
443
|
+
"ID",
|
|
444
|
+
_("Indonesia"),
|
|
445
|
+
360,
|
|
446
|
+
"IDN",
|
|
447
|
+
True,
|
|
448
|
+
"Indonesia",
|
|
449
|
+
"the Republic of Indonesia",
|
|
450
|
+
)
|
|
451
|
+
IE = "IE", _("Ireland"), 372, "IRL", True, "Ireland", "Ireland"
|
|
452
|
+
IL = "IL", _("Israel"), 376, "ISR", True, "Israel", "the State of Israel"
|
|
453
|
+
IM = "IM", _("Isle of Man"), 833, "IMN", False, "Isle of Man", "Isle of Man"
|
|
454
|
+
IN = "IN", _("India"), 356, "IND", True, "India", "the Republic of India"
|
|
455
|
+
IO = (
|
|
456
|
+
"IO",
|
|
457
|
+
_("British Indian Ocean Territory (the)"),
|
|
458
|
+
86,
|
|
459
|
+
"IOT",
|
|
460
|
+
False,
|
|
461
|
+
"British Indian Ocean Territory (the)",
|
|
462
|
+
"British Indian Ocean Territory (the)",
|
|
463
|
+
)
|
|
464
|
+
IQ = "IQ", _("Iraq"), 368, "IRQ", True, "Iraq", "the Republic of Iraq"
|
|
465
|
+
IR = (
|
|
466
|
+
"IR",
|
|
467
|
+
_("Iran (Islamic Republic of)"),
|
|
468
|
+
364,
|
|
469
|
+
"IRN",
|
|
470
|
+
True,
|
|
471
|
+
"Iran (Islamic Republic of)",
|
|
472
|
+
"the Islamic Republic of Iran",
|
|
473
|
+
)
|
|
474
|
+
IS = "IS", _("Iceland"), 352, "ISL", True, "Iceland", "the Republic of Iceland"
|
|
475
|
+
IT = "IT", _("Italy"), 380, "ITA", True, "Italy", "the Republic of Italy"
|
|
476
|
+
JE = "JE", _("Jersey"), 832, "JEY", False, "Jersey", "Jersey"
|
|
477
|
+
JM = "JM", _("Jamaica"), 388, "JAM", True, "Jamaica", "Jamaica"
|
|
478
|
+
JO = (
|
|
479
|
+
"JO",
|
|
480
|
+
_("Jordan"),
|
|
481
|
+
400,
|
|
482
|
+
"JOR",
|
|
483
|
+
True,
|
|
484
|
+
"Jordan",
|
|
485
|
+
"the Hashemite Kingdom of Jordan",
|
|
486
|
+
)
|
|
487
|
+
JP = "JP", _("Japan"), 392, "JPN", True, "Japan", "Japan"
|
|
488
|
+
KE = "KE", _("Kenya"), 404, "KEN", True, "Kenya", "the Republic of Kenya"
|
|
489
|
+
KG = "KG", _("Kyrgyzstan"), 417, "KGZ", True, "Kyrgyzstan", "the Kyrgyz Republic"
|
|
490
|
+
KH = "KH", _("Cambodia"), 116, "KHM", True, "Cambodia", "the Kingdom of Cambodia"
|
|
491
|
+
KI = "KI", _("Kiribati"), 296, "KIR", True, "Kiribati", "the Republic of Kiribati"
|
|
492
|
+
KM = (
|
|
493
|
+
"KM",
|
|
494
|
+
_("Comoros (the)"),
|
|
495
|
+
174,
|
|
496
|
+
"COM",
|
|
497
|
+
True,
|
|
498
|
+
"Comoros (the)",
|
|
499
|
+
"the Union of the Comoros",
|
|
500
|
+
)
|
|
501
|
+
KN = (
|
|
502
|
+
"KN",
|
|
503
|
+
_("Saint Kitts and Nevis"),
|
|
504
|
+
659,
|
|
505
|
+
"KNA",
|
|
506
|
+
True,
|
|
507
|
+
"Saint Kitts and Nevis",
|
|
508
|
+
"Saint Kitts and Nevis",
|
|
509
|
+
)
|
|
510
|
+
KP = (
|
|
511
|
+
"KP",
|
|
512
|
+
_("Korea (the Democratic People's Republic of)"),
|
|
513
|
+
408,
|
|
514
|
+
"PRK",
|
|
515
|
+
True,
|
|
516
|
+
"Korea (the Democratic People's Republic of)",
|
|
517
|
+
"the Democratic People's Republic of Korea",
|
|
518
|
+
)
|
|
519
|
+
KR = (
|
|
520
|
+
"KR",
|
|
521
|
+
_("Korea (the Republic of)"),
|
|
522
|
+
410,
|
|
523
|
+
"KOR",
|
|
524
|
+
True,
|
|
525
|
+
"Korea (the Republic of)",
|
|
526
|
+
"the Republic of Korea",
|
|
527
|
+
)
|
|
528
|
+
KW = "KW", _("Kuwait"), 414, "KWT", True, "Kuwait", "the State of Kuwait"
|
|
529
|
+
KY = (
|
|
530
|
+
"KY",
|
|
531
|
+
_("Cayman Islands (the)"),
|
|
532
|
+
136,
|
|
533
|
+
"CYM",
|
|
534
|
+
False,
|
|
535
|
+
"Cayman Islands (the)",
|
|
536
|
+
"Cayman Islands (the)",
|
|
537
|
+
)
|
|
538
|
+
KZ = (
|
|
539
|
+
"KZ",
|
|
540
|
+
_("Kazakhstan"),
|
|
541
|
+
398,
|
|
542
|
+
"KAZ",
|
|
543
|
+
True,
|
|
544
|
+
"Kazakhstan",
|
|
545
|
+
"the Republic of Kazakhstan",
|
|
546
|
+
)
|
|
547
|
+
LA = (
|
|
548
|
+
"LA",
|
|
549
|
+
_("Lao People's Democratic Republic (the)"),
|
|
550
|
+
418,
|
|
551
|
+
"LAO",
|
|
552
|
+
True,
|
|
553
|
+
"Lao People's Democratic Republic (the)",
|
|
554
|
+
"the Lao People's Democratic Republic",
|
|
555
|
+
)
|
|
556
|
+
LB = "LB", _("Lebanon"), 422, "LBN", True, "Lebanon", "the Lebanese Republic"
|
|
557
|
+
LC = "LC", _("Saint Lucia"), 662, "LCA", True, "Saint Lucia", "Saint Lucia"
|
|
558
|
+
LI = (
|
|
559
|
+
"LI",
|
|
560
|
+
_("Liechtenstein"),
|
|
561
|
+
438,
|
|
562
|
+
"LIE",
|
|
563
|
+
True,
|
|
564
|
+
"Liechtenstein",
|
|
565
|
+
"the Principality of Liechtenstein",
|
|
566
|
+
)
|
|
567
|
+
LK = (
|
|
568
|
+
"LK",
|
|
569
|
+
_("Sri Lanka"),
|
|
570
|
+
144,
|
|
571
|
+
"LKA",
|
|
572
|
+
True,
|
|
573
|
+
"Sri Lanka",
|
|
574
|
+
"the Democratic Socialist Republic of Sri Lanka",
|
|
575
|
+
)
|
|
576
|
+
LR = "LR", _("Liberia"), 430, "LBR", True, "Liberia", "the Republic of Liberia"
|
|
577
|
+
LS = "LS", _("Lesotho"), 426, "LSO", True, "Lesotho", "the Kingdom of Lesotho"
|
|
578
|
+
LT = (
|
|
579
|
+
"LT",
|
|
580
|
+
_("Lithuania"),
|
|
581
|
+
440,
|
|
582
|
+
"LTU",
|
|
583
|
+
True,
|
|
584
|
+
"Lithuania",
|
|
585
|
+
"the Republic of Lithuania",
|
|
586
|
+
)
|
|
587
|
+
LU = (
|
|
588
|
+
"LU",
|
|
589
|
+
_("Luxembourg"),
|
|
590
|
+
442,
|
|
591
|
+
"LUX",
|
|
592
|
+
True,
|
|
593
|
+
"Luxembourg",
|
|
594
|
+
"the Grand Duchy of Luxembourg",
|
|
595
|
+
)
|
|
596
|
+
LV = "LV", _("Latvia"), 428, "LVA", True, "Latvia", "the Republic of Latvia"
|
|
597
|
+
LY = "LY", _("Libya"), 434, "LBY", True, "Libya", "the State of Libya"
|
|
598
|
+
MA = "MA", _("Morocco"), 504, "MAR", True, "Morocco", "the Kingdom of Morocco"
|
|
599
|
+
MC = "MC", _("Monaco"), 492, "MCO", True, "Monaco", "the Principality of Monaco"
|
|
600
|
+
MD = (
|
|
601
|
+
"MD",
|
|
602
|
+
_("Moldova (the Republic of)"),
|
|
603
|
+
498,
|
|
604
|
+
"MDA",
|
|
605
|
+
True,
|
|
606
|
+
"Moldova (the Republic of)",
|
|
607
|
+
"the Republic of Moldova",
|
|
608
|
+
)
|
|
609
|
+
ME = "ME", _("Montenegro"), 499, "MNE", True, "Montenegro", "Montenegro"
|
|
610
|
+
MF = (
|
|
611
|
+
"MF",
|
|
612
|
+
_("Saint Martin (French part)"),
|
|
613
|
+
663,
|
|
614
|
+
"MAF",
|
|
615
|
+
False,
|
|
616
|
+
"Saint Martin (French part)",
|
|
617
|
+
"Saint Martin (French part)",
|
|
618
|
+
)
|
|
619
|
+
MG = (
|
|
620
|
+
"MG",
|
|
621
|
+
_("Madagascar"),
|
|
622
|
+
450,
|
|
623
|
+
"MDG",
|
|
624
|
+
True,
|
|
625
|
+
"Madagascar",
|
|
626
|
+
"the Republic of Madagascar",
|
|
627
|
+
)
|
|
628
|
+
MH = (
|
|
629
|
+
"MH",
|
|
630
|
+
_("Marshall Islands (the)"),
|
|
631
|
+
584,
|
|
632
|
+
"MHL",
|
|
633
|
+
True,
|
|
634
|
+
"Marshall Islands (the)",
|
|
635
|
+
"the Republic of the Marshall Islands",
|
|
636
|
+
)
|
|
637
|
+
MK = (
|
|
638
|
+
"MK",
|
|
639
|
+
_("North Macedonia"),
|
|
640
|
+
807,
|
|
641
|
+
"MKD",
|
|
642
|
+
True,
|
|
643
|
+
"North Macedonia",
|
|
644
|
+
"the Republic of North Macedonia",
|
|
645
|
+
)
|
|
646
|
+
ML = "ML", _("Mali"), 466, "MLI", True, "Mali", "the Republic of Mali"
|
|
647
|
+
MM = (
|
|
648
|
+
"MM",
|
|
649
|
+
_("Myanmar"),
|
|
650
|
+
104,
|
|
651
|
+
"MMR",
|
|
652
|
+
True,
|
|
653
|
+
"Myanmar",
|
|
654
|
+
"the Republic of the Union of Myanmar",
|
|
655
|
+
)
|
|
656
|
+
MN = "MN", _("Mongolia"), 496, "MNG", True, "Mongolia", "Mongolia"
|
|
657
|
+
MO = (
|
|
658
|
+
"MO",
|
|
659
|
+
_("Macao"),
|
|
660
|
+
446,
|
|
661
|
+
"MAC",
|
|
662
|
+
False,
|
|
663
|
+
"Macao",
|
|
664
|
+
"Macao Special Administrative Region of China",
|
|
665
|
+
)
|
|
666
|
+
MP = (
|
|
667
|
+
"MP",
|
|
668
|
+
_("Northern Mariana Islands (the)"),
|
|
669
|
+
580,
|
|
670
|
+
"MNP",
|
|
671
|
+
False,
|
|
672
|
+
"Northern Mariana Islands (the)",
|
|
673
|
+
"the Commonwealth of the Northern Mariana Islands",
|
|
674
|
+
)
|
|
675
|
+
MQ = "MQ", _("Martinique"), 474, "MTQ", False, "Martinique", "Martinique"
|
|
676
|
+
MR = (
|
|
677
|
+
"MR",
|
|
678
|
+
_("Mauritania"),
|
|
679
|
+
478,
|
|
680
|
+
"MRT",
|
|
681
|
+
True,
|
|
682
|
+
"Mauritania",
|
|
683
|
+
"the Islamic Republic of Mauritania",
|
|
684
|
+
)
|
|
685
|
+
MS = "MS", _("Montserrat"), 500, "MSR", False, "Montserrat", "Montserrat"
|
|
686
|
+
MT = "MT", _("Malta"), 470, "MLT", True, "Malta", "the Republic of Malta"
|
|
687
|
+
MU = (
|
|
688
|
+
"MU",
|
|
689
|
+
_("Mauritius"),
|
|
690
|
+
480,
|
|
691
|
+
"MUS",
|
|
692
|
+
True,
|
|
693
|
+
"Mauritius",
|
|
694
|
+
"the Republic of Mauritius",
|
|
695
|
+
)
|
|
696
|
+
MV = "MV", _("Maldives"), 462, "MDV", True, "Maldives", "the Republic of Maldives"
|
|
697
|
+
MW = "MW", _("Malawi"), 454, "MWI", True, "Malawi", "the Republic of Malawi"
|
|
698
|
+
MX = "MX", _("Mexico"), 484, "MEX", True, "Mexico", "the United Mexican States"
|
|
699
|
+
MY = "MY", _("Malaysia"), 458, "MYS", True, "Malaysia", "Malaysia"
|
|
700
|
+
MZ = (
|
|
701
|
+
"MZ",
|
|
702
|
+
_("Mozambique"),
|
|
703
|
+
508,
|
|
704
|
+
"MOZ",
|
|
705
|
+
True,
|
|
706
|
+
"Mozambique",
|
|
707
|
+
"the Republic of Mozambique",
|
|
708
|
+
)
|
|
709
|
+
NA = "NA", _("Namibia"), 516, "NAM", True, "Namibia", "the Republic of Namibia"
|
|
710
|
+
NC = "NC", _("New Caledonia"), 540, "NCL", False, "New Caledonia", "New Caledonia"
|
|
711
|
+
NE = (
|
|
712
|
+
"NE",
|
|
713
|
+
_("Niger (the)"),
|
|
714
|
+
562,
|
|
715
|
+
"NER",
|
|
716
|
+
True,
|
|
717
|
+
"Niger (the)",
|
|
718
|
+
"the Republic of the Niger",
|
|
719
|
+
)
|
|
720
|
+
NF = (
|
|
721
|
+
"NF",
|
|
722
|
+
_("Norfolk Island"),
|
|
723
|
+
574,
|
|
724
|
+
"NFK",
|
|
725
|
+
False,
|
|
726
|
+
"Norfolk Island",
|
|
727
|
+
"Norfolk Island",
|
|
728
|
+
)
|
|
729
|
+
NG = (
|
|
730
|
+
"NG",
|
|
731
|
+
_("Nigeria"),
|
|
732
|
+
566,
|
|
733
|
+
"NGA",
|
|
734
|
+
True,
|
|
735
|
+
"Nigeria",
|
|
736
|
+
"the Federal Republic of Nigeria",
|
|
737
|
+
)
|
|
738
|
+
NI = (
|
|
739
|
+
"NI",
|
|
740
|
+
_("Nicaragua"),
|
|
741
|
+
558,
|
|
742
|
+
"NIC",
|
|
743
|
+
True,
|
|
744
|
+
"Nicaragua",
|
|
745
|
+
"the Republic of Nicaragua",
|
|
746
|
+
)
|
|
747
|
+
NL = (
|
|
748
|
+
"NL",
|
|
749
|
+
_("Netherlands (the)"),
|
|
750
|
+
528,
|
|
751
|
+
"NLD",
|
|
752
|
+
True,
|
|
753
|
+
"Netherlands (the)",
|
|
754
|
+
"the Kingdom of the Netherlands",
|
|
755
|
+
)
|
|
756
|
+
NO = "NO", _("Norway"), 578, "NOR", True, "Norway", "the Kingdom of Norway"
|
|
757
|
+
NP = "NP", _("Nepal"), 524, "NPL", True, "Nepal", "Nepal"
|
|
758
|
+
NR = "NR", _("Nauru"), 520, "NRU", True, "Nauru", "the Republic of Nauru"
|
|
759
|
+
NU = "NU", _("Niue"), 570, "NIU", False, "Niue", "Niue"
|
|
760
|
+
NZ = "NZ", _("New Zealand"), 554, "NZL", True, "New Zealand", "New Zealand"
|
|
761
|
+
OM = "OM", _("Oman"), 512, "OMN", True, "Oman", "the Sultanate of Oman"
|
|
762
|
+
PA = "PA", _("Panama"), 591, "PAN", True, "Panama", "the Republic of Panama"
|
|
763
|
+
PE = "PE", _("Peru"), 604, "PER", True, "Peru", "the Republic of Peru"
|
|
764
|
+
PF = (
|
|
765
|
+
"PF",
|
|
766
|
+
_("French Polynesia"),
|
|
767
|
+
258,
|
|
768
|
+
"PYF",
|
|
769
|
+
False,
|
|
770
|
+
"French Polynesia",
|
|
771
|
+
"French Polynesia",
|
|
772
|
+
)
|
|
773
|
+
PG = (
|
|
774
|
+
"PG",
|
|
775
|
+
_("Papua New Guinea"),
|
|
776
|
+
598,
|
|
777
|
+
"PNG",
|
|
778
|
+
True,
|
|
779
|
+
"Papua New Guinea",
|
|
780
|
+
"the Independent State of Papua New Guinea",
|
|
781
|
+
)
|
|
782
|
+
PH = (
|
|
783
|
+
"PH",
|
|
784
|
+
_("Philippines (the)"),
|
|
785
|
+
608,
|
|
786
|
+
"PHL",
|
|
787
|
+
True,
|
|
788
|
+
"Philippines (the)",
|
|
789
|
+
"the Republic of the Philippines",
|
|
790
|
+
)
|
|
791
|
+
PK = (
|
|
792
|
+
"PK",
|
|
793
|
+
_("Pakistan"),
|
|
794
|
+
586,
|
|
795
|
+
"PAK",
|
|
796
|
+
True,
|
|
797
|
+
"Pakistan",
|
|
798
|
+
"the Islamic Republic of Pakistan",
|
|
799
|
+
)
|
|
800
|
+
PL = "PL", _("Poland"), 616, "POL", True, "Poland", "the Republic of Poland"
|
|
801
|
+
PM = (
|
|
802
|
+
"PM",
|
|
803
|
+
_("Saint Pierre and Miquelon"),
|
|
804
|
+
666,
|
|
805
|
+
"SPM",
|
|
806
|
+
False,
|
|
807
|
+
"Saint Pierre and Miquelon",
|
|
808
|
+
"Saint Pierre and Miquelon",
|
|
809
|
+
)
|
|
810
|
+
PN = "PN", _("Pitcairn"), 612, "PCN", False, "Pitcairn", "Pitcairn"
|
|
811
|
+
PR = "PR", _("Puerto Rico"), 630, "PRI", False, "Puerto Rico", "Puerto Rico"
|
|
812
|
+
PS = (
|
|
813
|
+
"PS",
|
|
814
|
+
_("Palestine, State of"),
|
|
815
|
+
275,
|
|
816
|
+
"PSE",
|
|
817
|
+
False,
|
|
818
|
+
"Palestine, State of",
|
|
819
|
+
"the State of Palestine",
|
|
820
|
+
)
|
|
821
|
+
PT = "PT", _("Portugal"), 620, "PRT", True, "Portugal", "the Portuguese Republic"
|
|
822
|
+
PW = "PW", _("Palau"), 585, "PLW", True, "Palau", "the Republic of Palau"
|
|
823
|
+
PY = "PY", _("Paraguay"), 600, "PRY", True, "Paraguay", "the Republic of Paraguay"
|
|
824
|
+
QA = "QA", _("Qatar"), 634, "QAT", True, "Qatar", "the State of Qatar"
|
|
825
|
+
RE = "RE", _("Réunion"), 638, "REU", False, "Réunion", "Réunion"
|
|
826
|
+
RO = "RO", _("Romania"), 642, "ROU", True, "Romania", "Romania"
|
|
827
|
+
RS = "RS", _("Serbia"), 688, "SRB", True, "Serbia", "the Republic of Serbia"
|
|
828
|
+
RU = (
|
|
829
|
+
"RU",
|
|
830
|
+
_("Russian Federation (the)"),
|
|
831
|
+
643,
|
|
832
|
+
"RUS",
|
|
833
|
+
True,
|
|
834
|
+
"Russian Federation (the)",
|
|
835
|
+
"the Russian Federation",
|
|
836
|
+
)
|
|
837
|
+
RW = "RW", _("Rwanda"), 646, "RWA", True, "Rwanda", "the Republic of Rwanda"
|
|
838
|
+
SA = (
|
|
839
|
+
"SA",
|
|
840
|
+
_("Saudi Arabia"),
|
|
841
|
+
682,
|
|
842
|
+
"SAU",
|
|
843
|
+
True,
|
|
844
|
+
"Saudi Arabia",
|
|
845
|
+
"the Kingdom of Saudi Arabia",
|
|
846
|
+
)
|
|
847
|
+
SB = (
|
|
848
|
+
"SB",
|
|
849
|
+
_("Solomon Islands"),
|
|
850
|
+
90,
|
|
851
|
+
"SLB",
|
|
852
|
+
True,
|
|
853
|
+
"Solomon Islands",
|
|
854
|
+
"Solomon Islands",
|
|
855
|
+
)
|
|
856
|
+
SC = (
|
|
857
|
+
"SC",
|
|
858
|
+
_("Seychelles"),
|
|
859
|
+
690,
|
|
860
|
+
"SYC",
|
|
861
|
+
True,
|
|
862
|
+
"Seychelles",
|
|
863
|
+
"the Republic of Seychelles",
|
|
864
|
+
)
|
|
865
|
+
SD = (
|
|
866
|
+
"SD",
|
|
867
|
+
_("Sudan (the)"),
|
|
868
|
+
729,
|
|
869
|
+
"SDN",
|
|
870
|
+
True,
|
|
871
|
+
"Sudan (the)",
|
|
872
|
+
"the Republic of the Sudan",
|
|
873
|
+
)
|
|
874
|
+
SE = "SE", _("Sweden"), 752, "SWE", True, "Sweden", "the Kingdom of Sweden"
|
|
875
|
+
SG = (
|
|
876
|
+
"SG",
|
|
877
|
+
_("Singapore"),
|
|
878
|
+
702,
|
|
879
|
+
"SGP",
|
|
880
|
+
True,
|
|
881
|
+
"Singapore",
|
|
882
|
+
"the Republic of Singapore",
|
|
883
|
+
)
|
|
884
|
+
SH = (
|
|
885
|
+
"SH",
|
|
886
|
+
_("Saint Helena, Ascension and Tristan da Cunha"),
|
|
887
|
+
654,
|
|
888
|
+
"SHN",
|
|
889
|
+
False,
|
|
890
|
+
"Saint Helena, Ascension and Tristan da Cunha",
|
|
891
|
+
"Saint Helena, Ascension and Tristan da Cunha",
|
|
892
|
+
)
|
|
893
|
+
SI = "SI", _("Slovenia"), 705, "SVN", True, "Slovenia", "the Republic of Slovenia"
|
|
894
|
+
SJ = (
|
|
895
|
+
"SJ",
|
|
896
|
+
_("Svalbard and Jan Mayen"),
|
|
897
|
+
744,
|
|
898
|
+
"SJM",
|
|
899
|
+
False,
|
|
900
|
+
"Svalbard and Jan Mayen",
|
|
901
|
+
"Svalbard and Jan Mayen",
|
|
902
|
+
)
|
|
903
|
+
SK = "SK", _("Slovakia"), 703, "SVK", True, "Slovakia", "the Slovak Republic"
|
|
904
|
+
SL = (
|
|
905
|
+
"SL",
|
|
906
|
+
_("Sierra Leone"),
|
|
907
|
+
694,
|
|
908
|
+
"SLE",
|
|
909
|
+
True,
|
|
910
|
+
"Sierra Leone",
|
|
911
|
+
"the Republic of Sierra Leone",
|
|
912
|
+
)
|
|
913
|
+
SM = (
|
|
914
|
+
"SM",
|
|
915
|
+
_("San Marino"),
|
|
916
|
+
674,
|
|
917
|
+
"SMR",
|
|
918
|
+
True,
|
|
919
|
+
"San Marino",
|
|
920
|
+
"the Republic of San Marino",
|
|
921
|
+
)
|
|
922
|
+
SN = "SN", _("Senegal"), 686, "SEN", True, "Senegal", "the Republic of Senegal"
|
|
923
|
+
SO = (
|
|
924
|
+
"SO",
|
|
925
|
+
_("Somalia"),
|
|
926
|
+
706,
|
|
927
|
+
"SOM",
|
|
928
|
+
True,
|
|
929
|
+
"Somalia",
|
|
930
|
+
"the Federal Republic of Somalia",
|
|
931
|
+
)
|
|
932
|
+
SR = "SR", _("Suriname"), 740, "SUR", True, "Suriname", "the Republic of Suriname"
|
|
933
|
+
SS = (
|
|
934
|
+
"SS",
|
|
935
|
+
_("South Sudan"),
|
|
936
|
+
728,
|
|
937
|
+
"SSD",
|
|
938
|
+
True,
|
|
939
|
+
"South Sudan",
|
|
940
|
+
"the Republic of South Sudan",
|
|
941
|
+
)
|
|
942
|
+
ST = (
|
|
943
|
+
"ST",
|
|
944
|
+
_("Sao Tome and Principe"),
|
|
945
|
+
678,
|
|
946
|
+
"STP",
|
|
947
|
+
True,
|
|
948
|
+
"Sao Tome and Principe",
|
|
949
|
+
"the Democratic Republic of Sao Tome and Principe",
|
|
950
|
+
)
|
|
951
|
+
SV = (
|
|
952
|
+
"SV",
|
|
953
|
+
_("El Salvador"),
|
|
954
|
+
222,
|
|
955
|
+
"SLV",
|
|
956
|
+
True,
|
|
957
|
+
"El Salvador",
|
|
958
|
+
"the Republic of El Salvador",
|
|
959
|
+
)
|
|
960
|
+
SX = (
|
|
961
|
+
"SX",
|
|
962
|
+
_("Sint Maarten (Dutch part)"),
|
|
963
|
+
534,
|
|
964
|
+
"SXM",
|
|
965
|
+
False,
|
|
966
|
+
"Sint Maarten (Dutch part)",
|
|
967
|
+
"Sint Maarten (Dutch part)",
|
|
968
|
+
)
|
|
969
|
+
SY = (
|
|
970
|
+
"SY",
|
|
971
|
+
_("Syrian Arab Republic (the)"),
|
|
972
|
+
760,
|
|
973
|
+
"SYR",
|
|
974
|
+
True,
|
|
975
|
+
"Syrian Arab Republic (the)",
|
|
976
|
+
"the Syrian Arab Republic",
|
|
977
|
+
)
|
|
978
|
+
SZ = "SZ", _("Eswatini"), 748, "SWZ", True, "Eswatini", "the Kingdom of Eswatini"
|
|
979
|
+
TC = (
|
|
980
|
+
"TC",
|
|
981
|
+
_("Turks and Caicos Islands (the)"),
|
|
982
|
+
796,
|
|
983
|
+
"TCA",
|
|
984
|
+
False,
|
|
985
|
+
"Turks and Caicos Islands (the)",
|
|
986
|
+
"Turks and Caicos Islands (the)",
|
|
987
|
+
)
|
|
988
|
+
TD = "TD", _("Chad"), 148, "TCD", True, "Chad", "the Republic of Chad"
|
|
989
|
+
TF = (
|
|
990
|
+
"TF",
|
|
991
|
+
_("French Southern Territories (the)"),
|
|
992
|
+
260,
|
|
993
|
+
"ATF",
|
|
994
|
+
False,
|
|
995
|
+
"French Southern Territories (the)",
|
|
996
|
+
"French Southern Territories (the)",
|
|
997
|
+
)
|
|
998
|
+
TG = "TG", _("Togo"), 768, "TGO", True, "Togo", "the Togolese Republic"
|
|
999
|
+
TH = "TH", _("Thailand"), 764, "THA", True, "Thailand", "the Kingdom of Thailand"
|
|
1000
|
+
TJ = (
|
|
1001
|
+
"TJ",
|
|
1002
|
+
_("Tajikistan"),
|
|
1003
|
+
762,
|
|
1004
|
+
"TJK",
|
|
1005
|
+
True,
|
|
1006
|
+
"Tajikistan",
|
|
1007
|
+
"the Republic of Tajikistan",
|
|
1008
|
+
)
|
|
1009
|
+
TK = "TK", _("Tokelau"), 772, "TKL", False, "Tokelau", "Tokelau"
|
|
1010
|
+
TL = (
|
|
1011
|
+
"TL",
|
|
1012
|
+
_("Timor-Leste"),
|
|
1013
|
+
626,
|
|
1014
|
+
"TLS",
|
|
1015
|
+
True,
|
|
1016
|
+
"Timor-Leste",
|
|
1017
|
+
"the Democratic Republic of Timor-Leste",
|
|
1018
|
+
)
|
|
1019
|
+
TM = "TM", _("Turkmenistan"), 795, "TKM", True, "Turkmenistan", "Turkmenistan"
|
|
1020
|
+
TN = "TN", _("Tunisia"), 788, "TUN", True, "Tunisia", "the Republic of Tunisia"
|
|
1021
|
+
TO = "TO", _("Tonga"), 776, "TON", True, "Tonga", "the Kingdom of Tonga"
|
|
1022
|
+
TR = "TR", _("Türkiye"), 792, "TUR", True, "Türkiye", "the Republic of Türkiye"
|
|
1023
|
+
TT = (
|
|
1024
|
+
"TT",
|
|
1025
|
+
_("Trinidad and Tobago"),
|
|
1026
|
+
780,
|
|
1027
|
+
"TTO",
|
|
1028
|
+
True,
|
|
1029
|
+
"Trinidad and Tobago",
|
|
1030
|
+
"the Republic of Trinidad and Tobago",
|
|
1031
|
+
)
|
|
1032
|
+
TV = "TV", _("Tuvalu"), 798, "TUV", True, "Tuvalu", "Tuvalu"
|
|
1033
|
+
TW = "TW", _("Taiwan"), 158, "TWN", False, "Taiwan", "Taiwan (Province of China)"
|
|
1034
|
+
TZ = (
|
|
1035
|
+
"TZ",
|
|
1036
|
+
_("Tanzania, the United Republic of"),
|
|
1037
|
+
834,
|
|
1038
|
+
"TZA",
|
|
1039
|
+
True,
|
|
1040
|
+
"Tanzania, the United Republic of",
|
|
1041
|
+
"the United Republic of Tanzania",
|
|
1042
|
+
)
|
|
1043
|
+
UA = "UA", _("Ukraine"), 804, "UKR", True, "Ukraine", "Ukraine"
|
|
1044
|
+
UG = "UG", _("Uganda"), 800, "UGA", True, "Uganda", "the Republic of Uganda"
|
|
1045
|
+
UM = (
|
|
1046
|
+
"UM",
|
|
1047
|
+
_("United States Minor Outlying Islands (the)"),
|
|
1048
|
+
581,
|
|
1049
|
+
"UMI",
|
|
1050
|
+
False,
|
|
1051
|
+
"United States Minor Outlying Islands (the)",
|
|
1052
|
+
"United States Minor Outlying Islands (the)",
|
|
1053
|
+
)
|
|
1054
|
+
US = (
|
|
1055
|
+
"US",
|
|
1056
|
+
_("United States of America (the)"),
|
|
1057
|
+
840,
|
|
1058
|
+
"USA",
|
|
1059
|
+
True,
|
|
1060
|
+
"United States of America (the)",
|
|
1061
|
+
"the United States of America",
|
|
1062
|
+
)
|
|
1063
|
+
UY = (
|
|
1064
|
+
"UY",
|
|
1065
|
+
_("Uruguay"),
|
|
1066
|
+
858,
|
|
1067
|
+
"URY",
|
|
1068
|
+
True,
|
|
1069
|
+
"Uruguay",
|
|
1070
|
+
"the Eastern Republic of Uruguay",
|
|
1071
|
+
)
|
|
1072
|
+
UZ = (
|
|
1073
|
+
"UZ",
|
|
1074
|
+
_("Uzbekistan"),
|
|
1075
|
+
860,
|
|
1076
|
+
"UZB",
|
|
1077
|
+
True,
|
|
1078
|
+
"Uzbekistan",
|
|
1079
|
+
"the Republic of Uzbekistan",
|
|
1080
|
+
)
|
|
1081
|
+
VA = "VA", _("Holy See (the)"), 336, "VAT", True, "Holy See (the)", "Holy See (the)"
|
|
1082
|
+
VC = (
|
|
1083
|
+
"VC",
|
|
1084
|
+
_("Saint Vincent and the Grenadines"),
|
|
1085
|
+
670,
|
|
1086
|
+
"VCT",
|
|
1087
|
+
True,
|
|
1088
|
+
"Saint Vincent and the Grenadines",
|
|
1089
|
+
"Saint Vincent and the Grenadines",
|
|
1090
|
+
)
|
|
1091
|
+
VE = (
|
|
1092
|
+
"VE",
|
|
1093
|
+
_("Venezuela (Bolivarian Republic of)"),
|
|
1094
|
+
862,
|
|
1095
|
+
"VEN",
|
|
1096
|
+
True,
|
|
1097
|
+
"Venezuela (Bolivarian Republic of)",
|
|
1098
|
+
"the Bolivarian Republic of Venezuela",
|
|
1099
|
+
)
|
|
1100
|
+
VG = (
|
|
1101
|
+
"VG",
|
|
1102
|
+
_("Virgin Islands (British)"),
|
|
1103
|
+
92,
|
|
1104
|
+
"VGB",
|
|
1105
|
+
False,
|
|
1106
|
+
"Virgin Islands (British)",
|
|
1107
|
+
"British Virgin Islands (the)",
|
|
1108
|
+
)
|
|
1109
|
+
VI = (
|
|
1110
|
+
"VI",
|
|
1111
|
+
_("Virgin Islands (U.S.)"),
|
|
1112
|
+
850,
|
|
1113
|
+
"VIR",
|
|
1114
|
+
False,
|
|
1115
|
+
"Virgin Islands (U.S.)",
|
|
1116
|
+
"the Virgin Islands of the United States",
|
|
1117
|
+
)
|
|
1118
|
+
VN = (
|
|
1119
|
+
"VN",
|
|
1120
|
+
_("Viet Nam"),
|
|
1121
|
+
704,
|
|
1122
|
+
"VNM",
|
|
1123
|
+
True,
|
|
1124
|
+
"Viet Nam",
|
|
1125
|
+
"the Socialist Republic of Viet Nam",
|
|
1126
|
+
)
|
|
1127
|
+
VU = "VU", _("Vanuatu"), 548, "VUT", True, "Vanuatu", "the Republic of Vanuatu"
|
|
1128
|
+
WF = (
|
|
1129
|
+
"WF",
|
|
1130
|
+
_("Wallis and Futuna"),
|
|
1131
|
+
876,
|
|
1132
|
+
"WLF",
|
|
1133
|
+
False,
|
|
1134
|
+
"Wallis and Futuna",
|
|
1135
|
+
"Wallis and Futuna Islands",
|
|
1136
|
+
)
|
|
1137
|
+
WS = "WS", _("Samoa"), 882, "WSM", True, "Samoa", "the Independent State of Samoa"
|
|
1138
|
+
YE = "YE", _("Yemen"), 887, "YEM", True, "Yemen", "the Republic of Yemen"
|
|
1139
|
+
YT = "YT", _("Mayotte"), 175, "MYT", False, "Mayotte", "Mayotte"
|
|
1140
|
+
ZA = (
|
|
1141
|
+
"ZA",
|
|
1142
|
+
_("South Africa"),
|
|
1143
|
+
710,
|
|
1144
|
+
"ZAF",
|
|
1145
|
+
True,
|
|
1146
|
+
"South Africa",
|
|
1147
|
+
"the Republic of South Africa",
|
|
1148
|
+
)
|
|
1149
|
+
ZM = "ZM", _("Zambia"), 894, "ZMB", True, "Zambia", "the Republic of Zambia"
|
|
1150
|
+
ZW = "ZW", _("Zimbabwe"), 716, "ZWE", True, "Zimbabwe", "the Republic of Zimbabwe"
|
|
1151
|
+
# pylint: disable=C0303
|
|
1152
|
+
|
|
1153
|
+
@property
|
|
1154
|
+
def ascii(self):
|
|
1155
|
+
ascii_name = self.short_name
|
|
1156
|
+
for utf16, char in [("é", "e"), ("ç", "c"), ("ü", "u"), ("ô", "o"), ("Å", "A")]:
|
|
1157
|
+
ascii_name = ascii_name.replace(utf16, char)
|
|
1158
|
+
return ascii_name
|
|
1159
|
+
|
|
1160
|
+
@property
|
|
1161
|
+
def alpha2(self):
|
|
1162
|
+
return self.value
|
|
1163
|
+
|
|
1164
|
+
def __str__(self):
|
|
1165
|
+
"""
|
|
1166
|
+
The string representation of this enum is its alpha-2 country code
|
|
1167
|
+
"""
|
|
1168
|
+
return str(self.value)
|
|
1169
|
+
|
|
1170
|
+
@classmethod
|
|
1171
|
+
def with_stations(cls, objects=None):
|
|
1172
|
+
"""
|
|
1173
|
+
Get the list of countries that have ever had stations sited within.
|
|
1174
|
+
The result of this function is should not be read until after
|
|
1175
|
+
Django is initialized.
|
|
1176
|
+
|
|
1177
|
+
:param objects: The model manage for the model with the country field.
|
|
1178
|
+
"""
|
|
1179
|
+
if objects is None:
|
|
1180
|
+
from slm.models import SiteLocation
|
|
1181
|
+
|
|
1182
|
+
objects = SiteLocation.objects
|
|
1183
|
+
|
|
1184
|
+
return list(
|
|
1185
|
+
set(
|
|
1186
|
+
[
|
|
1187
|
+
country
|
|
1188
|
+
for country in objects.values_list("country", flat=True)
|
|
1189
|
+
.distinct()
|
|
1190
|
+
.order_by("country")
|
|
1191
|
+
if isinstance(country, cls)
|
|
1192
|
+
]
|
|
1193
|
+
)
|
|
1194
|
+
)
|