Is it possible to do something like that in the db declarations or I
have to put code inside the controller?
For example in Rails you specify functions that will run before or
after an insert/update/delete/select inside the declaration of model.
That makes the code very easy to read/reuse.

I think that it is easy to do this in web2py if you put something like
that:
db.table_name.table_field.after_update = function_do_something

Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to