From ad16a72f60ecc84524c22e8912df4eb8a48a2a42 Mon Sep 17 00:00:00 2001 From: kali Date: Tue, 6 Nov 2012 16:26:10 +0900 Subject: split wizard into separate files so we don't go nuts yet. --- src/leap/gui/constants.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/leap/gui/constants.py (limited to 'src/leap/gui/constants.py') diff --git a/src/leap/gui/constants.py b/src/leap/gui/constants.py new file mode 100644 index 00000000..c874cbc9 --- /dev/null +++ b/src/leap/gui/constants.py @@ -0,0 +1,8 @@ +APP_LOGO = ':/images/leap-color-small.png' + +# bare is the username portion of a JID +# full includes the "at" and some extra chars +# that can be allowed for fqdn + +BARE_USERNAME_REGEX = r"^[A-Za-z\d_]+$" +FULL_USERNAME_REGEX = r"^[A-Za-z\d_@.-]+$" -- cgit v1.2.3