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

@@ -50,6 +50,7 @@ if (csd==null)
// Now add the service!
comm.addService(user,req,csd.name.namespace,csd.name.name);
vlib.forceReloadMenu(req);
// Bounce back to the services list.
dynamo.scriptOutput(new Redirect("SERVLET","comm/admin/services.js.vs"));
dynamo.scriptOutput(new Redirect("SERVLET","comm/admin/services.js.vs?cc=" + comm.getCID()));

View File

@@ -52,18 +52,19 @@ rc = null;
if (vlib.confirmed(req,"/comm/admin/svc_remove.js.vs","confirmation","confnum"))
{ // remove the service!
comm.removeService(user,req,csd.name.namespace,csd.name.name);
rc = new Redirect("SERVLET","comm/admin/services.js.vs");
vlib.forceReloadMenu(req);
rc = new Redirect("SERVLET","comm/admin/services.js.vs?cc=" + comm.getCID());
} // end if
else
{ // create the confirmation dialog
msg = "You are about to remove the service " + csd.name.namespace + "::" + csd.name.name + " from the community '"
+ comm.name + "'! This may cause any and all data associated with this service in the community (such as "
+ "database table contents) to be <b>DESTROYED AND IRREVOCABLY LOST!</b> Are you <em>really</em> sure you "
+ "want to do this?";
msg = "You are about to remove the service " + stringutils.encodeHTML(csd.name.namespace) + "::"
+ stringutils.encodeHTML(csd.name.name) + " from the community '" + stringutils.encodeHTML(comm.name)
+ "'! This may cause any and all data associated with this service in the community (such as database table "
+ "contents) to be <b>DESTROYED AND IRREVOCABLY LOST!</b> Are you <em>really</em> sure you want to do this?";
rc = new ConfirmBox(req,"/comm/admin/svc_remove.js.vs","confirmation","confnum","Service Remove Confirmation",msg,
"SERVLET","comm/admin/svc_remove.js.vs?cc=" + comm.getCID() + "&id=" + ndx,"SERVLET",
"comm/admin/services.js.vs");
"comm/admin/services.js.vs?cc=" + comm.getCID());
} // end else

View File

@@ -36,6 +36,7 @@ if (vlib.confirmed(req,"/comm/unjoin.js.vs","confirmation","confnum"))
} // end if
dynamo.scriptOutput(new ConfirmBox(req,"/comm/unjoin.js.vs","confirmation","confnum","Unjoin Confirmation",
"You are about to unjoin the '" + comm.name + "' community! Are you sure you want to do this?",
msg = "You are about to unjoin the '" + stringutils.encodeHTML(comm.name) + "' community! Are you sure you want "
+ "to do this?";
dynamo.scriptOutput(new ConfirmBox(req,"/comm/unjoin.js.vs","confirmation","confnum","Unjoin Confirmation",msg,
"SERVLET","comm/unjoin.js.vs?cc=" + comm.getCID(),"SERVLET","community/" + comm.alias));

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",