From ac4cb8bd992bb2c8a1370c6b79410b5c4ad817f6 Mon Sep 17 00:00:00 2001 From: Joel Bender Date: Wed, 16 Dec 2015 14:34:22 -0500 Subject: [PATCH] patch for #65 --- py25/bacpypes/primitivedata.py | 3 +++ py27/bacpypes/primitivedata.py | 3 +++ py34/bacpypes/primitivedata.py | 3 +++ 3 files changed, 9 insertions(+) diff --git a/py25/bacpypes/primitivedata.py b/py25/bacpypes/primitivedata.py index 8cf3aef..f54fc79 100755 --- a/py25/bacpypes/primitivedata.py +++ b/py25/bacpypes/primitivedata.py @@ -23,6 +23,7 @@ _log = ModuleLogger(globals()) # class Tag(object): + applicationTagClass = 0 contextTagClass = 1 openingTagClass = 2 @@ -1155,6 +1156,8 @@ _date_patterns = [ class Date(Atomic): + _app_tag = Tag.dateAppTag + def __init__(self, arg=None, year=255, month=255, day=255, day_of_week=255): self.value = (year, month, day, day_of_week) diff --git a/py27/bacpypes/primitivedata.py b/py27/bacpypes/primitivedata.py index e9b4793..6bf817e 100755 --- a/py27/bacpypes/primitivedata.py +++ b/py27/bacpypes/primitivedata.py @@ -23,6 +23,7 @@ _log = ModuleLogger(globals()) # class Tag(object): + applicationTagClass = 0 contextTagClass = 1 openingTagClass = 2 @@ -1161,6 +1162,8 @@ _date_patterns = [ class Date(Atomic): + _app_tag = Tag.dateAppTag + def __init__(self, arg=None, year=255, month=255, day=255, day_of_week=255): self.value = (year, month, day, day_of_week) diff --git a/py34/bacpypes/primitivedata.py b/py34/bacpypes/primitivedata.py index 7d414ce..6fe3efb 100755 --- a/py34/bacpypes/primitivedata.py +++ b/py34/bacpypes/primitivedata.py @@ -23,6 +23,7 @@ _log = ModuleLogger(globals()) # class Tag(object): + applicationTagClass = 0 contextTagClass = 1 openingTagClass = 2 @@ -1169,6 +1170,8 @@ _date_patterns = [ class Date(Atomic): + _app_tag = Tag.dateAppTag + def __init__(self, arg=None, year=255, month=255, day=255, day_of_week=255): self.value = (year, month, day, day_of_week)