before insert table can execute python function to convert data
e.g.
user insert Field intervals in list [2, 2, 1, 2, 2, 2, 1]
then base on list above automatically convert and insert into Field intervals_name with [W, W, H, W, W, W, H] on the same table
or
after insert table can send email to user, base on field email stored on another table
e.g.
Objective
before insert table can execute python function to convert data e.g. user insert Field intervals in list [2, 2, 1, 2, 2, 2, 1] then base on list above automatically convert and insert into Field intervals_name with [W, W, H, W, W, W, H] on the same table
or
after insert table can send email to user, base on field email stored on another table e.g.
question
is it possible to use callback on record insert, delete and update in pony ?
ref http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#callbacks-on-record-insert-delete-and-update
n.b. objective above can be achieve in pydal
thanks