Skip to content
Permalink
Browse files

Update template for python HL API (#69)

* Add missing polling period for Attribute HL API

* Add event configuration for PythonHL

* Remove unsupported desciption tag
  • Loading branch information...
NexeyaSGara authored and Pascal-Verdier committed Oct 7, 2019
1 parent 1943cbe commit e33b142fcdb400e0a371213dbdbcafbec11a4633
@@ -262,8 +262,6 @@ class PythonUtils {
«IF !cmd.argout.description.empty» doc_out="«cmd.argout.description.oneLineString»",
«ENDIF»
«ENDIF»
«IF !cmd.description.empty» description="«cmd.description.oneLineString»",
«ENDIF»
«setAttrPropertyHL("display_level", cmd.displayLevel, false
«setAttrPropertyHL("polling_period", cmd.polledPeriod, false
«IF cmd.hasCommandArg» )
@@ -531,6 +529,17 @@ class PythonUtils {
«setAttrPropertyHL("standard_unit", attr.properties.standardUnit, true
«setAttrPropertyHL("display_unit", attr.properties.displayUnit, true
«setAttrPropertyHL("format", attr.properties.format.formatComaToPoint, true
«setAttrPropertyHL("polling_period", attr.polledPeriod, false
«IF attr.eventCriteria!=null»
«setAttrPropertyHL("period", attr.eventCriteria.period, false
«setAttrPropertyHL("rel_change", attr.eventCriteria.relChange, false
«setAttrPropertyHL("abs_change", attr.eventCriteria.absChange, false
«ENDIF»
«IF attr.evArchiveCriteria!=null»
«setAttrPropertyHL("archive_period", attr.evArchiveCriteria.period, false
«setAttrPropertyHL("archive_rel_change", attr.evArchiveCriteria.relChange, false
«setAttrPropertyHL("archive_abs_change", attr.evArchiveCriteria.absChange, false
«ENDIF»
«setAttrPropertyHL("max_value", attr.properties.maxValue, false
«setAttrPropertyHL("min_value", attr.properties.minValue, false
«setAttrPropertyHL("max_alarm", attr.properties.maxAlarm, false

0 comments on commit e33b142

Please sign in to comment.
You can’t perform that action at this time.