Using the Python Library with Google App Engine
Jeff from Optimizely pointed out that km.py
uses the socket package, whereas Google App Engine locks down arbitrary socket connections. Instead, you can make a connection over port 80 via urlfetch. Here are the changes you need to make:
- Remove the
import socket
line from the top and replace it withfrom google.appengine.api import urlfetch
- After
host,port = cls._host.split(':')
, replace the socket logic with the following:
dsf
Hope this helps - email jeff+pickhardt@optimizely.com with any questions.