git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1eb1241
)
implement remove()
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 27 Feb 2012 17:03:35 +0000
(12:03 -0500)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 27 Feb 2012 17:03:35 +0000
(12:03 -0500)
sfa/clientbin/sfaadmin.py
patch
|
blob
|
history
diff --git
a/sfa/clientbin/sfaadmin.py
b/sfa/clientbin/sfaadmin.py
index
0102e49
..
eb616f7
100755
(executable)
--- a/
sfa/clientbin/sfaadmin.py
+++ b/
sfa/clientbin/sfaadmin.py
@@
-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