##// END OF EJS Templates
schema: preparer should keep case by default.
marcink -
r1216:d8543bea default
parent child Browse files
Show More
@@ -31,13 +31,13 b' def strip_preparer(value):'
31 return value
31 return value
32
32
33
33
34 def slugify_preparer(value):
34 def slugify_preparer(value, keep_case=True):
35 """
35 """
36 Slugify given value to a safe representation for url/id
36 Slugify given value to a safe representation for url/id
37 """
37 """
38 from rhodecode.lib.utils import repo_name_slug
38 from rhodecode.lib.utils import repo_name_slug
39 if value:
39 if value:
40 value = repo_name_slug(value.lower())
40 value = repo_name_slug(value if keep_case else value.lower())
41 return value
41 return value
42
42
43
43
General Comments 0
You need to be logged in to leave comments. Login now