Ok, now for a real example, or what goes in the ...
There are a number of very standard things we want to do from PJS.
Access an element of the page by its id.
and then call methods on those and pass them around.
which might highlight the news portlet for one second when triggered.
catalog = context.portal_catalog
ob = catalog(UID=of).getObject()
files = page.files
for title, data in ob.treeFolderContents():
Looks just like a regular Python Script in Zope. Parameters tells Zope what to demand from the caller (in this case the AJAX request) and then runs as normal.
There are unit and doc tests for this stuff and its still evolving. Its fun to play with, give it a try.
This is checked into Bling which can still be had from