Mercurial > p > roundup > code
comparison roundup-admin @ 298:07a64ec2a79d
Interactive startup blurb - need to figure how to get the version in there.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 17 Oct 2001 06:57:29 +0000 |
| parents | 1bbc16563d89 |
| children | fd9835c1e58d |
comparison
equal
deleted
inserted
replaced
| 297:1bbc16563d89 | 298:07a64ec2a79d |
|---|---|
| 14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | 14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" | 15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" |
| 16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, | 16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
| 17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 18 # | 18 # |
| 19 # $Id: roundup-admin,v 1.31 2001-10-17 06:17:26 richard Exp $ | 19 # $Id: roundup-admin,v 1.32 2001-10-17 06:57:29 richard Exp $ |
| 20 | 20 |
| 21 import sys | 21 import sys |
| 22 if int(sys.version[0]) < 2: | 22 if int(sys.version[0]) < 2: |
| 23 print 'Roundup requires python 2.0 or later.' | 23 print 'Roundup requires python 2.0 or later.' |
| 24 sys.exit(1) | 24 sys.exit(1) |
| 577 return 1 | 577 return 1 |
| 578 | 578 |
| 579 def interactive(self, ws_re=re.compile(r'\s+')): | 579 def interactive(self, ws_re=re.compile(r'\s+')): |
| 580 '''Run in an interactive mode | 580 '''Run in an interactive mode |
| 581 ''' | 581 ''' |
| 582 print 'Roundup {version} ready for input.' | |
| 583 print 'Type "help" for help.' | |
| 582 try: | 584 try: |
| 583 import readline | 585 import readline |
| 584 except ImportError: | 586 except ImportError: |
| 585 print "Note: command history and editing not available" | 587 print "Note: command history and editing not available" |
| 586 | 588 |
| 627 tool = AdminTool() | 629 tool = AdminTool() |
| 628 sys.exit(tool.main()) | 630 sys.exit(tool.main()) |
| 629 | 631 |
| 630 # | 632 # |
| 631 # $Log: not supported by cvs2svn $ | 633 # $Log: not supported by cvs2svn $ |
| 634 # Revision 1.31 2001/10/17 06:17:26 richard | |
| 635 # Now with readline support :) | |
| 636 # | |
| 632 # Revision 1.30 2001/10/17 06:04:00 richard | 637 # Revision 1.30 2001/10/17 06:04:00 richard |
| 633 # Beginnings of an interactive mode for roundup-admin | 638 # Beginnings of an interactive mode for roundup-admin |
| 634 # | 639 # |
| 635 # Revision 1.29 2001/10/16 03:48:01 richard | 640 # Revision 1.29 2001/10/16 03:48:01 richard |
| 636 # admin tool now complains if a "find" is attempted with a non-link property. | 641 # admin tool now complains if a "find" is attempted with a non-link property. |
