def all(self): ret = [] hosts = Host.all() for host in hosts: ret.append(host) return ret
def del_all(self): hosts = Host.all() for host in hosts: host.delete()
def count(self): count = 0 hosts = Host.all() count = hosts.count() return count