Beispiel #1
0
    def __init__(self, config):
        self.config = config
        self.logger = logging.getLogger("NVD")
        self.database = MongoDB(self)
        self.xmpp = NVDXMPP(self)

        if self.config.importxml:
            self.import_xml()
        else:
            if not self.config.disablexmpp:
                self.xmpp.run()
            self.update()