Forum OpenACS Q&A: Re: Service contract Tcl API

Collapse
Posted by Dave Bauer on
Don,

I am working on a dynamic sc implementation for ETP. When a new ETP application type (content_type) is introduced it will create a new search implementation for that type.

I am going to use the same Tcl procs for each type implementation and then write callbacks into ETP. So with the way search is currently implemented, you do need a seperate implementation for each content type.

Besides that I prefer the first approach.

Collapse
Posted by Jeff Davis on
A great thing with a -implements flag to ad_proc is that we could check that the argument signatures match when bound and could also add pre and post conditions efficiently. The complicating factor would be we would have to make some decision on how to deal with forward references.

In general though I like it and think it has value both in terms of making the code self documenting and providing hooks for doing more sophisticated things with the contracts.