Archive for the 'CouchDB' Category

And another workspace . . .

Tuesday, April 8th, 2008

I have been messing about with CouchDB for a while. Back in 2006 I put together a couple of LotusScript wrapper classes for it using LS2J to do the communications and presenting a friendly API for putting Notes like data in and out of the CouchDB database. Now I have been mucking about with Python and PyGTK trying to build something of a GUI to link with CouchDB. Here are a couple of screenshots to give you a feel of the progress so far. Firstly the workspace, because every client worth having must have a workspace. This one is based on a gtkiconview widget. It really is getting the list of database names directly out of the CouchDB server. The icons are pulled from the filesystem at the moment but I want them to come from each database when I figure out how to work with attachments. They are .png files, I think .svg would work too, along with most other formats you could mention.

This next screenshot shows a form. The form is designed using Glade, a user interface designer which saves UI definitions as XML. The client code reads the XML and inserts the form into a new tab in it’s own user interface. At the moment the form XML is being read from the filesystem, but that too can come from a document in couchDB.

This will probably run on Windows as well as Linux. I don’t think GTK (or the Twisted/Python/GTK collection) runs on Mac at the moment.