diff util/santitizer.py @ 70:39a32cb31623 draft

planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 159730602ff500b59aefc7080fb49b726c88d655-dirty
author yating-l
date Tue, 26 Sep 2017 18:46:02 -0400
parents 4ca7cbf2d9b8
children
line wrap: on
line diff
--- a/util/santitizer.py	Tue Sep 26 17:56:42 2017 -0400
+++ b/util/santitizer.py	Tue Sep 26 18:46:02 2017 -0400
@@ -45,7 +45,6 @@
             .replace("/", "_") \
             .replace(" ", "_")
 
-
 def sanitize_name_inputs(inputs_data):
     """
     Sanitize value of the keys "name" of the dictionary passed in parameter.
@@ -57,3 +56,6 @@
     """
     for key in inputs_data:
         inputs_data[key]["name"] = sanitize_name_input(inputs_data[key]["name"])
+
+def sanitize_group_name(group_name):
+    return group_name.lower().replace(' ', '_')