Пример #1
0
def _content_parsed(obj, locale):
    cache_key = obj.html_cache_key % obj.id
    html = cache.get(cache_key)
    if html is None:
        html = wiki_to_html(obj.content, locale)
        cache.add(cache_key, html, CACHE_TIMEOUT)
    return html
Пример #2
0
def _content_parsed(obj, locale):
    cache_key = obj.html_cache_key % obj.id
    html = cache.get(cache_key)
    if html is None:
        html = wiki_to_html(obj.content, locale)
        cache.add(cache_key, html, CACHE_TIMEOUT)
    return html
Пример #3
0
 def content_parsed(self):
     return wiki_to_html(self.content.strip())
Пример #4
0
 def content_parsed(self):
     return wiki_to_html(self.content.strip())
Пример #5
0
    def content_parsed(self):
        from kitsune.sumo.templatetags.jinja_helpers import wiki_to_html

        return wiki_to_html(self.message)
Пример #6
0
 def content_parsed(self):
     from kitsune.sumo.templatetags.jinja_helpers import wiki_to_html
     return wiki_to_html(self.message)