cfme.intelligence.reports.menus module

Module handling report menus contents

cfme.intelligence.reports.menus.add_folder(group, folder)[source]

Adds a folder under top-level.

Parameters:
  • group – User group.
  • folder – Name of the new folder.
cfme.intelligence.reports.menus.add_subfolder(group, folder, subfolder)[source]

Adds a subfolder under specified folder.

Parameters:
  • group – User group.
  • folder – Name of the folder.
  • subfolder – Name of the new subdfolder.
cfme.intelligence.reports.menus.get_folders(group)[source]

Returns list of folders for given user group.

Parameters:group – User group to check.
cfme.intelligence.reports.menus.get_subfolders(group, folder)[source]

Returns list of sub-folders for given user group and folder.

Parameters:
  • group – User group to check.
  • folder – Folder to read.
cfme.intelligence.reports.menus.manage_folder(*args, **kwds)[source]

Context manager to use when modifying the folder contents.

You can use manager’s FolderManager.bail_out() classmethod to end and discard the changes done inside the with block. This context manager does not give the manager as a value to the with block so you have to import and use the FolderManager class manually.

Parameters:
  • group – User group.
  • folder – Which folder to manage. If None, top-level will be managed.

Returns: Context-managed cfme.intelligence.reports.ui_elements.FolderManager inst.

cfme.intelligence.reports.menus.manage_subfolder(*args, **kwds)[source]

Context manager to use when modifying the subfolder contents.

You can use manager’s FolderManager.bail_out() classmethod to end and discard the changes done inside the with block.

Parameters:
  • group – User group.
  • folder – Parent folder name.
  • subfolder – Subfodler name to manage.

Returns: Context-managed cfme.intelligence.reports.ui_elements.FolderManager inst.

cfme.intelligence.reports.menus.reset_to_default(group)[source]

Clicks the Default button.

Parameters:group – Group to set to Default