Index: openacs-4/packages/acs-admin/www/apm/packages-install-4.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/packages-install-4.tcl,v diff -u -N -r1.16.10.1 -r1.16.10.2 --- openacs-4/packages/acs-admin/www/apm/packages-install-4.tcl 27 Sep 2013 18:46:36 -0000 1.16.10.1 +++ openacs-4/packages/acs-admin/www/apm/packages-install-4.tcl 28 Sep 2013 18:17:36 -0000 1.16.10.2 @@ -15,12 +15,19 @@ set pkg_enable_list [ad_get_client_property apm pkg_enable_list] set sql_file_paths [ad_get_client_property apm sql_file_paths] -ad_return_top_of_page "[apm_header "Package Installation"] -

Installing packages...

-

-

\n" ad_script_abort } incr installed_count } if {$installed_count < 1} { - ns_write " - All packages in this directory have already been installed. - Please return to the index.

- [ad_footer]" - return + ns_write { + + All packages in this directory have already been installed. + Please return to the index.

+ } } else { - -ns_write "

-Done installing packages. -

You should restart the server now to make installed and upgraded packages available. Click here to restart the server now.

-[ad_footer] -" + ns_write {

+ Done installing packages. +

You should restart the server now to make installed and upgraded packages available. + Click here to restart the server now.

+ } } Index: openacs-4/packages/acs-admin/www/apm/packages-install.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/packages-install.tcl,v diff -u -N -r1.22.4.1 -r1.22.4.2 --- openacs-4/packages/acs-admin/www/apm/packages-install.tcl 27 Sep 2013 18:46:36 -0000 1.22.4.1 +++ openacs-4/packages/acs-admin/www/apm/packages-install.tcl 28 Sep 2013 18:17:36 -0000 1.22.4.2 @@ -11,22 +11,18 @@ set title "Package Installation" set context [list [list "/acs-admin/apm/" "Package Manager"] $title] -set body { -

Select Data Model Scripts to Run

-

- Check all the files you want to be loaded into the database.

-

-} -ad_return_top_of_page "[apm_header "Package Installation"] -

Please wait while the installer searches your system for packages to install ...

+ad_return_top_of_page [ad_parse_template -params [list context title] \ + "/packages/openacs-default-theme/lib/plain-streaming-head"] -" - ### Get all the spec files -# If a package is in the apm_workspace dir then we assume that that is the package that -# should be installed and we ignore any such package in the packages dir. +# +# If a package is in the apm_workspace dir then we assume that that is +# the package that should be installed and we ignore any such package +# in the packages dir. +# # TODO: make sure that it's a later version than that in the packages dir? +# set packages_root_dir "[acs_root_dir]/packages" set packages_spec_files [apm_scan_packages $packages_root_dir] set workspace_spec_files [apm_scan_packages [apm_workspace_install_dir]] @@ -60,7 +56,8 @@ lappend spec_files $spec_file } else { ns_log Notice "need upgrade of package $package_key $version_name" - lappend already_installed_list "Package "$package_name" ($package_key) version $version_name or higher is already installed." + lappend already_installed_list \ + "Package "$package_name" ($package_key) version $version_name or higher is already installed." } } else { lappend spec_files $spec_file @@ -72,27 +69,25 @@ apm_log APMDebug $spec_files -ns_write "Done.

-" - if { $spec_files eq "" } { # No spec files to work with. - ns_write " + ns_write [subst {

No New Packages to Install

There are no new packages to install. Please load some - using the Package Loader.

- Return to the APM.

- " + using the Package Loader.

+ Return to the APM.

+ }] } else { - ns_write " + ns_write {

Select Packages to Install

-

Please select the set of packages you'd like to install.

" +

Please select the set of packages you'd like to install.

+ } - ns_write " + ns_write [subst { - -uncheck all boxes | -check all boxes -" +uncheck all boxes | +check all boxes + }] ns_write "" @@ -138,19 +133,18 @@ set widget [apm_package_selection_widget $pkg_info_list $pkg_key_list $pkg_key_list] } else { set widget [apm_package_selection_widget $pkg_info_list] - } +} if {$widget eq ""} { - ns_write "There are no new packages available.

- [ad_footer]" + ns_write "There are no new packages available." ad_script_abort } - + ns_write $widget - ns_write " - \"> + ns_write [subst { +

- " + }] if {$errors ne ""} { ns_write "The following errors were generated @@ -168,9 +162,3 @@ if { [llength $already_installed_list] > 0 } { ns_log Notice "APM packages-install: Already Installed Packages\n- [join $already_installed_list "\n- "]" } - - - -ns_write " -[ad_footer] -"