Forum OpenACS Development: Re: /file.vuh: set correct package_id in ad_conn

Collapse
Posted by Dave Bauer on
Of course ad_conn package_id refers to the package_id of the URL you are accessing.

I don't see this as a useful addition to do an additional query for information that is already stored in the database. That is, if you are tracking usage of the object in question, you already have the object_id, and you can get the package_id later if you need it for some report.

In addition ad_conn object_id IS the package_id mounted at the current site_node, unless you have mounted some other object there, but in that case ad_conn package_id is wrong since its set to site_node(object_id) anyway.

That is ad_conn object_id is not referring at all to a "viewed" object.

I know that Jeff Davis proposed a "displayed_object_id" property that would be sent to the master template for handling, but it was never added to ad_conn.