From: Tony Mack Date: Tue, 4 Aug 2009 19:49:20 +0000 (+0000) Subject: support 'authority' type X-Git-Tag: sfa-0.9-1~123 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=b7c532762f6373f2423a01f787325483c0b535d1;p=sfa.git support 'authority' type --- diff --git a/sfa/methods/register.py b/sfa/methods/register.py index 5a7f30e1..ee807b8d 100644 --- a/sfa/methods/register.py +++ b/sfa/methods/register.py @@ -62,7 +62,7 @@ class register(Method): if existing_records: raise ExistingRecord(name) - if (type == "sa") or (type=="ma"): + if type in ["authority", "sa", "ma"]: # update the tree if not self.api.auth.hierarchy.auth_exists(name): self.api.auth.hierarchy.create_auth(name)