diff options
author | Jacob Appelbaum <jacob@appelbaum.net> | 2011-08-17 18:03:43 +0200 |
---|---|---|
committer | Jacob Appelbaum <jacob@appelbaum.net> | 2011-08-17 18:03:43 +0200 |
commit | bb4a0df747092bdc0fac0baa0658bf1d314a9de8 (patch) | |
tree | 7c41a9eb66549ad17c0e7e4c06cae19c1ac54916 /packages/torouter-web/src/tui/models | |
parent | 24b92ab9b034d6c957631a034a717ba41809a335 (diff) | |
download | torouter-bb4a0df747092bdc0fac0baa0658bf1d314a9de8.tar.gz torouter-bb4a0df747092bdc0fac0baa0658bf1d314a9de8.zip |
Move source into src dir
Diffstat (limited to 'packages/torouter-web/src/tui/models')
-rw-r--r-- | packages/torouter-web/src/tui/models/router_config.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/torouter-web/src/tui/models/router_config.py b/packages/torouter-web/src/tui/models/router_config.py new file mode 100644 index 0000000..e83f9aa --- /dev/null +++ b/packages/torouter-web/src/tui/models/router_config.py @@ -0,0 +1,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'] + ) + + |