Wednesday, June 12, 2002

Just a reminder that Patrick O'Brien and I will be doing a presentation at the O'Reilly Open Source Convention (OSCON) this summer in San Diego called Building GUI Applications With PythonCard And PyCrust. The conference is from July 22-26, and our session is scheduled for Thursday, July 25 from 1:45pm - 2:30pm in the Marina III room.

If you will be attending OSCON and would like to find out more about PythonCard, please let me (Kevin Altis) know. I will be in San Diego at the Sheraton all week and would love to get together to discuss PythonCard with anyone interested.

2:40:12 PM    comment []

XML-RPC server in PythonCard 0.6.7

A new release of PythonCard should be out in the next couple of days. You can download it from cvs now if you don't want to wait. Among the many new samples is a GUI front-end to the web server that comes with the Python Standard Libraries. In addition to serving files, the webserver sample can do CGI, so it is a great way to get a web server up quickly on your desktop; all you have to do is double-click the script. Several example CGI scripts are included with the server.

I added Mark Pilgrim's PyWebServices scripts, so the webserver can act as an XML-RPC server too. After starting up the webserver sample you can test the XML-RPC server capabilities by running the radioclient sample, which automatically shows the shell and imports the xmlrpclib module. Then try this in the shell:

>>> server = xmlrpclib.Server('http://localhost/cgi-bin/')
>>> server.system.listMethods()
{'sample.helloWorld()': 'None', 'examples.getStateName(stateIndex)': 'None',
'system.listMethods()': 'None'}
>>> server.sample.helloWorld()
'Hello World!'
>>> server.examples.getStateName(1)
>>> server.examples.getStateName(50)

1:29:22 PM    comment []