示例#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