Beispiel #1
0
 def represent_html_bodyonly(self, data):
     content = {
         'title': data['id'],
         'body': schema.to_html(data),
     }
     return TemplateRepresentation(content, self.req,
                                   'generic_bodyonly.html')
Beispiel #2
0
 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')
Beispiel #3
0
 def represent_html_bodyonly(self, data):
     content = {"title": data["id"], "body": schema.to_html(data)}
     return TemplateRepresentation(content, self.req, "generic_bodyonly.html")
Beispiel #4
0
 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")
Beispiel #5
0
 def represent_html_default(self, content):
     content = {"title": content["query"], "body": schema.to_html(content["result"])}
     return TemplateRepresentation(content, self.req, "generic.html")
Beispiel #6
0
 def represent_html_default(self, content):
     content = {
         'title': content['query'],
         'body': schema.to_html(content['result']),
     }
     return TemplateRepresentation(content, self.req, 'generic.html')
Beispiel #7
0
 def represent_html_bodyonly(self, data):
     content = {
         'title': data['id'],
         'body': schema.to_html(data),
     }
     return TemplateRepresentation(content, self.req, 'generic_bodyonly.html')
Beispiel #8
0
 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')
Beispiel #9
0
 def represent_html_default(self, content):
     content = {
         'title': content['query'],
         'body': schema.to_html(content['result']),
     }
     return TemplateRepresentation(content, self.req, 'generic.html')