diff options
| author | vra <vra@tinyerp.com> | 2010-06-24 14:16:50 +0530 |
|---|---|---|
| committer | vra <vra@tinyerp.com> | 2010-06-24 14:16:50 +0530 |
| commit | 7ed648ce889dfeaa9045602fad7dca555095e9d4 (patch) | |
| tree | 9dc3dffd579a27ace5529179b203c41227d3e19e /bin/tools/misc.py | |
| parent | b311f12e2a697bfaad7582aff9ac6502129e9a61 (diff) | |
| parent | 5696ed3785c80671b38fd196584786482d293dea (diff) | |
[MERGE] merge the changes from main trunk branch.
bzr revid: vra@tinyerp.com-20100624084539-ne1e1tscqn1z3jw5
bzr revid: vra@tinyerp.com-20100624084650-svala4jb0dnf7aal
Diffstat (limited to 'bin/tools/misc.py')
| -rw-r--r-- | bin/tools/misc.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/tools/misc.py b/bin/tools/misc.py index 9b246e5bb5f..5f69a5bdcea 100644 --- a/bin/tools/misc.py +++ b/bin/tools/misc.py @@ -1160,6 +1160,11 @@ def extract_zip_file(zip_file, outdirectory): zf.close() def detect_ip_addr(): + """Try a very crude method to figure out a valid external + IP or hostname for the current machine. Don't rely on this + for binding to an interface, but it could be used as basis + for constructing a remote URL to the server. + """ def _detect_ip_addr(): from array import array import socket |
