Forum OpenACS Development: Re: Coding Automatic Subsite Creation and Configuration

Collapse
Posted by Randy O'Meara on
Thank you Samir and Don.

The dotLRN mount_package looks like a good start for the "mounting" portion of issue a). More to come...

Randy

Collapse
11: Coding Subsite Deletion (response to 10)
Posted by Randy O'Meara on
I am now able to create a subsite and mount subordinate applications.

Now, I am searching for an acceptable method to programatically delete a subsite. The subsite may have other  applications and subsites mounted beneath it. In addition, there is at least one side-effect of creating a subsite that also has to be addressed, and that is removal of the "Parties" application group and its relations that are associated with the subsite.

I see the process going something like this:
1) identify all site nodes subordinate to the subsite
2) for each of the subordinate nodes, unmount and delete
3) unmount the subsite itself
4) delete the "Parties" application group
5) delete the subsite
6) pray... (actually this should be step 0

First, am I missing anything?

Second, how might I go about performing step 1?

Randy