Commit 2796e921 authored by Stavros Sachtouris's avatar Stavros Sachtouris

Slightly modify occify_terms method

parent d710661b
......@@ -462,8 +462,7 @@ def tenant_app_factory(global_config, **local_config):
return tenant_application
def occify_terms(term_name):
"""Occifies a term_name so that it is compliant with GFD 185"""
term = term_name.strip().replace(' ', '_').replace('.', '-').lower()
return term.replace('(', '_').replace(')', '_').replace('@', '_').replace(
'+', '-_')
def occify_terms(term):
""":return: Occified term, compliant with GFD 185"""
return term.strip().lower().replace(' ', '_').replace('.', '-').replace(
'(', '_').replace(')', '_').replace('@', '_').replace('+', '-_')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment