X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FSites.py;h=4749f84f32a541bfcf842e74e82b106671e132e8;hb=76bdf368d0d8dcd046476abe04392a73a0eaa6e0;hp=c0dd1701312e995bb1cf67774cbe8dcb334659a7;hpb=e43eb135483c45435c9d4a50d6dff744fb7aef85;p=plcapi.git diff --git a/PLC/Sites.py b/PLC/Sites.py index c0dd170..4749f84 100644 --- a/PLC/Sites.py +++ b/PLC/Sites.py @@ -43,6 +43,7 @@ class Site(Row): 'node_ids': Parameter([int], "List of site node identifiers"), 'peer_id': Parameter(int, "Peer to which this site belongs", nullok = True), 'peer_site_id': Parameter(int, "Foreign site identifier at peer", nullok = True), + 'ext_consortium_id': Parameter(int, "external consortium id", nullok = True) } # for Cache @@ -67,8 +68,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: