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

Collapse
Posted by Mark Aufflick on
Malte, if you only need this behaviour for a single script (/file.vuh) why don't you just set it there?

You can alter an ad_conn property with ad_conn -set, that way any tcl/adp pairs you include will transparently have the package_id set the way you want.

Collapse
Posted by Malte Sussdorff on
First of all thanks for the insights. I actually went ahead and collected the object_id manually without changing file.vuh.

Learning that the object_id is actually the package_id is disturbing, I thought it really was the displayed_object_id. And obviously then the code I wrote makes absolutely no sense at all. Thanks for clearing that up Dave. In this case I will deduct the object_id from the URL in general. Especially as this is only a side topic for me 😊.