Beispiel #1
0
def _read_config():
    # we want to change the logging file to 'audit' and set it back
    # after we finished reading the config file
    # TODO Changing the component twice on every request is not nice
    comp = CFG.getComponent()
    initCFG("audit")

    enabled = CFG.get("enabled")
    server_url = CFG.get("server", "")

    # XXX haven't tested what happens if it's not set back to the original value
    initCFG(comp)

    return (enabled, server_url)
Beispiel #2
0
 def __init__(self):
     self._next_poll_interval = None
     self._notify_threshold = CFG.get('notify_threshold')
Beispiel #3
0
 def __init__(self):
     self._next_poll_interval = None
     self._notify_threshold = CFG.get('notify_threshold')
Beispiel #4
0
 def __init__(self, server_address):
     SocketServer.TCPServer.__init__(self, server_address, None)
     self._next_poll_interval = None
     self._notify_threshold = CFG.get('notify_threshold')
Beispiel #5
0
 def __init__(self, server_address):
     SocketServer.TCPServer.__init__(self, server_address, None)
     self._next_poll_interval = None
     self._notify_threshold = CFG.get('notify_threshold')