comparison roundup/admin.py @ 7320:209e94ed0277

templates command should not prompt for a tracker home.
author John Rouillard <rouilj@ieee.org>
date Thu, 11 May 2023 11:25:58 -0400
parents 57f34b0b912c
children a210f4437b49
comparison
equal deleted inserted replaced
7319:2a78ade9a5eb 7320:209e94ed0277
1930 if command == 'morehelp': 1930 if command == 'morehelp':
1931 self.do_help(['help']) 1931 self.do_help(['help'])
1932 self.help_commands() 1932 self.help_commands()
1933 self.help_all() 1933 self.help_all()
1934 return 0 1934 return 0
1935 if command == 'templates':
1936 return self.do_templates(args[1:])
1935 1937
1936 # figure what the command is 1938 # figure what the command is
1937 try: 1939 try:
1938 functions = self.commands.get(command) 1940 functions = self.commands.get(command)
1939 except KeyError: 1941 except KeyError:
1968 try: 1970 try:
1969 return self.do_install(self.tracker_home, args) 1971 return self.do_install(self.tracker_home, args)
1970 except UsageError as message: # noqa: F841 1972 except UsageError as message: # noqa: F841
1971 print(_('Error: %(message)s') % locals()) 1973 print(_('Error: %(message)s') % locals())
1972 return 1 1974 return 1
1973 elif command == "templates":
1974 return self.do_templates(args[1:])
1975 1975
1976 # get the tracker 1976 # get the tracker
1977 try: 1977 try:
1978 if self.tracker and not self.settings['_reopen_tracker']: 1978 if self.tracker and not self.settings['_reopen_tracker']:
1979 tracker = self.tracker 1979 tracker = self.tracker

Roundup Issue Tracker: http://roundup-tracker.org/