comparison roundup-admin @ 354:f90abe9e811d

Fixed newuser_action so it sets the cookie with the unencrypted password. Also made it present nicer error messages (not tracebacks).
author Richard Jones <richard@users.sourceforge.net>
date Mon, 05 Nov 2001 23:45:40 +0000
parents e18dd7227780
children f348aa576d51
comparison
equal deleted inserted replaced
353:6713716d8ae9 354:f90abe9e811d
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.37 2001-10-23 01:00:18 richard Exp $ 19 # $Id: roundup-admin,v 1.38 2001-11-05 23:45:40 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)
175 templates = roundup.templates.listTemplates() 175 templates = roundup.templates.listTemplates()
176 template = len(args) > 1 and args[1] or '' 176 template = len(args) > 1 and args[1] or ''
177 if template not in templates: 177 if template not in templates:
178 print 'Templates:', ', '.join(templates) 178 print 'Templates:', ', '.join(templates)
179 while template not in templates: 179 while template not in templates:
180 template = raw_input('Select template [extended]: ').strip() 180 template = raw_input('Select template [classic]: ').strip()
181 if not template: 181 if not template:
182 template = 'extended' 182 template = 'classic'
183 183
184 import roundup.backends 184 import roundup.backends
185 backends = roundup.backends.__all__ 185 backends = roundup.backends.__all__
186 backend = len(args) > 2 and args[2] or '' 186 backend = len(args) > 2 and args[2] or ''
187 if backend not in backends: 187 if backend not in backends:
685 tool = AdminTool() 685 tool = AdminTool()
686 sys.exit(tool.main()) 686 sys.exit(tool.main())
687 687
688 # 688 #
689 # $Log: not supported by cvs2svn $ 689 # $Log: not supported by cvs2svn $
690 # Revision 1.37 2001/10/23 01:00:18 richard
691 # Re-enabled login and registration access after lopping them off via
692 # disabling access for anonymous users.
693 # Major re-org of the htmltemplate code, cleaning it up significantly. Fixed
694 # a couple of bugs while I was there. Probably introduced a couple, but
695 # things seem to work OK at the moment.
696 #
690 # Revision 1.36 2001/10/21 00:45:15 richard 697 # Revision 1.36 2001/10/21 00:45:15 richard
691 # Added author identification to e-mail messages from roundup. 698 # Added author identification to e-mail messages from roundup.
692 # 699 #
693 # Revision 1.35 2001/10/20 11:58:48 richard 700 # Revision 1.35 2001/10/20 11:58:48 richard
694 # Catch errors in login - no username or password supplied. 701 # Catch errors in login - no username or password supplied.

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