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

Slightly modify occify_terms method

parent d710661b
...@@ -462,8 +462,7 @@ def tenant_app_factory(global_config, **local_config): ...@@ -462,8 +462,7 @@ def tenant_app_factory(global_config, **local_config):
return tenant_application return tenant_application
def occify_terms(term_name): def occify_terms(term):
"""Occifies a term_name so that it is compliant with GFD 185""" """:return: Occified term, compliant with GFD 185"""
term = term_name.strip().replace(' ', '_').replace('.', '-').lower() return term.strip().lower().replace(' ', '_').replace('.', '-').replace(
return term.replace('(', '_').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