結局、
C:\Program Files\Google\google_appengine\google\appengine\tools\appengine_rpc.py
をコメントアウトしちまったよw
- class HttpRpcServer(AbstractRpcServer):
-
- DEFAULT_COOKIE_FILE_PATH = "~/.appcfg_cookies"
- def __init__(self, *args, **kwargs):
- self.certpath = os.path.normpath(os.path.join(
- os.path.dirname(__file__), '..', '..', '..', 'lib', 'cacerts',
- 'cacerts.txt'))
- self.cert_file_available = os.path.exists(self.certpath)
- super(HttpRpcServer, self).__init__(*args, **kwargs)
- def _CreateRequest(self, url, data=None):
-
- req = super(HttpRpcServer, self)._CreateRequest(url, data)
-
-
- return req def _Authenticate(self):
-
-
-
-
-
-
-
- super(HttpRpcServer, self)._Authenticate() if self.cookie_jar.filename is not None and self.save_cookies:
- logger.info("Saving authentication cookies to %s",
- self.cookie_jar.filename)
- self.cookie_jar.save()
class HttpRpcServer(AbstractRpcServer):
"""Provides a simplified RPC-style interface for HTTP requests."""
DEFAULT_COOKIE_FILE_PATH = "~/.appcfg_cookies"
def __init__(self, *args, **kwargs):
self.certpath = os.path.normpath(os.path.join(
os.path.dirname(__file__), '..', '..', '..', 'lib', 'cacerts',
'cacerts.txt'))
self.cert_file_available = os.path.exists(self.certpath)
super(HttpRpcServer, self).__init__(*args, **kwargs)
def _CreateRequest(self, url, data=None):
"""Creates a new urllib request."""
req = super(HttpRpcServer, self)._CreateRequest(url, data)
# if self.cert_file_available and fancy_urllib.can_validate_certs(): ←ココ
# req.set_ssl_info(ca_certs=self.certpath) ←ココ
return req def _Authenticate(self):
"""Save the cookie jar after authentication."""
# if self.cert_file_available and not fancy_urllib.can_validate_certs():←ココ
# logger.warn("""ssl module not found. ←ココ
# Without the ssl module, the identity of the remote host cannot be verified, and ←ココ
# connections may NOT be secure. To fix this, please install the ssl module from ←ココ
# http://pypi.python.org/pypi/ssl . ←ココ
# To learn more, see http://code.google.com/appengine/kb/general.html#rpcssl .""") ←ココ
super(HttpRpcServer, self)._Authenticate() if self.cookie_jar.filename is not None and self.save_cookies:
logger.info("Saving authentication cookies to %s",
self.cookie_jar.filename)
self.cookie_jar.save()
ぶっちゃけなんの解決にもならんかったけどw
誰か手とり足取り教えてくれー