You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
895 B

  1. **Change a python dictionary (context for example)**
  2. .. code-block:: xml
  3. <attribute name="$attribute" operation="python_dict" key="$key">
  4. $new_value
  5. </attribute>
  6. Note that views are subject to evaluation of xmlids anyways, so if you need
  7. to refer to some xmlid, say ``%(xmlid)s``.
  8. **Move an element in the view**
  9. .. code-block:: xml
  10. <xpath expr="$xpath" position="move" target="$targetxpath" />
  11. This can also be used to wrap some element into another, create the target
  12. element first, then move the node youwant to wrap there.
  13. **Add to values in a list (states for example)**
  14. .. code-block:: xml
  15. <attribute name="$attribute" operation="list_add">
  16. $new_value(s)
  17. </attribute>
  18. **Remove values from a list (states for example)**
  19. .. code-block:: xml
  20. <attribute name="$attribute" operation="list_remove">
  21. $remove_value(s)
  22. </attribute>