[Zope-Checkins] CVS: Zope/lib/python/AccessControl - User.py:1.170.6.2.4.1
Toby Dickenson
tdickenson@geminidataloggers.com
Tue, 31 Dec 2002 07:10:09 -0500
Update of /cvs-repository/Zope/lib/python/AccessControl
In directory cvs.zope.org:/tmp/cvs-serv18908/lib/python/AccessControl
Modified Files:
Tag: toby-http-forwarded-for-branch
User.py
Log Message:
implemented Brians proposal for a getClientAddr method
=== Zope/lib/python/AccessControl/User.py 1.170.6.2 => 1.170.6.2.4.1 ===
--- Zope/lib/python/AccessControl/User.py:1.170.6.2 Wed Oct 16 17:34:35 2002
+++ Zope/lib/python/AccessControl/User.py Tue Dec 31 07:09:38 2002
@@ -1113,8 +1113,7 @@
if request.has_key('REMOTE_HOST'):
host=request['REMOTE_HOST']
- if request.has_key('REMOTE_ADDR'):
- addr=request['REMOTE_ADDR']
+ addr=request.getClientAddr()
if not host and not addr:
return 0