aboutsummaryrefslogtreecommitdiffstats
path: root/packages/torouter-web/tui/models/router_config.py
blob: e83f9aa75a928fb3217d6b0fafa779c24f7e70e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import web
from config import db

def new_config(conf):
  db.insert('router_config', 
            essid=conf['essid'],
            field1=conf['field1'],
            field2=conf['field2']
            )
  

def write_config():
  db.update('router_config', 
            essid=conf['essid'],
            field1=conf['field1'],
            field2=conf['field2']
            )