Beispiel #1
0
    def all(self):
        ret = []
        hosts = Host.all()
        for host in hosts:
            ret.append(host)

        return ret
Beispiel #2
0
 def del_all(self):
     hosts = Host.all()
     for host in hosts:
         host.delete()
Beispiel #3
0
    def count(self):
        count = 0
        hosts = Host.all()
        count = hosts.count()

        return count