summaryrefslogtreecommitdiff
path: root/pywhoisd.py
diff options
context:
space:
mode:
authorRaúl Benencia <rbenencia@linti.unlp.edu.ar>2012-08-02 13:58:58 -0300
committerRaúl Benencia <rbenencia@linti.unlp.edu.ar>2012-08-02 13:58:58 -0300
commit10e9272d170f5c634e8ca8f7415fb4ad1454bfe6 (patch)
tree8a41526b84c0586677bdc57fb62ee797efb14552 /pywhoisd.py
parent9afa33502b67151f36561119b70c765af675c1ca (diff)
Finished port to python3. Untested.
Diffstat (limited to 'pywhoisd.py')
-rwxr-xr-xpywhoisd.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/pywhoisd.py b/pywhoisd.py
index 6b8a36d..4e78564 100755
--- a/pywhoisd.py
+++ b/pywhoisd.py
@@ -1,6 +1,8 @@
#!/usr/bin/python3
import configparser
+
import core
+import xml
class PyWhoisD():
"""Main class. It reads the configuration options and starts the server"""
@@ -22,13 +24,13 @@ class PyWhoisD():
mode = self.config['Storage']['mode']
if mode == 'xml':
- self.data = WhoisData.WhoisDataXML(self.config)
+ self.data = xml.DataXML(self.config)
def config_daemon(self):
"""Config common information source for all configured servers"""
self.config_data()
- self.daemon = WhoisDaemon(self.data)
+ self.daemon = core.Daemon(self.data)
def web(self):
@@ -46,10 +48,10 @@ class PyWhoisD():
"""Sets up server configuration from config files"""
if self.classic():
- self.classic_server = core.WhoisClassicServer(self.config, self.daemon)
+ self.classic_server = core.ClassicServer(self.config, self.daemon)
if self.web():
- self.web_server = core.WhoisWebServer(self.config, self.daemon)
+ self.web_server = core.WebServer(self.config, self.daemon)
def start_servers(self):
"""Start configured servers"""
nihil fit ex nihilo