src/pyams_utils/url.py
changeset 398 f87a8558edcc
parent 392 1af0ba410187
child 401 6088cc1f4ed2
equal deleted inserted replaced
397:b95d1ef81476 398:f87a8558edcc
    31     shorter than three characters are removed; terms are joined by hyphens.
    31     shorter than three characters are removed; terms are joined by hyphens.
    32     """
    32     """
    33     return '-'.join(filter(lambda x: len(x) >= min_word_length,
    33     return '-'.join(filter(lambda x: len(x) >= min_word_length,
    34                            translate_string(title, escape_slashes=False, force_lower=True,
    34                            translate_string(title, escape_slashes=False, force_lower=True,
    35                                             spaces='-', remove_punctuation=True,
    35                                             spaces='-', remove_punctuation=True,
    36                                             keep_chars='-').split('-')))
    36                                             keep_chars='-').replace('/', '-').split('-')))
    37 
    37 
    38 
    38 
    39 #
    39 #
    40 # Request display context
    40 # Request display context
    41 #
    41 #