def run(): sys.path.append('.') # Create a Manager instance to parse arguments & marshal commands. manager = Manager(Tango(__name__), with_default_commands=False) manager.add_command('serve', Server()) manager.add_command('shell', Shell()) manager.add_command('show', Show()) manager.add_command('get', Get()) manager.add_command('put', Put()) manager.add_command('drop', Drop()) manager.add_command('source', Source()) for cmd in commands: manager.command(cmd) manager.run()
def create_app(self): return Tango(__name__)
def create_app(self): # For application context setup only. return Tango(__name__)