示例#1
0
文件: l20n.py 项目: KamodaP/warehouse
def l20n(tid, **kwargs):
    data = tojson(kwargs) if kwargs else None
    return M(_L20N_TEMPLATE.render(tid=tid, data=data))
示例#2
0
def test_tojson(inp, expected):
    assert filters.tojson(inp) == expected
示例#3
0
def test_tojson(inp, expected):
    assert filters.tojson(inp) == expected
示例#4
0
def l20n(tid, **kwargs):
    data = tojson(kwargs) if kwargs else None
    return M(_L20N_TEMPLATE.render(tid=tid, data=data))