From f54fe96d36551fc61d746d875365e6722d56afd2 Mon Sep 17 00:00:00 2001 From: Arturo FilastoĢ€ Date: Sat, 13 Aug 2011 03:19:24 +0200 Subject: Add parsing function to read and write /etc/network/interfaces files. --- packages/torouter-web/tui/controllers/network.py | 2 +- packages/torouter-web/tui/utils/parsing.py | 66 ++++++++++++++++++++++++ 2 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 packages/torouter-web/tui/utils/parsing.py (limited to 'packages/torouter-web/tui') diff --git a/packages/torouter-web/tui/controllers/network.py b/packages/torouter-web/tui/controllers/network.py index 4eb1991..b5da4e3 100644 --- a/packages/torouter-web/tui/controllers/network.py +++ b/packages/torouter-web/tui/controllers/network.py @@ -15,7 +15,7 @@ def menu(n): else: a.append("") print a - return """