Ya that is true.. Have been following the mailing list closely and will definitely agree with you..Massimo is amazing..... In fact "Massimo is to web2py what Guido is to python"... wow that does sound good! :-)
On Fri, Sep 10, 2010 at 9:58 AM, Richard <[email protected]> wrote: > Wow so fast. Massimo you are amazing! > > > On Sep 9, 11:26 pm, mdipierro <[email protected]> wrote: > > oops. fixed in trunk > > > > On Sep 9, 7:50 am, Richard <[email protected]> wrote: > > > > > I want to do some preprocessing before permitting SQLFORM to delete a > > > record: > > > > > topic = db.topic[topic_id] > > > form = SQLFORM(db.topic, topic) > > > if form.accepts(request.vars, session, dbio=False): > > > if form.vars.get('delete_this_record'): > > > response.flash = 'Delete intercepted' > > > else: > > > response.flash = 'Update intercepted' > > > > > However I found dbio only applies to insert/update and doesn't affect > > > delete (sqlhtml.py: 952, 1031). > > > Why doesn't dbio apply to all databases operations? > > > Is there an alternative way to intercept SQLFORM deletion? > > > > > thanks, > > > Richard > > > > >

