Changeset 1230 in products
- Timestamp:
- Aug 10, 2009 1:19:00 PM (16 years ago)
- Location:
- quintagroup.camefrominfo/trunk/quintagroup/camefrominfo
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.camefrominfo/trunk/quintagroup/camefrominfo/browser/browser.py
r1121 r1230 9 9 """get info""" 10 10 service = getUtility(ICameFromInfoUtility) 11 res = service.getInfo(self.context )11 res = service.getInfo(self.context.REQUEST) 12 12 return res -
quintagroup.camefrominfo/trunk/quintagroup/camefrominfo/camefromutility.py
r1121 r1230 10 10 pass 11 11 12 def getInfo(self, context):12 def getInfo(self, request): 13 13 """ get info """ 14 request = context.REQUEST15 14 ip = request.get('HTTP_X_FORWARDED_FOR', None) or request.getClientAddr() 16 15 ip = ip.split(',')[0] -
quintagroup.camefrominfo/trunk/quintagroup/camefrominfo/interfaces.py
r1121 r1230 4 4 """ 5 5 """ 6 def getInfo(self, context):6 def getInfo(self, request): 7 7 """ get info """
Note: See TracChangeset
for help on using the changeset viewer.