Exemplo n.º 1
0
    def all(self):
        ret = []
        hosts = Host.all()
        for host in hosts:
            ret.append(host)

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

        return count