Forum OpenACS Development: Re: Syncing OpenACS Calendar to external information sources

All you need is the package_id, the rest can be gotten from the site_nodes utilities.  This is important because they cache stuff and are fast.

One traditional way to handle this is to have API procs take an optional package_id parameter, which they default to [ad_conn package_id].

Since your code to insert items via an rpc-call "knows" that it is doing this, it could figure out the proper package_id and pass it in, no?

There were only a few lines to change in fact... One small change in calendar::item::get and some more changes in calendar::do_notifications. Passing in the package_id would be an option, but then i had to change calendar::item::new as well and i wanted to make as few changes as possible. As Don pointed out, after querying the database for the package_id, all other info can be retrieved via site_node utils. How could i contribute that change (might be quite useful for others)? Make a patch for a bug-tracker item?
Peter - create a patch for bug-tracker.