comparison roundup-admin @ 308:e32af1eff4ea

Added author identification to e-mail messages from roundup.
author Richard Jones <richard@users.sourceforge.net>
date Sun, 21 Oct 2001 00:45:15 +0000
parents d1fb3fcdb11b
children e18dd7227780
comparison
equal deleted inserted replaced
307:dac78e092228 308:e32af1eff4ea
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.35 2001-10-20 11:58:48 richard Exp $ 19 # $Id: roundup-admin,v 1.36 2001-10-21 00:45:15 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)
608 print function.__doc__ 608 print function.__doc__
609 return 1 609 return 1
610 610
611 # do the command 611 # do the command
612 try: 612 try:
613 return function(args[1:]) 613 return function(self, args[1:])
614 finally: 614 finally:
615 self.db.close() 615 self.db.close()
616 616
617 return 1 617 return 1
618 618
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.35 2001/10/20 11:58:48 richard
675 # Catch errors in login - no username or password supplied.
676 # Fixed editing of password (Password property type) thanks Roch'e Compaan.
677 #
674 # Revision 1.34 2001/10/18 02:16:42 richard 678 # Revision 1.34 2001/10/18 02:16:42 richard
675 # Oops, committed the admin script with the wierd #! line. 679 # Oops, committed the admin script with the wierd #! line.
676 # Also, made the thing into a class to reduce parameter passing. 680 # Also, made the thing into a class to reduce parameter passing.
677 # Nuked the leading whitespace from the help __doc__ displays too. 681 # Nuked the leading whitespace from the help __doc__ displays too.
678 # 682 #

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