Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/acs-admin/www/apm/package-deinstall.adp'. Fisheye: No comparison available. Pass `N' to diff? Index: openacs-4/packages/acs-admin/www/apm/package-deinstall.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/package-deinstall.tcl,v diff -u -r1.2 -r1.2.20.1 --- openacs-4/packages/acs-admin/www/apm/package-deinstall.tcl 11 Dec 2003 21:39:45 -0000 1.2 +++ openacs-4/packages/acs-admin/www/apm/package-deinstall.tcl 27 Sep 2013 18:47:52 -0000 1.2.20.1 @@ -9,12 +9,13 @@ version_id:naturalnum } - apm_version_info $version_id -doc_body_append "[apm_header [list "version-view?version_id=$version_id" "$pretty_name $version_name"] "Deinstall"]" +set title "Deinstall" +set context [list [list "/acs-admin/apm/" "Package Manager"] \ + [list "version-view?version_id=$version_id" "$pretty_name $version_name"] \ + $title] - db_transaction { doc_body_append "
-Return to the index. -[ad_footer] -" +append body "
Return to the index" Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/acs-admin/www/apm/package-delete-2.adp'. Fisheye: No comparison available. Pass `N' to diff? Index: openacs-4/packages/acs-admin/www/apm/package-delete-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/package-delete-2.tcl,v diff -u -r1.7 -r1.7.12.1 --- openacs-4/packages/acs-admin/www/apm/package-delete-2.tcl 4 Jun 2006 00:45:20 -0000 1.7 +++ openacs-4/packages/acs-admin/www/apm/package-delete-2.tcl 27 Sep 2013 18:47:52 -0000 1.7.12.1 @@ -13,26 +13,34 @@ if {![apm_version_installed_p $version_id]} { - doc_body_append "[apm_header "Package Deleted."] -The version you have indicated has been deleted.
-Return to the index. -[ad_footer] -" -ad_script_abort + set title "Package Deleted" + set context [list [list "/acs-admin/apm/" "Package Manager"] $title] + set body {The version you have indicated has been deleted.
+ Return to the index. + } +} else { + apm_version_info $version_id + + set title "Delete" + set context [list [list "/acs-admin/apm/" "Package Manager"] $title] + set body "" + if { [catch {apm_package_delete \ + -sql_drop_scripts $sql_drop_scripts \ + -remove_files=0 \ + -callback apm_doc_body_callback $package_key} errmsg] } { + append body [subst { + We encountered the following error when deleting package "$package_key": +
+ }] + } else { + append body { + +[ad_quotehtml $errmsg]
You should restart the server now to make sure the memory footprint + and cache of the package is cleared out. Click here + to restart the server now.
+ } + } } -apm_version_info $version_id -doc_body_append [apm_header "Delete"] -if { [catch {apm_package_delete -sql_drop_scripts $sql_drop_scripts -remove_files=0 -callback apm_doc_body_callback $package_key} errmsg] } { - doc_body_append "We encountered the following error when deleting package \"$package_key\": -" -} - -doc_body_append " - -[ad_quotehtml $errmsg]
-
You should restart the server now to make sure the memory footprint and cache of the package is cleared out. Click here to restart the server now.
-[ad_footer] -" Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/acs-admin/www/apm/package-delete.adp'. Fisheye: No comparison available. Pass `N' to diff? Index: openacs-4/packages/acs-admin/www/apm/package-delete.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/package-delete.tcl,v diff -u -r1.9.8.4 -r1.9.8.5 --- openacs-4/packages/acs-admin/www/apm/package-delete.tcl 9 Sep 2013 16:44:16 -0000 1.9.8.4 +++ openacs-4/packages/acs-admin/www/apm/package-delete.tcl 27 Sep 2013 18:47:52 -0000 1.9.8.5 @@ -92,22 +92,24 @@ " } -set body "[apm_header -form "action=\"package-delete-2\" method=\"post\"" [list "version-view?version_id=$version_id" "$pretty_name $version_name"] "Delete"] -$warning_text +set title "Delete" +set context [list [list "/acs-admin/apm/" "Package Manager"] \ + [list "version-view?version_id=$version_id" "$pretty_name $version_name"] \ + $title] -Deleting a package removes all record of it from the APM's database.
+set body [subst { + +}] -[export_vars -form {version_id}] -$file_list -- - -[ad_footer]" -doc_return 200 text/html $body - - Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/acs-admin/www/apm/packages-install-2.adp'. Fisheye: No comparison available. Pass `N' to diff? Index: openacs-4/packages/acs-admin/www/apm/packages-install-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/packages-install-2.tcl,v diff -u -r1.12.4.4 -r1.12.4.5 --- openacs-4/packages/acs-admin/www/apm/packages-install-2.tcl 9 Sep 2013 16:44:16 -0000 1.12.4.4 +++ openacs-4/packages/acs-admin/www/apm/packages-install-2.tcl 27 Sep 2013 18:47:52 -0000 1.12.4.5 @@ -44,87 +44,93 @@ } } +set title "Package Installation" +set context [list [list "/acs-admin/apm/" "Package Manager"] $title] + if {![info exists install_spec_files]} { - doc_body_append "[apm_header "Package Installation"]
-No packages selected.
[ad_footer]" - return -} + set body { +
+ No packages selected.
+ } +} else { -### Dependency Check -set dependency_results [apm_dependency_check -pkg_info_all $pkg_info_list $install_spec_files] + ### Dependency Check + set dependency_results [apm_dependency_check -pkg_info_all $pkg_info_list $install_spec_files] -if { [lindex $dependency_results 0] == 1 && [llength [lindex $dependency_results 2]] > 0 } { + if { [lindex $dependency_results 0] == 1 && [llength [lindex $dependency_results 2]] > 0 } { - set extra_package_keys [lindex $dependency_results 2] + set extra_package_keys [lindex $dependency_results 2] - # Check was good after adding a couple more packages + # Check was good after adding a couple more packages - doc_body_append "[apm_header "Package Installation"] -
+ set body [subst { +
- Some of the packages you were trying to install required other packages to be installed first. - We've added these additional packages needed, and ask you to review the list of packages below. + Some of the packages you were trying to install required other packages to be installed first. + We've added these additional packages needed, and ask you to review the list of packages below. -
+ }] + + } elseif { ([lindex $dependency_results 0] == 1) || $force_p eq "t" } { -} elseif { ([lindex $dependency_results 0] == 1) || $force_p eq "t" } { - ### Check passed! Initiate install. + ### Check passed! Initiate install. - # We use client properties to pass along this information as it is fairly large. - ad_set_client_property -clob t apm pkg_install_list [lindex $dependency_results 1] - ad_set_client_property -clob t apm pkg_enable_list $enable + # We use client properties to pass along this information as it is fairly large. + ad_set_client_property -clob t apm pkg_install_list [lindex $dependency_results 1] + ad_set_client_property -clob t apm pkg_enable_list $enable - ad_returnredirect packages-install-3 - ad_script_abort -} else { - ### Check failed. Offer user an explanation and an ability to select unselect packages. - doc_body_append "[apm_header "Package Installation"] -- - Some of the packages you are trying to install have unsatisfied dependencies. The packages - with unsatisfied dependencies have been deselected. If you wish to install packages that do - not pass dependencies, please click the \"force\" option below. -
- -
-- Force the install - -- " - - doc_body_append [apm_package_selection_widget [lindex $dependency_results 1] $install $enable] + ad_returnredirect packages-install-3 + ad_script_abort + } else { + + ### Check failed. Offer user an explanation and an ability to + ### select unselect packages. + + set body [subst { - doc_body_append " -
+ +
++ Force the install + ++ }] + + append body \ + [apm_package_selection_widget [lindex $dependency_results 1] $install $enable] \ + [subst { +
+ Check all the files you want to be loaded into the database.
+
- -Check all the files you want to be loaded into the database.
-