示例#1
0
文件: utils.py 项目: mstroehle/seahub
def normalize_page_name(page_name):
    # Remove special characters. Lower page name and replace spaces with '-'.
    return slugify(page_name, ok=SLUG_OK)
示例#2
0
文件: utils.py 项目: mstroehle/seahub
def clean_page_name(page_name):
    # Remove special characters. Do not lower page name and spaces are allowed.
    return slugify(page_name, ok=SLUG_OK, lower=False, spaces=True)
示例#3
0
def clean_page_name(page_name):
    # Remove special characters. Do not lower page name and spaces are allowed.
    return slugify(page_name, ok=SLUG_OK, lower=False, spaces=True)
示例#4
0
def normalize_page_name(page_name):
    # Remove special characters. Lower page name and replace spaces with '-'.
    return slugify(page_name, ok=SLUG_OK)
示例#5
0
def slugfy_wiki_name(name):
    return slugify(name, ok=SLUG_OK)
示例#6
0
文件: utils.py 项目: haiwen/seahub
def slugfy_wiki_name(name):
    return slugify(name, ok=SLUG_OK)
示例#7
0
文件: views.py 项目: beride/seahub
def normalize_page_name(page_name):
    # Replace special characters to '-'.
    # Do not lower page name and spaces are allowed.
    return slugify(page_name, lower=False, spaces=True)