determine_rights() now supports 'authority+sa' and 'authority+ma' types
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Tue, 3 May 2011 20:26:38 +0000 (16:26 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Tue, 3 May 2011 20:26:38 +0000 (16:26 -0400)
sfa/trust/rights.py

index bb4dffe..1d320a5 100644 (file)
@@ -57,10 +57,10 @@ def determine_rights(type, name):
         rl.add("refresh")
         rl.add("resolve")
         rl.add("info")
-    elif type == "sa":
+    elif type in ["sa", "authority+sa"]:
         rl.add("authority")
         rl.add("sa")
-    elif type == "ma":
+    elif type ["ma", "authority+ma"]::
         rl.add("authority")
         rl.add("ma")
     elif type == "authority":