From: richard Date: Wed, 17 Oct 2001 06:17:26 +0000 (+0000) Subject: Now with readline support :) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=32012b3c0009c592ce68778e52f7fab246e37d83;p=roundup.git Now with readline support :) git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@307 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup-admin b/roundup-admin index befa0a2..753f0bf 100755 --- a/roundup-admin +++ b/roundup-admin @@ -16,7 +16,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: roundup-admin,v 1.30 2001-10-17 06:04:00 richard Exp $ +# $Id: roundup-admin,v 1.31 2001-10-17 06:17:26 richard Exp $ import sys if int(sys.version[0]) < 2: @@ -579,6 +579,11 @@ class AdminTool: def interactive(self, ws_re=re.compile(r'\s+')): '''Run in an interactive mode ''' + try: + import readline + except ImportError: + print "Note: command history and editing not available" + while 1: try: command = raw_input('roundup> ') @@ -624,6 +629,9 @@ if __name__ == '__main__': # # $Log: not supported by cvs2svn $ +# Revision 1.30 2001/10/17 06:04:00 richard +# Beginnings of an interactive mode for roundup-admin +# # Revision 1.29 2001/10/16 03:48:01 richard # admin tool now complains if a "find" is attempted with a non-link property. #