some more minor mods to the module manager, and implementation of the module
uninstallation page
This commit is contained in:
41
venice-data/velocity/sysadmin/module_uninstall.vm
Normal file
41
venice-data/velocity/sysadmin/module_uninstall.vm
Normal file
@@ -0,0 +1,41 @@
|
||||
#*
|
||||
The contents of this file are subject to the Mozilla Public License Version 1.1
|
||||
(the "License"); you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
|
||||
WARRANTY OF ANY KIND, either express or implied. See the License for the specific
|
||||
language governing rights and limitations under the License.
|
||||
|
||||
The Original Code is the Venice Web Communities System.
|
||||
|
||||
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||||
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||||
Copyright (C) 2003 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
*#
|
||||
#*
|
||||
Parameters:
|
||||
modlist = List of module file names which are not yet installed.
|
||||
*#
|
||||
#header1( "Uninstall Modules" )
|
||||
<p><a href="#formatURL( "SERVLET" "sysadmin/modules.js.vs" )">Return to Previous Menu</a></p>
|
||||
#if( $modlist.isEmpty() )
|
||||
<p><em>No modules are curently installed in the system.</em></p>
|
||||
#else
|
||||
<p>The following modules are presently installed on the system. Click a module's name to uninstall it.</p>
|
||||
<div align="center"><table border="1" cellpadding="2" cellspacing="0">
|
||||
<tr>
|
||||
<th><b>Name</b></th>
|
||||
<th><b>Description</b></th>
|
||||
</tr>
|
||||
#foreach( $x in $modlist )
|
||||
#set( $en = "#encodeURL( $x.name )" )
|
||||
<tr>
|
||||
<td><a href="#formatURL( "SERVLET" "sysadmin/module_uninstall.js.vs?mod=$en" )">#encodeHTML( $x.name )</a></td>
|
||||
<td>#encodeHTML( $x.descr )</td>
|
||||
</tr>
|
||||
#end
|
||||
</table></div>
|
||||
#end
|
||||
39
venice-data/velocity/sysadmin/module_uninstall_result.vm
Normal file
39
venice-data/velocity/sysadmin/module_uninstall_result.vm
Normal file
@@ -0,0 +1,39 @@
|
||||
#*
|
||||
The contents of this file are subject to the Mozilla Public License Version 1.1
|
||||
(the "License"); you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
|
||||
WARRANTY OF ANY KIND, either express or implied. See the License for the specific
|
||||
language governing rights and limitations under the License.
|
||||
|
||||
The Original Code is the Venice Web Communities System.
|
||||
|
||||
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||||
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||||
Copyright (C) 2003 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
*#
|
||||
#*
|
||||
Parameters:
|
||||
module = The name of the module we were uninstalling
|
||||
except = The exception that occurred if uninstall failed (null on success)
|
||||
log = List containing log messages from the uninstallation
|
||||
*#
|
||||
#header2( "Uninstall Module:" $module )
|
||||
#if( $except )
|
||||
<p>The uninstallation of module <b>#encodeHTML( $module )</b> failed. The following is the exception that was
|
||||
thrown by uninstallation:</p>
|
||||
<pre>#stacktrace( $except )</pre>
|
||||
#else
|
||||
<p>The uninstallation of module <b>#encodeHTML( $module )</b> was completed successfully.</p>
|
||||
#end
|
||||
<p>The following are the log messages generated by module uninstallation:</p>
|
||||
<table border="1" width="100%" cellpadding="3" cellspacing="0"><tr><td class="content">
|
||||
#foreach( $x in $log )
|
||||
#encodeHTML( $x )<br />
|
||||
#end
|
||||
</td></tr></table>
|
||||
<p><a href="sysadmin/module_uninstall.js.vs">Uninstall more modules</a></p>
|
||||
<p><a href="sysadmin/modules.js.vs">Return to previous menu</a></p>
|
||||
Reference in New Issue
Block a user