vendor/tramline

changeset 9:0844398c9e18 gracinet-progress-bar

Correct attribute for remote ip
author gracinet
date Sun, 22 Feb 2009 11:10:20 +0000
parents b97646337e10
children 8255ba231de3
files src/tramline/core.py src/tramline/tests/test_core.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/src/tramline/core.py
     1.2 +++ b/src/tramline/core.py
     1.3 @@ -494,7 +494,7 @@
     1.4              # GR: full socket info would be preferable, but it'll be different
     1.5              # for stat requests, and not sure the user agent can know and store
     1.6              # the full socket info of the upload for requesting.
     1.7 -            self.progress_id = str(out.req.connection.ip) + '-' + line.strip()
     1.8 +            self.progress_id = out.req.connection.remote_ip + '-' + line.strip()
     1.9              theProcessorRegistry.registerProgressId(self)
    1.10  
    1.11      def handle_data(self, line, out):
     2.1 --- a/src/tramline/tests/test_core.py
     2.2 +++ b/src/tramline/tests/test_core.py
     2.3 @@ -20,7 +20,7 @@
     2.4          dict.__setitem__(self, key, value)
     2.5  
     2.6  class Connection:
     2.7 -    ip = 'TESTIP'
     2.8 +    remote_ip = 'TESTIP'
     2.9  
    2.10  class Request:
    2.11      def __init__(self, method):