Mercurial > p > roundup > code
comparison roundup-admin @ 302:d1fb3fcdb11b
Catch errors in login - no username or password supplied.
Fixed editing of password (Password property type) thanks Roch'e Compaan.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sat, 20 Oct 2001 11:58:48 +0000 |
| parents | 7901b58cfae8 |
| children | e32af1eff4ea |
comparison
equal
deleted
inserted
replaced
| 301:7901b58cfae8 | 302:d1fb3fcdb11b |
|---|---|
| 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.34 2001-10-18 02:16:42 richard Exp $ | 19 # $Id: roundup-admin,v 1.35 2001-10-20 11:58:48 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) |
| 157 import roundup.backends | 157 import roundup.backends |
| 158 backends = roundup.backends.__all__ | 158 backends = roundup.backends.__all__ |
| 159 print 'Back ends:', ', '.join(backends) | 159 print 'Back ends:', ', '.join(backends) |
| 160 | 160 |
| 161 | 161 |
| 162 def do_init(instance_home, args): | 162 def do_init(self, instance_home, args): |
| 163 '''Usage: init [template [backend [admin password]]] | 163 '''Usage: init [template [backend [admin password]]] |
| 164 Initialise a new Roundup instance. | 164 Initialise a new Roundup instance. |
| 165 | 165 |
| 166 The command will prompt for the instance home directory (if not supplied | 166 The command will prompt for the instance home directory (if not supplied |
| 167 through INSTANCE_HOME or the -i option. The template, backend and admin | 167 through INSTANCE_HOME or the -i option. The template, backend and admin |
| 669 tool = AdminTool() | 669 tool = AdminTool() |
| 670 sys.exit(tool.main()) | 670 sys.exit(tool.main()) |
| 671 | 671 |
| 672 # | 672 # |
| 673 # $Log: not supported by cvs2svn $ | 673 # $Log: not supported by cvs2svn $ |
| 674 # Revision 1.34 2001/10/18 02:16:42 richard | |
| 675 # Oops, committed the admin script with the wierd #! line. | |
| 676 # Also, made the thing into a class to reduce parameter passing. | |
| 677 # Nuked the leading whitespace from the help __doc__ displays too. | |
| 678 # | |
| 674 # Revision 1.33 2001/10/17 23:13:19 richard | 679 # Revision 1.33 2001/10/17 23:13:19 richard |
| 675 # Did a fair bit of work on the admin tool. Now has an extra command "table" | 680 # Did a fair bit of work on the admin tool. Now has an extra command "table" |
| 676 # which displays node information in a tabular format. Also fixed import and | 681 # which displays node information in a tabular format. Also fixed import and |
| 677 # export so they work. Removed freshen. | 682 # export so they work. Removed freshen. |
| 678 # Fixed quopri usage in mailgw from bug reports. | 683 # Fixed quopri usage in mailgw from bug reports. |
