Changeset 276 for etherws/trunk/etherws.py
- Timestamp:
- 02/07/15 19:18:51 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
etherws/trunk/etherws.py
r274 r276 11 11 # 12 12 # =========================================================================== 13 # Copyright (c) 2012-201 4, Atzm WATANABE <atzm@atzm.org>13 # Copyright (c) 2012-2015, Atzm WATANABE <atzm@atzm.org> 14 14 # All rights reserved. 15 15 # … … 419 419 @property 420 420 def target(self): 421 return ':'.join(str(e) for e in self.request.connection.address) 421 conn = self.request.connection 422 if hasattr(conn, 'address'): 423 return ':'.join(str(e) for e in conn.address) 424 if hasattr(conn, 'context'): 425 return ':'.join(str(e) for e in conn.context.address) 426 return str(conn) 422 427 423 428 def open(self):
Note: See TracChangeset
for help on using the changeset viewer.