1
0
mirror of https://github.com/JoelBender/bacpypes synced 2025-09-28 22:15:23 +08:00

add the mixin outline

This commit is contained in:
Joel Bender 2021-07-27 01:38:56 -04:00
parent 0c9c0dd0c1
commit 5ce45a45b7

View File

@ -80,6 +80,36 @@ class CurrentPropertyListMixIn(Object):
CurrentPropertyList(),
]
#
# WriteableObjectName
#
@bacpypes_debugging
class WriteableObjectName(WritableProperty):
def __init__(self):
if _debug: WriteableObjectName._debug("__init__")
WritableProperty.__init__(self, 'objectName', CharacterString, default=None, optional=False)
def WriteProperty(self, obj, value, arrayIndex=None, priority=None, direct=False):
if _debug:
WritableProperty._debug(
"WriteProperty %r %r arrayIndex=%r priority=%r direct=%r",
obj, value, arrayIndex, priority, direct,
)
raise ExecutionError(errorClass='property', errorCode='writeAccessDenied')
#
# WriteableObjectNameMixIn
#
@bacpypes_debugging
class WriteableObjectNameMixIn(Object):
properties = [
WriteableObjectName(),
]
#
# Turtle Reference Patterns
#