Commits

Jean-François Roche committed ccf8369

fix as zope.app.publication is removed

Comments (0)

Files changed (1)

src/affinitic/zamqp/processor.py

 from time import sleep
 from ZODB.POSException import ConflictError
 from zope.component import createObject, queryUtility
-from zope.app.publication.zopepublication import ZopePublication
 from zope.component.hooks import setSite
 
 from affinitic.zamqp import logger
 
     def getSite(self):
         self.root = self.connection.root()
-        return getattr(self.root[ZopePublication.root_name], self.sitePath)
+        return getattr(self.root['Application'], self.sitePath)
 
     def registerConsumers(self, connectionId):
         self.consumerSet = createObject('ConsumerSet', connectionId)