Skip to content

Commit

Permalink
Renamed ProvinciaWIFICitySDK synchronizer to ProvinciaWifiCitySdkTour…
Browse files Browse the repository at this point in the history
…ism for consistency

#178
  • Loading branch information
nemesifier committed Sep 22, 2014
1 parent 114cc87 commit ddf2cf7
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion nodeshot/interoperability/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
('nodeshot.interoperability.synchronizers.OpenWisp', 'OpenWisp'),
('nodeshot.interoperability.synchronizers.OpenWispCitySdkTourism', 'OpenWispCitySdkTourism'),
('nodeshot.interoperability.synchronizers.ProvinciaWifi', 'Provincia WiFi'),
('nodeshot.interoperability.synchronizers.ProvinciaWIFICitySDK', 'ProvinciaWIFICitySDK'),
('nodeshot.interoperability.synchronizers.ProvinciaWifiCitySdkTourism', 'ProvinciaWifiCitySdkTourism'),
('nodeshot.interoperability.synchronizers.ProvinciaWifiCitySdkMobility', 'Synchronize Provincia Wifi with CitySDK Mobility'),
('nodeshot.interoperability.synchronizers.CitySdkMobility', 'CitySDK Mobility (event driven)'),
('nodeshot.interoperability.synchronizers.GeoJsonCitySdkMobility', 'Import GeoJSON into CitySDK Mobility API'),
Expand Down
10 changes: 0 additions & 10 deletions nodeshot/interoperability/synchronizers/ProvinciaWIFICitySDK.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

class ProvinciaWifiCitySdkMobility(CitySdkMobilityMixin, ProvinciaWifi):
"""
ProvinciaWIFICitySDK interoperability class
Imports data from Provincia WIFI Open Data and then exports the data to the CitySDK Mobility API database
ProvinciaWifiCitySdkMobility synchronizer
Imports data from Provincia WIFI in the local DB and it also sends it
to CitySDK mobility API
"""

REQUIRED_CONFIG_KEYS = [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from .ProvinciaWifi import ProvinciaWifi
from .CitySdkTourism import CitySdkTourismMixin


class ProvinciaWifiCitySdkTourism(CitySdkTourismMixin, ProvinciaWifi):
"""
ProvinciaWifiCitySdkTourism synchronizer
Imports data from Provincia WIFI in the local DB and it also sends it
to CitySDK tourism API
"""
pass
2 changes: 1 addition & 1 deletion nodeshot/interoperability/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ def test_provinciawifi_citysdk_tourism(self):
xml_url = '%s/provincia-wifi.xml' % TEST_FILES_PATH

external = LayerExternal(layer=layer)
external.interoperability = 'nodeshot.interoperability.synchronizers.ProvinciaWIFICitySDK'
external.interoperability = 'nodeshot.interoperability.synchronizers.ProvinciaWifiCitySdkTourism'
config = CITYSDK_TOURISM_TEST_CONFIG.copy()
config.update({
"status": "active",
Expand Down

0 comments on commit ddf2cf7

Please sign in to comment.