def top_menu(self, request): if vcp_enabled(): return [{ 'name': _('vCenter'), 'icon': 'images/ui/menu/vsphere.png', 'onclick': 'Menu.openVcp();', 'weight': 8, }] return []
def init(tree_roots, nav, request): if not utils.vcp_enabled(): tree_roots.unregister(nav)