예제 #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
파일: models.py 프로젝트: GVRV/kitsune
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)
예제 #4
0
 def content_parsed(self):
     return wiki_to_html(self.content)
예제 #5
0
파일: models.py 프로젝트: runt18/kitsune
 def content_parsed(self):
     from kitsune.sumo.helpers import wiki_to_html
     return wiki_to_html(self.message)
예제 #6
0
파일: models.py 프로젝트: zctyhj/kitsune
 def content_parsed(self):
     from kitsune.sumo.helpers import wiki_to_html
     return wiki_to_html(self.message)