cc1  v2.1
CC1 source code docs
 All Classes Namespaces Files Functions Variables Pages
src.wi.utils.regexp Namespace Reference

Variables

dictionary regexp
dictionary regexp_text

Detailed Description

Author
Krzysztof Danielowski
Piotr Wójcik
Date
1.07.2011

Module contains dictionaries: regexp and regext_text. Both dictionaries contain fields corresponding to user infos.

- \c regexp: Each field contains regular expressions consisging of the characters avaliable in strings describing that user info.

- \c regexp_text: Each field contains message (in human-readable form) about how user info should be filled.

Variable Documentation

dictionary src.wi.utils.regexp.regexp
Initial value:
1 {'login': re.compile(r'^[a-zA-Z0-9_]+$'),
2  'password': re.compile(r'^[ -~]+$'),
3  'dev_name': re.compile(r'^[0-9a-z]([0-9a-z\-]{0,38}[0-9a-z])?$')
4  # 'text': re.compile(r'^[ -~]+$'),
5 }

Definition at line 39 of file regexp.py.

dictionary src.wi.utils.regexp.regexp_text
Initial value:
1 {'login': _('This value must contain only letters, numbers and underscores.'),
2  'password': _('This value must not contain any diacritic marks.'),
3  'dev_name': _('This value must contain only small letters, numbers and dashes.'),
4  # 'text': _('This value must contain only letters, numbers and keyboard special characters.'),
5 }

Definition at line 45 of file regexp.py.