Code

Forward-porting of fixes from the maintenance branch.
[roundup.git] / roundup / scripts / roundup_admin.py
index be963f53b3e7b8d3f51bbb1f6503811eb861754b..47db75e4cf0dae2c9e52d8e28f4311e606092296 100644 (file)
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: roundup_admin.py,v 1.4 2002-09-10 01:07:06 richard Exp $
+# $Id: roundup_admin.py,v 1.6 2004-02-11 23:55:10 richard Exp $
+
+"""Command-line script stub that calls the roundup.admin functions.
+"""
+__docformat__ = 'restructuredtext'
 
 # python version check
 from roundup import version_check
@@ -26,6 +30,10 @@ from roundup.i18n import _
 import sys
 
 def run():
+    # time out after a minute if we can
+    import socket
+    if hasattr(socket, 'setdefaulttimeout'):
+        socket.setdefaulttimeout(60)
     tool = AdminTool()
     sys.exit(tool.main())