support 'authority' type
authorTony Mack <tmack@cs.princeton.edu>
Tue, 4 Aug 2009 19:49:20 +0000 (19:49 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Tue, 4 Aug 2009 19:49:20 +0000 (19:49 +0000)
sfa/methods/register.py

index 5a7f30e..ee807b8 100644 (file)
@@ -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)