Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
Update template for python HL API (#69)
Browse files Browse the repository at this point in the history
* 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 e33b142
Showing 1 changed file with 11 additions and 2 deletions.
Expand Up @@ -262,8 +262,6 @@ class PythonUtils {
«IF !cmd.argout.description.empty» doc_out="«cmd.argout.description.oneLineString»", «IF !cmd.argout.description.empty» doc_out="«cmd.argout.description.oneLineString»",
«ENDIF» «ENDIF»
«ENDIF» «ENDIF»
«IF !cmd.description.empty» description="«cmd.description.oneLineString»",
«ENDIF»
«setAttrPropertyHL("display_level", cmd.displayLevel, false «setAttrPropertyHL("display_level", cmd.displayLevel, false
«setAttrPropertyHL("polling_period", cmd.polledPeriod, false «setAttrPropertyHL("polling_period", cmd.polledPeriod, false
«IF cmd.hasCommandArg» ) «IF cmd.hasCommandArg» )
Expand Down Expand Up @@ -531,6 +529,17 @@ class PythonUtils {
«setAttrPropertyHL("standard_unit", attr.properties.standardUnit, true «setAttrPropertyHL("standard_unit", attr.properties.standardUnit, true
«setAttrPropertyHL("display_unit", attr.properties.displayUnit, true «setAttrPropertyHL("display_unit", attr.properties.displayUnit, true
«setAttrPropertyHL("format", attr.properties.format.formatComaToPoint, 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("max_value", attr.properties.maxValue, false
«setAttrPropertyHL("min_value", attr.properties.minValue, false «setAttrPropertyHL("min_value", attr.properties.minValue, false
«setAttrPropertyHL("max_alarm", attr.properties.maxAlarm, false «setAttrPropertyHL("max_alarm", attr.properties.maxAlarm, false
Expand Down

0 comments on commit e33b142

Please sign in to comment.