HOSTDEV-1186 getVirtualMachines and getFolders

================================================================================

Host Infrastructure / HOSTDEV-1186
pyvisdk: add getFolder and getVirtualApp

Type:              Task                              Status:        Open                       Assignee: Guy Rozendorn
Priority:          Minor                             Resolution:    Unresolved                 Reporter: Arnon Yaari
Affects Version/s:                                   Fix Version/s:
Components:                                                                                    Created: 2013-09-01 10:46
Labels:                                                                                        Updated: 2013-09-01 10:46

Issue Links:

Sub-Tasks:

Description:
{code}
all_vapps = flatten([[x for x in datacenter.getDecendants() if x.__class__.__name__ == "VirtualApp"] for datacenter in vim.getDatacenters()])
all_folders = flatten([[x for x in datacenter.getDecendants() if x.__class__.__name__ == "Folder"] for datacenter in vim.getDatacenters()]){code}
(or course, it would probably better to break this into loops, to get by name and to make more efficient)

Comments:
TRIVIAL version bump