コード例 #1
0
ファイル: lbforum_tags.py プロジェクト: macdylan/LBForum
def bbcode(context, s, has_replied=False):
    if not s:
        return ""
    tag_data = {'has_replied': has_replied}
    html = _postmarkup(s, cosmetic_replace=False, tag_data=tag_data, 
            auto_urls=getattr(settings, 'BBCODE_AUTO_URLS', True))
    context['hide_attachs'] = tag_data.get('hide_attachs', [])
    return html
コード例 #2
0
ファイル: lbforum_tags.py プロジェクト: stereoit/LBForum
def bbcode(context, s, has_replied=False):
    if not s:
        return ""
    tag_data = {"has_replied": has_replied}
    html = _postmarkup(
        s, tag_data=tag_data, auto_urls=getattr(settings, "BBCODE_AUTO_URLS", True)  # cosmetic_replace=False,
    )
    context["hide_attachs"] = tag_data.get("hide_attachs", [])
    return html
コード例 #3
0
def bbcode(context, s, has_replied=False):
    if not s:
        return ""
    tag_data = {'has_replied': has_replied}
    html = _postmarkup(s,
                       cosmetic_replace=False,
                       tag_data=tag_data,
                       auto_urls=getattr(settings, 'BBCODE_AUTO_URLS', True))
    context['hide_attachs'] = tag_data.get('hide_attachs', [])
    return html
コード例 #4
0
ファイル: lbforum_filters.py プロジェクト: fdumpling/LBForum
def bbcode(s):
    if not s:
        return ""
    return _postmarkup(s, #cosmetic_replace=False, 
            auto_urls=getattr(settings, 'BBCODE_AUTO_URLS', True))
コード例 #5
0
def bbcode(s):
    if not s:
        return ""
    return _postmarkup(s, #cosmetic_replace=False, 
            auto_urls=getattr(settings, 'BBCODE_AUTO_URLS', True))