Exemplo n.º 1
0
 def description(self):
     context = aq_inner(self.context)
     page = self.find_context()
     result = (
         self.get("description") or getattr(self.settings, "%s_description" % page, None) or context.Description()
     )
     return safe_unicode(compile_variables(context, result, page))
Exemplo n.º 2
0
 def keywords(self):
     context = aq_inner(self.context)
     page = self.find_context()
     result = self.get("keywords") or getattr(self.settings, "%s_keywords" % page, None) or context.Subject()
     return [safe_unicode(compile_variables(context, x, page)) for x in result]
Exemplo n.º 3
0
 def title(self):
     context = aq_inner(self.context)
     page = self.find_context()
     result = self.get("title") or getattr(self.settings, "%s_title" % page, None) or self.pcs.object_title()
     return safe_unicode(compile_variables(context, result, page))