示例#1
0
文件: BladeCmds.py 项目: utsdab/usr
 def processObject(self, obj):
     """Operate on the provided blade object."""
     # ask the user if we should continue
     if not obj.pre(self, "Eject this blade?"):
         return
     # try to run the operation
     query.eject(obj)
     obj.post(self, "ejected")
示例#2
0
文件: test.py 项目: utsdab/usr
def test_blade_ops(blade):
    print "nimby"
    tq.nimby(blade)
    print "unnimby"
    tq.unnimby(blade)
    print "trace"
    trace = tq.trace(blade)
    print trace
    print "eject"
    tq.eject(blade)
    print "delist"
    tq.delist(blade)