예제 #1
0
파일: shell.py 프로젝트: zoopp/bacpypes
    def __init__(self):
        if _debug: Shell._debug("__init__")
        global args

        prompt = args.prompt
        if args.args:
            command_input = StringIO(' '.join(args.args))

            # turn off raw input
            self.use_rawinput = False

            # continue with initialization
            ConsoleCmd.__init__(self, stdin=command_input, prompt='')

            # turn off interactive (bug in ConsoleCmd)
            self.interactive = False
        else:
            ConsoleCmd.__init__(self, prompt=args.prompt)
예제 #2
0
 def __init__(self):
     Client.__init__(self)
     Server.__init__(self)
     ConsoleCmd.__init__(self)
예제 #3
0
    def __init__(self):
        if _debug: ConsoleClient._debug("__init__")
        ConsoleCmd.__init__(self)

        # no current request
        self.req = None
예제 #4
0
    def __init__(self, controller):
        if _debug: ConsoleClient._debug("__init__ %r", controller)
        ConsoleCmd.__init__(self)

        # save the controller
        self.controller = controller
예제 #5
0
    def __init__(self, controller):
        if _debug: ConsoleClient._debug("__init__ %r", controller)
        ConsoleCmd.__init__(self)

        # save the controller
        self.controller = controller