Forum OpenACS Q&A: Finding out where a package is mounted

Hi all,

I'm needing to find out where a certain package is mounted. Jim Lynch shared this query with me on the #openacs IRC channel that finds that out:

       select site_node__url(n.node_id)
         from site_nodes n, apm_packages p
        where p.package_id = n.object_id
          and p.package_key = 'package_key'

I'm wondering if there's an api call somewhere that does that already, or if there's a better way to find out that information. If not, perhaps we should consider adding a proc to the core that would do it?

Collapse
Posted by Lars Pind on
apm_package_url_from_key

/Lars

Collapse
Posted by Dan Wickstrom on
Look at apm_package_url_from_key.  It's located in acs-tcl/tcl/apm-procs.tcl
Collapse
Posted by Roberto Mello on
Thanks Lars and Dan. You guys rock! I knew about apm_package_url_from_key but totally spaced about it.