def install(self, zport): """ Set the collector plugin """ ZenPackBase.install(self, zport) setuphandlers.install(zport, self)
def initialize(context): """ Zope Product """ zport = packutils.zentinel(context) if zport and not packutils.hasZenPack(zport, __name__): zpack = ZenPack(__name__) packutils.addZenPack(zport, zpack, SKINS_DIR, SKINNAME, GLOBALS) setuphandlers.install(zport, zpack)