worked out bugs in the module install and community service add

This commit is contained in:
Eric J. Bowersox
2003-06-24 00:38:19 +00:00
parent 278ad880bb
commit cb7b327da8
16 changed files with 88 additions and 25 deletions

View File

@@ -37,12 +37,14 @@ if (!(acl.testPermission(user,VeniceNamespaces.SYSTEM_PERMS_NAMESPACE,"uninstall
modops = cast.queryModuleOperations(req);
the_module = rhelp.getParameterString("mod");
the_module = req_help.getParameterString("mod");
if (the_module!=null)
{ // we want to uninstall this module
logger.debug("Want to uninstall " + the_module);
rc = null;
if (vlib.confirmed(req,"/sysadmin/module_uninstall.js.vs","confirmation","confnum"))
{ // OK, they have confirmed they want to uninstall the module...do it!
logger.debug("confirmed - do the uninstall!");
mod = modops.findModuleByFilename(n);
except = null;
log = new SimpleMemoryLog();
@@ -68,9 +70,10 @@ if (the_module!=null)
} // end if
else
{ // generate a confirmation number box
msg = "You are about to uninstall module '" + the_module + "'! This will cause any and all data associated with "
+ "this module (such as database tables and their contents) to be <b>DESTROYED AND IRREVOCABLY LOST!</b> "
+ "Are you <em>really</em> sure you want to do this?";
logger.debug("need confirmation number");
msg = "You are about to uninstall module '" + stringutils.encodeHTML(the_module) + "'! This will cause any and "
+ "all data associated with this module (such as database tables and their contents) to be <b>DESTROYED AND "
+ "IRREVOCABLY LOST!</b> Are you <em>really</em> sure you want to do this?";
ok_url = "sysadmin/module_uninstall.js.vs?mod=" + stringutils.encodeURL(the_module);
rc = new ConfirmBox(req,"/sysadmin/module_uninstall.js.vs","confirmation","confnum",
"Module Uninstall Confirmation",msg,"SERVLET",ok_url,"SERVLET",