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

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

        return count