Forum OpenACS Development: How to execute a procedure from the install.xml

I have a custom install.xml. At one point in the install script I'd like to execute a procedure and not put this procedure call into the "after_install" part of a certain package.

Therefore my question, how can I execute a procedure from the install.xml file? Am I supposed to write the procedure like this:

ad_proc -public ::install::xml::action::malte_proc { .. } {
Create a lot of custom stuff for malte
} {
...
}

and then but in an < malte_proc> tag into the install.xml?

Collapse
Posted by Malte Sussdorff on
to answer my own question, here is how I did it:

# malte-install-procs.tcl

ad_proc -public::install::xml::action::malte { node } {} {

set url [apm_required_attribute_value $node url]

# do something with url or any other variable passed in
}

# install.xml

< malte url="/home/malte">