def _renderContacts(self, request):
    contacts = yield Contact.find()
for c in contacts:
    request.write(c.name)
if not request.finished:
    request.finish()

def render_GET(self, request):
    self._renderContacts(request)
return NOT_DONE_YET
Using inlineCallbacks