Mercurial > libervia-backend
comparison frontends/src/jp/base.py @ 2312:eaff25529c53
jp (base): typo
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 07 Jul 2017 12:45:28 +0200 |
parents | c7a72b75232b |
children | 6ff5212997c7 |
comparison
equal
deleted
inserted
replaced
2311:a42a2478abd2 | 2312:eaff25529c53 |
---|---|
164 sys.exit(1) | 164 sys.exit(1) |
165 | 165 |
166 self.bridge = bridge_module.Bridge() | 166 self.bridge = bridge_module.Bridge() |
167 self.bridge.bridgeConnect(callback=self._bridgeCb, errback=self._bridgeEb) | 167 self.bridge.bridgeConnect(callback=self._bridgeCb, errback=self._bridgeEb) |
168 # _no_exit is used in shell mode because SystemExit can't | 168 # _no_exit is used in shell mode because SystemExit can't |
169 # catched when loop is in use | 169 # catched in some cases |
170 self._no_exit = False | 170 self._no_exit = False |
171 | 171 |
172 def _bridgeCb(self): | 172 def _bridgeCb(self): |
173 self.parser = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter, | 173 self.parser = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter, |
174 description=DESCRIPTION) | 174 description=DESCRIPTION) |
175 self._make_parents() | 175 self._make_parents() |
176 self.add_parser_options() | 176 self.add_parser_options() |
177 self.subparsers = self.parser.add_subparsers(title=_('Available commands'), dest='subparser_name') | 177 self.subparsers = self.parser.add_subparsers(title=_(u'Available commands'), dest='subparser_name') |
178 self._auto_loop = False # when loop is used for internal reasons | 178 self._auto_loop = False # when loop is used for internal reasons |
179 self._need_loop = False | 179 self._need_loop = False |
180 | 180 |
181 # progress attributes | 181 # progress attributes |
182 self._progress_id = None # TODO: manage several progress ids | 182 self._progress_id = None # TODO: manage several progress ids |