If you are using SQLFORM or FORM:

if form.accepts(...):
  #mail.send(...)

if you are using crud:


crud.settings.create_onaccept = lambda form: mail.send(...)


If you need to do that at database level, you will need to look at triggers
or create a kind of daemon to watch tables


2011/7/28 António Ramos <[email protected]>

> hello,
> what is the best way to add an event like "on create" on a table model?
>
> i want to send an email every time a record is create on a table.
>
> thank you
> António
>



-- 



--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar: http://CursoDePython.com.br ]
[ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ]
[ Consultoria em desenvolvimento web: http://www.blouweb.com ]

Reply via email to