v1 vsersion

This commit is contained in:
pycook
2016-01-01 09:40:47 +08:00
committed by pycook
parent 1edd1ee71a
commit 2d8264ab6f
56 changed files with 5503 additions and 0 deletions

9
lib/template/filters.py Normal file
View File

@@ -0,0 +1,9 @@
# -*- coding:utf-8 -*-
def convert_to_list(v):
if isinstance(v, list):
return v
if isinstance(v, tuple):
return list(v)
return [v, ]