summaryrefslogtreecommitdiffstats
path: root/pykolab/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/utils.py')
-rw-r--r--pykolab/utils.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pykolab/utils.py b/pykolab/utils.py
index d787eab..079a48c 100644
--- a/pykolab/utils.py
+++ b/pykolab/utils.py
@@ -207,6 +207,14 @@ def pop_empty_from_list(_input_list):
def standard_root_dn(domain):
return 'dc=%s' %(',dc='.join(domain.split('.')))
+def translate(mystring):
+ chars = ['Ä', 'Ü', 'Ö', 'ä', 'ü', 'ö', 'ß']
+ simple = ['Ae', 'Ue', 'Oe', 'ae', 'ue', 'oe', 'ss']
+
+ for num in range(0, len(chars)):
+ mystring = mystring.replace(chars[num], simple[num])
+ return mystring
+
def is_service(services):
"""
Checks each item in list services to see if it has a RC script in