コード例 #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
ファイル: models.py プロジェクト: ChiPyMozillaSprint/kitsune
 def content_parsed(self):
     return wiki_to_html(self.content)
コード例 #4
0
ファイル: models.py プロジェクト: thelegend6420/kitsune
 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)