implement remove()
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 27 Feb 2012 17:03:35 +0000 (12:03 -0500)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 27 Feb 2012 17:03:35 +0000 (12:03 -0500)
sfa/clientbin/sfaadmin.py

index 0102e49..eb616f7 100755 (executable)
@@ -64,8 +64,11 @@ class RegistryCommands(Commands):
     def update(self, record):
         pass
         
-    def remove(self, xrn):            
-        pass
+    @args('-x', '--xrn', dest='xrn', metavar='<xrn>', help='object hrn/urn') 
+    @args('-t', '--type', dest='type', metavar='<type>', help='object type', default=None) 
+    def remove(self, xrn, type=None):
+        xrn = Xrn(xrn, type)
+        self.api.manager.Remove(self.api, xrn)            
 
     def credential(self, xrn):
         pass