Mercurial > p > roundup > code
comparison roundup-admin @ 449:141aacfdb34f
Centralised the python version check code, bumped version to 2.1.1
(really needs to be 2.1.2, but that isn't released yet :)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 13 Dec 2001 00:20:01 +0000 |
| parents | 208697858c8b |
| children | 2198e5445d6b |
comparison
equal
deleted
inserted
replaced
| 448:6e3911304700 | 449:141aacfdb34f |
|---|---|
| 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.52 2001-12-12 21:47:45 richard Exp $ | 19 # $Id: roundup-admin,v 1.53 2001-12-13 00:20:00 richard Exp $ |
| 20 | 20 |
| 21 import sys | 21 # python version check |
| 22 if not hasattr(sys, 'version_info') or sys.version_info[:2] < (2,1): | 22 from roundup import version_check |
| 23 print 'Roundup requires python 2.1 or later.' | |
| 24 sys.exit(1) | |
| 25 | 23 |
| 26 import string, os, getpass, getopt, re, UserDict | 24 import string, os, getpass, getopt, re, UserDict |
| 27 try: | 25 try: |
| 28 import csv | 26 import csv |
| 29 except ImportError: | 27 except ImportError: |
| 978 tool = AdminTool() | 976 tool = AdminTool() |
| 979 sys.exit(tool.main()) | 977 sys.exit(tool.main()) |
| 980 | 978 |
| 981 # | 979 # |
| 982 # $Log: not supported by cvs2svn $ | 980 # $Log: not supported by cvs2svn $ |
| 981 # Revision 1.52 2001/12/12 21:47:45 richard | |
| 982 # . Message author's name appears in From: instead of roundup instance name | |
| 983 # (which still appears in the Reply-To:) | |
| 984 # . envelope-from is now set to the roundup-admin and not roundup itself so | |
| 985 # delivery reports aren't sent to roundup (thanks Patrick Ohly) | |
| 986 # | |
| 983 # Revision 1.51 2001/12/10 00:57:38 richard | 987 # Revision 1.51 2001/12/10 00:57:38 richard |
| 984 # From CHANGES: | 988 # From CHANGES: |
| 985 # . Added the "display" command to the admin tool - displays a node's values | 989 # . Added the "display" command to the admin tool - displays a node's values |
| 986 # . #489760 ] [issue] only subject | 990 # . #489760 ] [issue] only subject |
| 987 # . fixed the doc/index.html to include the quoting in the mail alias. | 991 # . fixed the doc/index.html to include the quoting in the mail alias. |
