I am sorry if this seems obvious for you.
I am looking for a way to get the list of devices of a given group (I know the path to this group) in TAL language for a page template that I can call anywhere in zenoss.

I can get the path of groups but how can I get the objects contained in them?

You would use either the devices() method to get the list of devices directly in the group, or getSubDevices() to get all of the devices in the group and sub-groups.

[tal:block tal:define="devices python:here.getSubDevices();"]
  [ul]
    [li tal:repeat="device devices" tal:content="device/id"/]
  [/ul]
[/tal:block]

This is assuming that "here" is a group.
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to