Forum OpenACS Development: Re: Postgres functions callbacks?

Collapse
Posted by Dave Bauer on
The old site-wide-seach and acs-service package also implemented someting similar in pl/sql (oracle only). It was insanely complex though and wrote all the pl/sql dynamically if I recall correctly.

I like Tom's idea. Works great with postgresql.

Another option is to use an insert view and rule like the content repository. That probably doesn't really get you where you need to go. I think either Tcl with callbacks or an something with xotcl is the only maintianable solution.

Collapse
Posted by Tom Jackson on
Obviously not an expert in xotcl, but this should be exactly the application for it in Tcl. Do you end up with a different command after this in xotcl, or can you still access the previous command?
Collapse
Posted by Gustaf Neumann on
the original command (the method being called) is not altered. xotcl interceptors allow to perform some action before the intercepted call and after the intercepted call. The interceptors can be dynamically added and removed, and they can be stacked.