def handle__preplug(self, location): """prepend this location to the list of hotswap modules """ hotswap.prepend(location)
def handle__preplug(self, location): """prepend this location to the list of hotswap modules """ hotswap.prepend(location)
self.handleExtraArgument("-") ################################################################ if __name__ == "__main__": host = Host() # should pass some extra help text... a = MyArgHandler( host=host, program="plwm", version="$Id: plwm.py,v 1.7 2003-08-01 15:42:51 sandro Exp $", uri="http://www.w3.org/2000/10/swap/doc/cwm") hotswap.prepend("wrap_n3") hotswap.prepend("wrap_llyn") try: a.run() except hotswap.NoMatchFound, e: print e print "Try --help preplug for more information\n" sys.exit(1) # who should do this, really? store = hotswap.get(pluggable.Store) ser = hotswap.get(pluggable.Serializer, initargs=[sys.stdout, ""]) pump = hotswap.get(pluggable.Pump) # which pump? let that be up to hotswap of course pump.pump(store, ser)
def handleNoArgs(self): self.handleExtraArgument("-") ################################################################ if __name__ == "__main__": host=Host() # should pass some extra help text... a = MyArgHandler(host=host, program="plwm", version="$Id: plwm.py,v 1.7 2003-08-01 15:42:51 sandro Exp $", uri="http://www.w3.org/2000/10/swap/doc/cwm") hotswap.prepend("wrap_n3") hotswap.prepend("wrap_llyn") try: a.run() except hotswap.NoMatchFound, e: print e print "Try --help preplug for more information\n" sys.exit(1) # who should do this, really? store = hotswap.get(pluggable.Store) ser = hotswap.get(pluggable.Serializer, initargs=[sys.stdout, ""]) pump = hotswap.get(pluggable.Pump) # which pump? let that be up to hotswap of course pump.pump(store, ser)