Thought you may be interested in this http://groups.google.com/group/web2py/browse_thread/thread/ d0da4bd8133bf608 It may need some improvement but seems to work. Massimo