summaryrefslogtreecommitdiffstats
path: root/src/lib/Server
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-01-16 16:01:57 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-01-16 16:01:57 +0000
commit7ab3a36c1c5c6a25956910e283ff435188c247c1 (patch)
treea97ae46fa2d5cd6a781cc8cb557be51fec8c142e /src/lib/Server
parent8340206111ea2375589ea78ccb2142de21d292c0 (diff)
downloadbcfg2-7ab3a36c1c5c6a25956910e283ff435188c247c1.tar.gz
bcfg2-7ab3a36c1c5c6a25956910e283ff435188c247c1.tar.bz2
bcfg2-7ab3a36c1c5c6a25956910e283ff435188c247c1.zip
Pylint fixes
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2681 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server')
-rw-r--r--src/lib/Server/Component.py5
-rw-r--r--src/lib/Server/Plugins/Hostbase.py5
2 files changed, 3 insertions, 7 deletions
diff --git a/src/lib/Server/Component.py b/src/lib/Server/Component.py
index ecb476780..1a159282c 100644
--- a/src/lib/Server/Component.py
+++ b/src/lib/Server/Component.py
@@ -44,6 +44,7 @@ class CobaltXMLRPCRequestHandler(SimpleXMLRPCServer.SimpleXMLRPCRequestHandler):
self.connection.shutdown()
def setup(self):
+ '''Setup a working connection'''
self.connection = self.request
self.rfile = socket._fileobject(self.request, "rb", self.rbufsize)
self.wfile = socket._fileobject(self.request, "wb", self.wbufsize)
@@ -153,10 +154,6 @@ class Component(SSLServer,
self.assert_location()
atexit.register(self.deassert_location)
- def HandleEvents(self, address, event_list):
- '''Default event handler'''
- return True
-
def _cobalt_marshalled_dispatch(self, data, address):
"""Decode and dispatch XMLRPC requests. Overloaded to pass through
client address information
diff --git a/src/lib/Server/Plugins/Hostbase.py b/src/lib/Server/Plugins/Hostbase.py
index f4be21295..7247da30d 100644
--- a/src/lib/Server/Plugins/Hostbase.py
+++ b/src/lib/Server/Plugins/Hostbase.py
@@ -1,11 +1,10 @@
'''This file provides the Hostbase plugin. It manages dns/dhcp/nis host information'''
__revision__ = '$Revision$'
-import sys, os
+import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'Bcfg2.Server.Hostbase.settings'
from lxml.etree import Element, SubElement
-from syslog import syslog, LOG_INFO
-from Bcfg2.Server.Plugin import Plugin, PluginExecutionError, PluginInitError, DirectoryBacked
+from Bcfg2.Server.Plugin import Plugin, PluginExecutionError
from time import strftime
from sets import Set
from django.template import Context, loader