Esempio n. 1
0
    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
Esempio n. 2
0
 def loadAllPapps(self):
     PappLoaderABC.loadAllPapps(self)
     self.buildFrontend()
Esempio n. 3
0
 def __init__(self, *args, **kwargs):
     PappLoaderABC.__init__(self, *args, **kwargs)
     PappFrontendInstallerABC.__init__(self,
                                       *args,
                                       platformService="server",
                                       **kwargs)
Esempio n. 4
0
 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