From ef2443cb968a97556a70dfe4e1838847934fd175 Mon Sep 17 00:00:00 2001
From: Charles Haley
Stored templates must use General Program Mode -- they must - either begin with the text '{0}' or be {1}. You retrieve arguments - passed to a GPM stored template using the '{2}()' template function, as - in '{2}(var1, var2, ...)'. The passed arguments are copied to the named - variables. Arguments passed to a Python template are in the '{2}' - parameter. Arguments are always strings.
+Stored templates must use General Program Mode or Python Template + Mode -- they must begin with the text '{0}' or '{1}'. You retrieve + arguments passed to a GPM stored template using the '{2}()' template + function, as in '{2}(var1, var2, ...)'. The passed arguments are copied + to the named variables. Arguments passed to a Python template are in the + '{2}' attribute (a list) of the '{3}' parameter. Arguments are always + strings.
-For example, this stored template checks if any items are in a +
For example, this stored GPM template checks if any items are in a list, returning '1' if any are found and '' if not.
Template name: items_in_list
@@ -115,7 +116,7 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
See the template language tutorial for more information.