Example #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, "其他"))
Example #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, "其他"))
Example #3
0
def url_quote(value):
    return smart_unicode(urllib.quote(smart_str(value)))
Example #4
0
def url_quote(value):
    return smart_unicode(urllib.quote(smart_str(value)))