from OFS.Folder import Folder from Globals import Persistent, Acquisition from zope.interface import implements from interfaces import IAffordanceManager class AffordanceManager(Folder, Acquisition.Implicit, Persistent): implements(IAffordanceManager) meta_type = 'AffordanceManager' id = 'affordances' def getAffordances(self): return self.objectValues('Affordance')