Skip to content

Commit

Permalink
clean up camel case names that should have been hyphenated
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelBender committed Jul 27, 2021
1 parent f2b22d2 commit 172070f
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 30 deletions.
2 changes: 1 addition & 1 deletion py27/bacpypes/apdu.py
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,7 @@ class GetEnrollmentSummaryRequestEventStateFilterType(Enumerated):
, 'active':4
}

class GetEnrollmentSummaryRequestPriorityFilterType:
class GetEnrollmentSummaryRequestPriorityFilterType(Sequence):
sequenceElements = \
[ Element('minPriority', Unsigned, 0)
, Element('maxPriority', Unsigned, 1)
Expand Down
24 changes: 12 additions & 12 deletions py27/bacpypes/basetypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,8 @@ class BinaryLightingPV(Enumerated):
{ 'off':0
, 'on':1
, 'warn':2
, 'warn-off':3
, 'warn-relinquish':4
, 'warnOff':3
, 'warnRelinquish':4
, 'stop':5
}

Expand Down Expand Up @@ -1016,11 +1016,11 @@ class EventType(Enumerated):
class FaultType(Enumerated):
enumerations = \
{ 'none':0
, 'fault-characterstring':1
, 'fault-extended':2
, 'fault-life-safety':3
, 'fault-state':4
, 'fault-status-flags':5
, 'faultCharacterstring':1
, 'faultExtended':2
, 'faultLifeSafety':3
, 'faultState':4
, 'faultStatusFlags':5
}

class FileAccessMethod(Enumerated):
Expand Down Expand Up @@ -1831,7 +1831,7 @@ class Reliability(Enumerated):
, 'lampFailure': 16
, 'activationFailure': 17
, 'renewDHCPFailure': 18
, 'renewFDRegistration-failure': 19
, 'renewFDRegistrationFailure': 19
, 'restartAutoNegotiationFailure': 20
, 'restartFailure': 21
, 'proprietaryCommandFailure': 22
Expand Down Expand Up @@ -1918,12 +1918,12 @@ class VTClass(Enumerated):
vendor_range = (64, 65535)
enumerations = \
{ 'defaultTerminal':0
, 'ansiX3-64':1
, 'ansiX364':1
, 'decVt52':2
, 'decVt100':3
, 'decVt220':4
, 'hp-700-94':5
, 'ibm-3130':6
, 'hp70094':5
, 'ibm3130':6
}

class WriteStatus(Enumerated):
Expand Down Expand Up @@ -3187,7 +3187,7 @@ class ValueSource(Choice):
choiceElements = \
[ Element('none', Null, 0)
, Element('object', DeviceObjectReference, 1)
, Element('Address', Address)
, Element('address', Address, 2)
]


Expand Down
4 changes: 2 additions & 2 deletions py27/bacpypes/object.py
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ class AnalogValueObject(Object):

@register_object_type
class AuditLogObject(Object):
objectType = 'analogLog'
objectType = 'auditLog'

properties = \
[ ReadableProperty('statusFlags', StatusFlags)
Expand Down Expand Up @@ -1217,7 +1217,7 @@ class BinaryInputObject(Object):

@register_object_type
class BinaryLightingOutputObject(Object):
objectType = 'binaryLightingOutputObject'
objectType = 'binaryLightingOutput'

properties = \
[ WritableProperty('presentValue', BinaryLightingPV)
Expand Down
1 change: 1 addition & 0 deletions py27/bacpypes/primitivedata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1714,6 +1714,7 @@ class ObjectType(Enumerated):
, 'program':16
, 'pulseConverter':24
, 'schedule':17
, 'staging':60
, 'structuredView':29
, 'timePatternValue':49
, 'timeValue':50
Expand Down
2 changes: 1 addition & 1 deletion py34/bacpypes/apdu.py
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,7 @@ class GetEnrollmentSummaryRequestEventStateFilterType(Enumerated):
, 'active':4
}

class GetEnrollmentSummaryRequestPriorityFilterType:
class GetEnrollmentSummaryRequestPriorityFilterType(Sequence):
sequenceElements = \
[ Element('minPriority', Unsigned, 0)
, Element('maxPriority', Unsigned, 1)
Expand Down
24 changes: 12 additions & 12 deletions py34/bacpypes/basetypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,8 @@ class BinaryLightingPV(Enumerated):
{ 'off':0
, 'on':1
, 'warn':2
, 'warn-off':3
, 'warn-relinquish':4
, 'warnOff':3
, 'warnRelinquish':4
, 'stop':5
}

Expand Down Expand Up @@ -1016,11 +1016,11 @@ class EventType(Enumerated):
class FaultType(Enumerated):
enumerations = \
{ 'none':0
, 'fault-characterstring':1
, 'fault-extended':2
, 'fault-life-safety':3
, 'fault-state':4
, 'fault-status-flags':5
, 'faultCharacterstring':1
, 'faultExtended':2
, 'faultLifeSafety':3
, 'faultState':4
, 'faultStatusFlags':5
}

class FileAccessMethod(Enumerated):
Expand Down Expand Up @@ -1831,7 +1831,7 @@ class Reliability(Enumerated):
, 'lampFailure': 16
, 'activationFailure': 17
, 'renewDHCPFailure': 18
, 'renewFDRegistration-failure': 19
, 'renewFDRegistrationFailure': 19
, 'restartAutoNegotiationFailure': 20
, 'restartFailure': 21
, 'proprietaryCommandFailure': 22
Expand Down Expand Up @@ -1918,12 +1918,12 @@ class VTClass(Enumerated):
vendor_range = (64, 65535)
enumerations = \
{ 'defaultTerminal':0
, 'ansiX3-64':1
, 'ansiX364':1
, 'decVt52':2
, 'decVt100':3
, 'decVt220':4
, 'hp-700-94':5
, 'ibm-3130':6
, 'hp70094':5
, 'ibm3130':6
}

class WriteStatus(Enumerated):
Expand Down Expand Up @@ -3187,7 +3187,7 @@ class ValueSource(Choice):
choiceElements = \
[ Element('none', Null, 0)
, Element('object', DeviceObjectReference, 1)
, Element('Address', Address)
, Element('address', Address, 2)
]


Expand Down
4 changes: 2 additions & 2 deletions py34/bacpypes/object.py
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ class AnalogValueObject(Object):

@register_object_type
class AuditLogObject(Object):
objectType = 'analogLog'
objectType = 'auditLog'

properties = \
[ ReadableProperty('statusFlags', StatusFlags)
Expand Down Expand Up @@ -1217,7 +1217,7 @@ class BinaryInputObject(Object):

@register_object_type
class BinaryLightingOutputObject(Object):
objectType = 'binaryLightingOutputObject'
objectType = 'binaryLightingOutput'

properties = \
[ WritableProperty('presentValue', BinaryLightingPV)
Expand Down
1 change: 1 addition & 0 deletions py34/bacpypes/primitivedata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1696,6 +1696,7 @@ class ObjectType(Enumerated):
, 'program':16
, 'pulseConverter':24
, 'schedule':17
, 'staging':60
, 'structuredView':29
, 'timePatternValue':49
, 'timeValue':50
Expand Down

0 comments on commit 172070f

Please sign in to comment.