Skip to content

Commit

Permalink
Rename service base class to DataService
Browse files Browse the repository at this point in the history
There will be a similar FileService base class for some other services
in future.

Signed-off-by: Jim Easterbrook <jim@jim-easterbrook.me.uk>
  • Loading branch information
jim-easterbrook committed Aug 20, 2018
1 parent 99d7e5a commit 3b73c4d
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions src/pywws/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = '18.6.4'
_release = '1560'
_commit = '433cb89'
__version__ = '18.8.0'
_release = '1561'
_commit = '99d7e5a'
2 changes: 1 addition & 1 deletion src/pywws/examples/modules/aws_api_gw_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
logger = logging.getLogger(__name__)


class ToService(pywws.service.BaseToService):
class ToService(pywws.service.DataService):
catchup = 100
fixed_data = {}
interval = timedelta(seconds=300)
Expand Down
2 changes: 1 addition & 1 deletion src/pywws/service/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def log(self, message):
self.old_message = message


class BaseToService(object):
class DataService(object):
log_count = True

def __init__(self, context):
Expand Down
2 changes: 1 addition & 1 deletion src/pywws/service/cwop.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
logger = logging.getLogger(__name__)


class ToService(pywws.service.BaseToService):
class ToService(pywws.service.DataService):
catchup = 0
fixed_data = {'version': pywws.__version__}
interval = timedelta(seconds=290)
Expand Down
2 changes: 1 addition & 1 deletion src/pywws/service/metoffice.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
logger = logging.getLogger(__name__)


class ToService(pywws.service.BaseToService):
class ToService(pywws.service.DataService):
catchup = 7
fixed_data = {'softwaretype': 'pywws-' + pywws.__version__}
interval = timedelta(seconds=300)
Expand Down
2 changes: 1 addition & 1 deletion src/pywws/service/mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
logger = logging.getLogger(__name__)


class ToService(pywws.service.BaseToService):
class ToService(pywws.service.DataService):
catchup = 0
fixed_data = {}
interval = timedelta(seconds=40)
Expand Down
2 changes: 1 addition & 1 deletion src/pywws/service/openweathermap.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
logger = logging.getLogger(__name__)


class ToService(pywws.service.BaseToService):
class ToService(pywws.service.DataService):
catchup = 7
fixed_data = {}
interval = timedelta(seconds=40)
Expand Down
2 changes: 1 addition & 1 deletion src/pywws/service/pwsweather.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
logger = logging.getLogger(__name__)


class ToService(pywws.service.BaseToService):
class ToService(pywws.service.DataService):
catchup = 7
fixed_data = {'action': 'updateraw', 'softwaretype': 'pywws'}
interval = timedelta(seconds=40)
Expand Down
2 changes: 1 addition & 1 deletion src/pywws/service/temperaturnu.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
logger = logging.getLogger(__name__)


class ToService(pywws.service.BaseToService):
class ToService(pywws.service.DataService):
catchup = 0
fixed_data = {}
interval = timedelta(seconds=40)
Expand Down
2 changes: 1 addition & 1 deletion src/pywws/service/underground.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
logger = logging.getLogger(__name__)


class ToService(pywws.service.BaseToService):
class ToService(pywws.service.DataService):
catchup = 7
fixed_data = {'action': 'updateraw', 'softwaretype': 'pywws'}
interval = timedelta(seconds=40)
Expand Down
2 changes: 1 addition & 1 deletion src/pywws/service/wetterarchivde.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
logger = logging.getLogger(__name__)


class ToService(pywws.service.BaseToService):
class ToService(pywws.service.DataService):
catchup = 7
fixed_data = {'sid': 'pywws'}
interval = timedelta(seconds=290)
Expand Down

0 comments on commit 3b73c4d

Please sign in to comment.