Posts

Showing posts with the label lxml

zodb cherrypy and lxml - simple CRUD and OO database with python.

Below I have combined three python libraries to let you do a free-form CRUD document oriented database with a webserver. Where you can just pass it most any text based html form and it will be able CReate, Update, and Delete pages. In the post I made about cherrypy + zodb and python I combined the best python object database ' zodb ' with arguably the best python webserver ' cherrypy ', to create a very simple key/value datastore. This time I've combined it with lxml, to give you a very simple free form CRUD document web application. lxml is an xml library with a number of interesting features. Including a form filling library. Below is a script which uses ' lxml ' to fill in a custom form - specified in normal html - with data you have. lxml has many html/xml related stuff in it... including a css library, and is very fast. Well worth checking out if you need to do anything webby. You can define your html form, and it'll save whatever fields you h...