X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FSites.py;fp=PLC%2FSites.py;h=19b15d623435c3c66b9b396996d4c77ef0621693;hb=5f74c7a44feb73cf0e42eee23d6b3608422b0c45;hp=c0dd1701312e995bb1cf67774cbe8dcb334659a7;hpb=f9c9ed6519c34c8fe601a9f6c743f20a2e4c00bb;p=plcapi.git diff --git a/PLC/Sites.py b/PLC/Sites.py index c0dd170..19b15d6 100644 --- a/PLC/Sites.py +++ b/PLC/Sites.py @@ -67,8 +67,8 @@ class Site(Row): if not len(login_base): raise PLCInvalidArgument, "Login base must be specified" - if not set(login_base).issubset(string.ascii_letters.lower()): - raise PLCInvalidArgument, "Login base must consist only of lowercase ASCII letters" + if not set(login_base).issubset(string.lowercase + string.digits): + raise PLCInvalidArgument, "Login base must consist only of lowercase ASCII letters or numbers" conflicts = Sites(self.api, [login_base]) for site in conflicts: