-
-
- if not isinstance(value, unicode):
- value = unicode(value, 'utf-8')
-
- # try to replace chars
- value = re.sub('[^a-zA-Z0-9\\s\\-]{1}', replace_char, value)
- value = value.lower()
- value = re.sub(r'[^a-z0-9{|}]+', '~', value)
-
- return value.encode('ascii', 'ignore')
-
+ #
+ # if not isinstance(value, unicode):
+ # value = unicode(value, 'utf-8')
+ #
+ # # try to replace chars
+ # value = re.sub('[^a-zA-Z0-9\\s\\-]{1}', replace_char, value)
+ # value = value.lower()
+ # value = re.sub(r'[^a-z0-9{|}]+', '~', value)
+ #
+ # return value.encode('ascii', 'ignore')