def _allowedTypesRuleset(self, instance): return utils.getPortalTypesByInterfaces(self, ('IRuleset', ))
def _getPortalTypesByInterfaces(self, allowed): portal_types = utils.getPortalTypesByInterfaces(self, allowed) # This is needed so PortalTypeConstraint doesn't believe we have # nothing selected, i.e. all allowed: portal_types.append('spam') return portal_types
def _allowedTypesRuleset(self, instance): return utils.getPortalTypesByInterfaces(self, ('IRuleset',))