def process_or_group_name(name):
 s = str(name).strip()
 if ((' ' in s) or (':' in s) or ('/' in s)):
  raise ValueError(('Invalid name: ' + repr(name)))
 return s

def process_or_group_name ( name ) : s = str ( name ) . strip ( ) if ( ( ' ' in s ) or ( ':' in s ) or ( '/' in s ) ) : raise ValueError ( ( 'Invalid name: ' + repr ( name ) ) ) return s
ensures that a process or group name is not created with characters that break the eventlistener protocol or web ui urls .