Skip to content

Commit cb25c01

Browse files
author
mhowes
committed
adding status, version bump, History.
1 parent c5538aa commit cb25c01

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

HISTORY.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
Release History
22
---------------
3+
4+
1.6.1 (2016-2-11)
5+
*Added UNKNOWN record type
6+
*DSF records status getter added
7+
38
1.6.0 (2016-1-28)
49
+++++++++++++++++
510
*DSF service objects can now be independently Created, Updated, Read, and Deleted.

dyn/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
66
Requires Python 2.6 or higher, or the "simplejson" package.
77
"""
8-
version_info = (1, 6, 0)
8+
version_info = (1, 6, 1)
99
__name__ = 'dyn'
1010
__doc__ = 'A python wrapper for the DynDNS and DynEmail APIs'
11-
__author__ = 'Jonathan Nappi, Cole Tuininga'
11+
__author__ = 'Jonathan Nappi, Cole Tuininga, Marc Howes'
1212
__version__ = '.'.join([str(x) for x in version_info])
1313
__maintainer__ = 'Marc Howes'
1414
__email__ = '[email protected]'

dyn/tm/services/dsf.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def __init__(self, label=None, weight=1, automation='auto', endpoints=None,
194194
self._endpoint_up_count = endpoint_up_count
195195
self._eligible = eligible
196196
self._service_id = self._dsf_record_set_id = self.uri = None
197-
self._dsf_record_id = None
197+
self._dsf_record_id = self._status = None
198198
self._implicitPublish = True
199199
for key, val in kwargs.items():
200200
setattr(self, '_' + key, val)
@@ -408,6 +408,13 @@ def eligible(self, value):
408408
if self._implicitPublish:
409409
self._eligible = value
410410

411+
@property
412+
def status(self):
413+
"""Status of Record"""
414+
self.refresh()
415+
return self._status
416+
417+
411418
def to_json(self, svc_id=None, skip_svc=False):
412419
"""Convert this DSFRecord to a json blob"""
413420

0 commit comments

Comments
 (0)