From 5f53648315b1ed94f263da7c13d1754073649e9c Mon Sep 17 00:00:00 2001 From: Arturo FilastoĢ€ Date: Thu, 11 Aug 2011 13:47:41 +0200 Subject: Add the base skeleton for the web user interface --- packages/torouter-web/tui/models/router_config.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 packages/torouter-web/tui/models/router_config.py (limited to 'packages/torouter-web/tui/models') diff --git a/packages/torouter-web/tui/models/router_config.py b/packages/torouter-web/tui/models/router_config.py new file mode 100644 index 0000000..e83f9aa --- /dev/null +++ b/packages/torouter-web/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'] + ) + + -- cgit v1.2.3