Commit d1e91256 authored by andreasjung's avatar andreasjung
parent 8ba4c7c3
...@@ -4,12 +4,14 @@ Status ...@@ -4,12 +4,14 @@ Status
Change History Change History
************** **************
1.0.2 (unreleased) 1.0.2 (2008-05-13)
================== ==================
- More fixes for Windows. A quoted sha-bang is now used on Windows to make the - More fixes for Windows. A quoted sha-bang is now used on Windows to make the
.exe files work with a Python executable in 'program files'. .exe files work with a Python executable in 'program files'.
- added "-t <timeout_in_seconde>" option for specifying the socket timeout
1.0.1 (2008-04-02) 1.0.1 (2008-04-02)
================== ==================
......
...@@ -1220,6 +1220,10 @@ Options: ...@@ -1220,6 +1220,10 @@ Options:
This defaults to the file named "buildout.cfg" in the current This defaults to the file named "buildout.cfg" in the current
working directory. working directory.
-t socket_timeout
Specify the socket timeout in seconds.
-U -U
Don't read user defaults. Don't read user defaults.
...@@ -1341,8 +1345,11 @@ def main(args=None): ...@@ -1341,8 +1345,11 @@ def main(args=None):
_help() _help()
op = op[1:] op = op[1:]
if op[:1] == 'c': if op[:1] in ('c', 't'):
op_ = op[:1]
op = op[1:] op = op[1:]
if op_ == 'c':
if op: if op:
config_file = op config_file = op
else: else:
...@@ -1350,6 +1357,18 @@ def main(args=None): ...@@ -1350,6 +1357,18 @@ def main(args=None):
config_file = args.pop(0) config_file = args.pop(0)
else: else:
_error("No file name specified for option", orig_op) _error("No file name specified for option", orig_op)
elif op_ == 't':
try:
timeout = int(args.pop(0))
except IndexError:
_error("No timeout value specified for option", orig_op)
except ValueError:
_error("No timeout value must be numeric", orig_op)
import socket
print 'Setting socket time out to %d seconds' % timeout
socket.setdefaulttimeout(timeout)
elif op: elif op:
if orig_op == '--help': if orig_op == '--help':
_help() _help()
......
...@@ -1453,6 +1453,11 @@ The following options are supported: ...@@ -1453,6 +1453,11 @@ The following options are supported:
The -c option can be used to specify a configuration file, rather than The -c option can be used to specify a configuration file, rather than
buildout.cfg in the current directory. buildout.cfg in the current directory.
-t socket_timeout
Specify the socket timeout in seconds.
-v -v
Increment the verbosity by 10. The verbosity is used to adjust Increment the verbosity by 10. The verbosity is used to adjust
the logging level. The verbosity is subtracted from the numeric the logging level. The verbosity is subtracted from the numeric
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment