Mercurial > p > roundup > code
comparison roundup/admin.py @ 773:6e6c63a57df9
[SF#569415] {version]]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 17 Jun 2002 23:14:44 +0000 |
| parents | a85919c54f3a |
| children | 6d7a45c8464a |
comparison
equal
deleted
inserted
replaced
| 772:db5daf396518 | 773:6e6c63a57df9 |
|---|---|
| 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: admin.py,v 1.14 2002-06-11 06:41:50 richard Exp $ | 19 # $Id: admin.py,v 1.15 2002-06-17 23:14:44 richard Exp $ |
| 20 | 20 |
| 21 import sys, os, getpass, getopt, re, UserDict, shlex, shutil | 21 import sys, os, getpass, getopt, re, UserDict, shlex, shutil |
| 22 try: | 22 try: |
| 23 import csv | 23 import csv |
| 24 except ImportError: | 24 except ImportError: |
| 25 csv = None | 25 csv = None |
| 26 from roundup import date, hyperdb, roundupdb, init, password, token | 26 from roundup import date, hyperdb, roundupdb, init, password, token |
| 27 from roundup import __version__ as roundup_version | |
| 27 import roundup.instance | 28 import roundup.instance |
| 28 from roundup.i18n import _ | 29 from roundup.i18n import _ |
| 29 | 30 |
| 30 class CommandDict(UserDict.UserDict): | 31 class CommandDict(UserDict.UserDict): |
| 31 '''Simple dictionary that lets us do lookups using partial keys. | 32 '''Simple dictionary that lets us do lookups using partial keys. |
| 1043 return ret | 1044 return ret |
| 1044 | 1045 |
| 1045 def interactive(self): | 1046 def interactive(self): |
| 1046 '''Run in an interactive mode | 1047 '''Run in an interactive mode |
| 1047 ''' | 1048 ''' |
| 1048 print _('Roundup {version} ready for input.') | 1049 print _('Roundup %s ready for input.'%roundup_version) |
| 1049 print _('Type "help" for help.') | 1050 print _('Type "help" for help.') |
| 1050 try: | 1051 try: |
| 1051 import readline | 1052 import readline |
| 1052 except ImportError: | 1053 except ImportError: |
| 1053 print _('Note: command history and editing not available') | 1054 print _('Note: command history and editing not available') |
| 1111 tool = AdminTool() | 1112 tool = AdminTool() |
| 1112 sys.exit(tool.main()) | 1113 sys.exit(tool.main()) |
| 1113 | 1114 |
| 1114 # | 1115 # |
| 1115 # $Log: not supported by cvs2svn $ | 1116 # $Log: not supported by cvs2svn $ |
| 1117 # Revision 1.14 2002/06/11 06:41:50 richard | |
| 1118 # Removed prompt for admin email in initialisation. | |
| 1119 # | |
| 1116 # Revision 1.13 2002/05/30 23:58:14 richard | 1120 # Revision 1.13 2002/05/30 23:58:14 richard |
| 1117 # oops | 1121 # oops |
| 1118 # | 1122 # |
| 1119 # Revision 1.12 2002/05/26 09:04:42 richard | 1123 # Revision 1.12 2002/05/26 09:04:42 richard |
| 1120 # out by one in the init args | 1124 # out by one in the init args |
