コード例 #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)