Пример #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')
Пример #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')
Пример #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")
Пример #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")
Пример #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")
Пример #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')
Пример #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')
Пример #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')
Пример #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')