This seems to work but you might need to play around with the layout (need
to replace recaptcha keys).
def captcha_form():
public_key = 'xxx'
private_key = 'xxx'
form = SQLFORM(db.confession)
form[0].append(TR('',Recaptcha(request, public_key, private_key),''))
if form.accepts(request.vars, session):
response.flash = 'form accepted'
elif form.errors.has_key('captcha'):
response.flash='invalid capctha'
elif form.errors:
response.flash = 'form has errors'
else:
response.flash = 'please fill the form'
return dict(form=form)