Pyramid: multiple resource factories — how to
问题 I have a simple root resource factory: class Root: __acl__ = [ (Allow, Authenticated, 'edit') ] Now for some "special" routes, I need to create another resource factory config.add_route('special', '/special/test', factory=SpecialFactory) class SpecialFactory: __acl__ = [ (Allow, Authenticated, 'special_edit') ] Now, I want to make Root the parent of SpecialFactory -- how should I do it? Is this the right way... class SpecialFactory: def __init__(self, request): self.request = request self._