Esempio n. 1
0
def trans_content_type(content_type):
    try: content_type = int(content_type)
    except: pass
    return smart_unicode(NOVEL_CONTENT_TYPES.get(content_type, "其他"))
Esempio n. 2
0
def trans_content_type(content_type):
    try:
        content_type = int(content_type)
    except:
        pass
    return smart_unicode(NOVEL_CONTENT_TYPES.get(content_type, "其他"))
Esempio n. 3
0
def url_quote(value):
    return smart_unicode(urllib.quote(smart_str(value)))
Esempio n. 4
0
def url_quote(value):
    return smart_unicode(urllib.quote(smart_str(value)))