Passing along cmd.Cmd completion to contained class

Miki Tebeka miki.tebeka at gmail.com
Fri Dec 2 10:01:40 EST 2011


This is not tested, but maybe it'll work :)

def complete(self, text, state):
    if text.startswith('config):
        return self.config.complete(text, state)
    return Cmd.complete(self, text, state)



More information about the Python-list mailing list