def represent_html_bodyonly(self, data): content = { 'title': data['id'], 'body': schema.to_html(data), } return TemplateRepresentation(content, self.req, 'generic_bodyonly.html')
def represent_html_bodyonly(self, content): content = { 'title': u'Search: %s ' % content['query'], 'body': schema.to_html(content['result']), } return TemplateRepresentation(content, self.req, 'generic_bodyonly.html')
def represent_html_bodyonly(self, data): content = {"title": data["id"], "body": schema.to_html(data)} return TemplateRepresentation(content, self.req, "generic_bodyonly.html")
def represent_html_bodyonly(self, content): content = {"title": u"Search: %s " % content["query"], "body": schema.to_html(content["result"])} return TemplateRepresentation(content, self.req, "generic_bodyonly.html")
def represent_html_default(self, content): content = {"title": content["query"], "body": schema.to_html(content["result"])} return TemplateRepresentation(content, self.req, "generic.html")
def represent_html_default(self, content): content = { 'title': content['query'], 'body': schema.to_html(content['result']), } return TemplateRepresentation(content, self.req, 'generic.html')