def index(): """ example action using the internationalization operator T and flash rendered by views/default/index.html or views/generic.html if you need a simple wiki simple replace the two lines below with: return auth.wiki() """ row=db(content.html).select().last() form=FORM('html',TEXTAREA(row.html,_id="textarea_id",_name="content" ,_style="width:700px;height:300px;"), INPUT(_type='submit'), next=URL('default','index')) if form.process().accepted: session.flash = form.vars content.insert(html= form.vars['content']) elif form.errors: response.flash = 'form has errors' else: response.flash = 'please fill the form' return dict(form=form,req=form.vars)