def __init__(self): self.plugs = {} # dict with the plugins self.reloadlock = thread.allocate_lock() # persisted data for deny of plugins (blacklist) self.plugdeny = Persist(datadir + os.sep + 'plugdeny', init=False) if not self.plugdeny.data: self.plugdeny.data = [] # persisted data for allowing of plugins (whitelist) self.plugallow = Persist(datadir + os.sep + 'plugallow', init=False) if not self.plugallow.data: self.plugallow.data = [] self.avail = [] # available plugins self.ondisk = [] # plugisn available for reload self.initcalled = [] # plugins which init functions are called self.overloads = {} # plugins to overload