Forum OpenACS Q&A: Response to A general-ratings package for OACS

Collapse
Posted by Dean Des Rosiers on
The architecture is see for this service-contract is as follows:

1) a form that allows a user to rate an object shall be placed on the appropriate page

2) the "action" of this form shall be a singleton service that handles all ratings

3) upon registering the user's rating, the service will send the user back to the page from whence they came

I'd like for there to be a widget for painting the rating form on the page.  This widget would look in the db for the different ratings dimensions associated with this object type (e.g. for a photo: "technical composition", "aesthetic quality")
Using the information in the db an appropriate form could be drawn, complete with proper "return-to" information.

So I'm a little stuck.  How much of this stuff has been written?  Is there an service out there that "plugs in" to existing pages and loops back to them after doing some work, or am I in uncharted territory.  Are there an ad_* commands that can help reconstitute the url of the calling page or is the ns_conn command the only game in town?

LOTS of Q's!