aboutsummaryrefslogtreecommitdiffstats
path: root/packages/torouter-web/src/tui/models
diff options
context:
space:
mode:
authorJacob Appelbaum <jacob@appelbaum.net>2011-08-17 18:03:43 +0200
committerJacob Appelbaum <jacob@appelbaum.net>2011-08-17 18:03:43 +0200
commitbb4a0df747092bdc0fac0baa0658bf1d314a9de8 (patch)
tree7c41a9eb66549ad17c0e7e4c06cae19c1ac54916 /packages/torouter-web/src/tui/models
parent24b92ab9b034d6c957631a034a717ba41809a335 (diff)
downloadtorouter-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.py19
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']
+ )
+
+