Hello guys,
Inside my mailalias.py, I'm using: "default_from=lambda givenname, sn: '%s.%s@%s' % (givenname.lower(), sn.lower(), api.env.realm.lower()),"
Which pretty much blocks the user creation if the first- or last name contains a whitespace. Is there a function similar to "lower()", let's say a kind of "trim()" or anything else which removes whitespaces, or replaces them with a dash etc.?