def get_manageable_machines(): oms_root = db.get_root()['oms_root'] machines = map(follow_symlinks, oms_root['machines'].listcontent()) res = [(m, m.hostname) for m in machines if ICompute.providedBy(m) and IManageable.providedBy(m)] return res
def any_stack_installed(context): return IManageable.providedBy(context)