oioioi.base.utils.user

Module Contents

Functions

check_unicode_text(text[, allow_spaces])

has_valid_username(user)

has_valid_name(user)

Attributes

USERNAME_REGEX

All characters constituting users name and surname must

UNICODE_CATEGORY_LIST

oioioi.base.utils.user.USERNAME_REGEX = ^[a-zA-Z0-9_]+$[source]

All characters constituting users name and surname must belong to one of the categories specified in UNICODE_CATEGORY_LIST. For a guide of unicode categories see: https://unicodebook.readthedocs.io/unicode.html

oioioi.base.utils.user.UNICODE_CATEGORY_LIST = ['Ll', 'Lm', 'Lo', 'Lt', 'Lu', 'Nd', 'Pf', 'Pd', 'Pi', 'Pe', 'Pc', 'Sc'][source]
oioioi.base.utils.user.check_unicode_text(text, allow_spaces=False)[source]
oioioi.base.utils.user.has_valid_username(user)[source]
oioioi.base.utils.user.has_valid_name(user)[source]