Thanks. (my bad). I installed pyamf and now I'm getting 303 instead of
200. Some progress ;) Pyamf does support GAE. (
http://pyamf.org/wiki/
GoogleAppEngine).
I guess the issue is getting it to work with web2py. With
dev_appserver.py and debug on, I run a python client and I'm seeing:
>>> print service.echo('hello world')
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/Users/dfdumaresq/Projects/workspace_34/web2py_159/pyamf/
remoting/client/__init__.py", line 52, in __call__
return self.service._call(self, *args)
File "/Users/dfdumaresq/Projects/workspace_34/web2py_159/pyamf/
remoting/client/__init__.py", line 101, in _call
response = self._gw.execute_single(request)
File "/Users/dfdumaresq/Projects/workspace_34/web2py_159/pyamf/
remoting/client/__init__.py", line 409, in execute_single
envelope = self._getResponse()
File "/Users/dfdumaresq/Projects/workspace_34/web2py_159/pyamf/
remoting/client/__init__.py", line 454, in _getResponse
http_response.status, httplib.responses[http_response.status]))
RemotingError: HTTP Gateway reported status 303 See Other
The dev_appserver.py output is:
DEBUG 2009-04-21 05:09:54,587 dev_appserver.py] Matched "/" to CGI
dispatcher with path gaehandler.py
DEBUG 2009-04-21 05:09:54,590 dev_appserver.py] Executing CGI with
env:
{'APPLICATION_ID': 'cuecut',
'AUTH_DOMAIN': '
gmail.com',
'CONTENT_LENGTH': '49',
'CONTENT_TYPE': 'application/x-amf',
'CURRENT_VERSION_ID': '1.1',
'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTP_HOST': 'localhost:8000',
'HTTP_USER_AGENT': 'PyAMF/0.4.1',
'PATH_INFO': '/',
'PATH_TRANSLATED': '/Users/dfdumaresq/Projects/workspace_34/
web2py_159/gaehandler.py',
'QUERY_STRING': '',
'REMOTE_ADDR': '127.0.0.1',
'REQUEST_METHOD': 'POST',
'SCRIPT_NAME': '',
'SERVER_NAME': 'localhost',
'SERVER_PORT': '8000',
'SERVER_PROTOCOL': 'HTTP/1.0',
'SERVER_SOFTWARE': 'Development/1.0',
'TZ': 'UTC',
'USER_EMAIL': ''}
DEBUG 2009-04-21 05:09:54,590 dev_appserver.py] Reusing main()
function of module "gaehandler"
WARNING 2009-04-21 05:09:54,591 cache.py] no cache.disk
INFO 2009-04-21 05:09:54,623 dev_appserver.py] "POST / HTTP/1.1"
303 -
DEBUG 2009-04-21 05:09:54,624 dev_appserver_index.py] No need to
update index.yaml
All I can come up with here is perhaps gaehandler cannot find the
service echo, which is in /cuecut/projects.
Thanks for any ideas.
Dave