Index: openacs-4/packages/acs-admin/www/apm/file-watch-cancel.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/file-watch-cancel.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/acs-admin/www/apm/file-watch-cancel.tcl 10 Sep 2002 22:21:59 -0000 1.3 +++ openacs-4/packages/acs-admin/www/apm/file-watch-cancel.tcl 13 Mar 2003 14:54:55 -0000 1.4 @@ -1,23 +1,31 @@ ad_page_contract { - Stops watching a particular file. + Stops watching a particular file or all files if + no file is specified. @param watch_file The file to stop watching. @author Jon Salz [jsalz@arsdigita.com] @creation-date 17 April 2000 @cvs-id $Id$ } { - watch_file + {watch_file ""} } doc_body_append "[apm_header "Cancel a Watch"] " -catch { nsv_unset apm_reload_watch $watch_file } +apm_file_watch_cancel -path $watch_file -doc_body_append "No longer watching the following file: +if { ![empty_string_p $watch_file] } { + doc_body_append "No longer watching the following file:" +} else { + doc_body_append "Canceled all watches" +} + +doc_body_append " +

Return to the Package Manager +

[ad_footer] " - Index: openacs-4/packages/acs-admin/www/apm/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/index.tcl,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-admin/www/apm/index.tcl 10 Mar 2003 12:01:54 -0000 1.9 +++ openacs-4/packages/acs-admin/www/apm/index.tcl 13 Mar 2003 14:54:55 -0000 1.10 @@ -110,7 +110,8 @@ # Build the list of files we're watching. set watch_files [nsv_array names apm_reload_watch] if { [llength $watch_files] > 0 } { - doc_body_append "

Watches