Forum OpenACS Q&A: Re: General comments data model

Collapse
Posted by Dave Bauer on
Tammy,

Because general-comments are not an object type, you can't create a search service contract for just general comments. You would have to associate the service contract with acs_message.

A refined general comments data model would directly subtype content_revision and store comments in the content repository. I am not sure how to handle attachments. I like the idea of handling upload of attachments in a standard way, but I don't feel the attachments package is the right way to do it.

I will post a new plan for a general comments data model and api in the next week for review.

Collapse
Posted by tammy m on
Hi Dave,

I was looking for a object_type to subclass with general-comments so that I could implement Search. I didn't think it would be the right way to implement the search on acs-message-revision because that object_type is not associated with a static-page and the Search contract needs to get a URL -- I wanted the URL to be to the static-page the general-comment is associated with.

It makes sense to make general-comments a subtype of content_revision directly if we really don't need to use a functionality that acs-message-revision + acs-message were providing.  I'm new to OACS so I am not really sure how much acs-message functionality general-comments relies on. If it's just storage I guess that would not be hard too to replicate.

I'll be looking forward to your data model + api:)