Loading cccli/command/right.py +7 −3 Original line number Diff line number Diff line Loading @@ -50,15 +50,19 @@ class Command_addright(Command): '''Add or edit account right''' def __call__(self, argv): if len(argv) != 5: if len(argv) == 5: argv.append(None) elif len(argv) == 6: argv[5] = int(argv[5]) else: raise cmdBadArgument() try: self.cli.rpc.call("addright", argv[1], argv[2], argv[3], argv[4]) self.cli.rpc.call("addright", argv[1], argv[2], argv[3], argv[4], argv[5]) except RpcError as e: raise cmdError("RPCError: %s"%str(e)) def usage(self): return '''Usage: addright <account tql> <right tql> <method> <target> return '''Usage: addright <account tql> <right tql> <method> <target> [index] <method> is the name of the rpc command to allow <target> can be allow or deny''' Loading Loading
cccli/command/right.py +7 −3 Original line number Diff line number Diff line Loading @@ -50,15 +50,19 @@ class Command_addright(Command): '''Add or edit account right''' def __call__(self, argv): if len(argv) != 5: if len(argv) == 5: argv.append(None) elif len(argv) == 6: argv[5] = int(argv[5]) else: raise cmdBadArgument() try: self.cli.rpc.call("addright", argv[1], argv[2], argv[3], argv[4]) self.cli.rpc.call("addright", argv[1], argv[2], argv[3], argv[4], argv[5]) except RpcError as e: raise cmdError("RPCError: %s"%str(e)) def usage(self): return '''Usage: addright <account tql> <right tql> <method> <target> return '''Usage: addright <account tql> <right tql> <method> <target> [index] <method> is the name of the rpc command to allow <target> can be allow or deny''' Loading