Would be nice to have some global events in web2py workflow. I can imagine some useful hooks:
workflow global events: onrequest # before the execution of action/model prerender # after the execution of action/model but before the view rendering onrender # after the view render but before the output onresponse # after all the request process finished. DAL global events: preselect - onselect preinsert - oninsert preupdate - onupdate predelete - ondelete ASPnet has some usefull event system (oninit, onload, pageload etc..) I dont even know if it is possible to trigger all of them in web2py and how can it cost. but would be nice to have it. http://zerp.ly/rochacbruno Em 11/10/2011 17:23, "Massimo Di Pierro" <massimo.dipie...@gmail.com> escreveu: > Not yet at the db level but at the form level: > > > form=SQLFORM(...).process(onsuccess=lambda form:...) > > > On Oct 11, 3:11 am, Manuele <manuele.pese...@gmail.com> wrote: > > Hi, > > is there a way to trigger some functions on database eventes, for > > example on new record? > > > > thanks a lot > > > > Manuele