def unloadPapp(self, pappName: str): PappLoaderABC.unloadPapp(self, pappName) # Remove the Papp resource tree from peek_client.backend.SiteRootResource import root as serverRootResource try: serverRootResource.deleteChild(pappName.encode()) except KeyError: pass
def loadAllPapps(self): PappLoaderABC.loadAllPapps(self) self.buildFrontend()
def __init__(self, *args, **kwargs): PappLoaderABC.__init__(self, *args, **kwargs) PappFrontendInstallerABC.__init__(self, *args, platformService="server", **kwargs)
def __new__(cls, *args, **kwargs): assert cls._instance is None, "PappServerLoader is a singleton, don't construct it" cls._instance = PappLoaderABC.__new__(cls, *args, **kwargs) return cls._instance