예제 #1
0
    def list(self):
        tunnel_dicts = []
        for tunnel in Tunnel.select():
            tunnel_dict = self.get(tunnel.id)
            tunnel_dicts.append(tunnel_dict)

        return tunnel_dicts
예제 #2
0
 def clear(self):
     for tunnel in Tunnel.select():
         self.remove(tunnel.id)