Example #1
0
 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")
Example #2
0
File: test.py Project: 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)