aboutsummaryrefslogtreecommitdiffstats
path: root/server/config.py
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2012-01-18 12:27:37 -0500
committerGuillaume Horel <guillaume.horel@gmail.com>2012-01-18 12:27:37 -0500
commitf70165ef6229a92bf8cfa6f16eff980a4a7491fe (patch)
treee2954759f71c0b4c482334ba9b278a4224e97197 /server/config.py
parent0ce9f4fb84693f34113630c59610b47a082ae71a (diff)
downloadalias-f70165ef6229a92bf8cfa6f16eff980a4a7491fe.tar.gz
Added setup.py and big reorg of the source tree
this should fix tickets #10 and #11
Diffstat (limited to 'server/config.py')
-rw-r--r--server/config.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/server/config.py b/server/config.py
deleted file mode 100644
index 74befe2..0000000
--- a/server/config.py
+++ /dev/null
@@ -1,18 +0,0 @@
-import ConfigParser
-
-class AliasConfigParser(ConfigParser.SafeConfigParser):
-
- def read(self, filename):
- ConfigParser.SafeConfigParser.read(self, filename)
- self.name = self.get("component", "name")
- self.root = self.get("component", "root")
- self.host = self.get("component", "host")
- self.secret = self.get("component", "secret")
- self.port = self.getint("component", "port")
- self.background = self.getboolean("component", "background")
- if self.has_option("component", "logfile"):
- self.logfile = self.get("component", "logfile")
- if self.has_option("component", "pidfile"):
- self.pidfile = self.get("component", "pidfile")
-
-config = AliasConfigParser()