morepath/morepath

Documentation bug

Closed this issue · 0 comments

zopyx commented

http://morepath.readthedocs.io/en/latest/superpowers.html#composable-views

@App.json(model=DocumentContainer)
def document_container_json(self, request):
    return [document_json(request, doc) for doc in self.entries()]

should be

@App.json(model=DocumentContainer)
def document_container_json(self, request):
    return [document_json(doc, request) for doc in self.entries()]