Forum OpenACS Development: Re: ad_conn and no connection

Collapse
Posted by Dave Bauer on
I think there is a BUG in the procedure that gets a community url for a user. That was introduced after the bugtracker code was written.

In general NEVER call ad_conn from a procedure, unless you have a very good reason. I think the code you are referring to where you assume the main subsite, is the same thing I did to make bugtracker search work on openacs.org.

It need a real fix for multiple subsites.

Collapse
Posted by Christian Brechbuehler on
Thanks, Dave!

Blunt question: what's a community?

I've come across community_id here and there, and it looks like a dotLRN thing. E.g., SQL trying to access column community_id in table site_wide_index fails, because there is no such column in the data model (non-dotLRN). I'm kludging the API discrepancies by passing around 0, but it doesn't feel like the right approach.

As I recently asked in a separate thread: Does community have any meaning outside dotLRN?
If yes, how does "community" relate to the good old "subsite"?

BTW, I have two bug_tracker instances, and the hack of always assuming main site gives me the correct, distinct URLs in search results.