Forum OpenACS Development: Figuring out the package_id in upgrade scripts?
Somewhere you'd need a "parent" object that tells you the hierarchy of objects in your package.
Like Rocael said, if the context_id is set to the package_id, that might help out.
for project-manager (thanks to daveb):
description = 'Project Repository'
Gets the right ID.
select context_id from acs_objects where object_type = 'logger_project' limit 1 also seems to work.
Any preference on how to get the package_id for project manager?