+
+@notification_chunk;noquote@
+
#file-storage.Folder_available_via_WebDAV_at#
Index: openacs-4/packages/file-storage/www/index.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/www/index.tcl,v
diff -u -r1.23.2.1 -r1.23.2.2
--- openacs-4/packages/file-storage/www/index.tcl 10 May 2004 19:30:43 -0000 1.23.2.1
+++ openacs-4/packages/file-storage/www/index.tcl 21 Jul 2004 22:37:18 -0000 1.23.2.2
@@ -76,6 +76,14 @@
-widget hidden \
-value $folder_id
+
+set notification_chunk [notification::display::request_widget \
+ -type fs_fs_notif \
+ -object_id $folder_id \
+ -pretty_name $folder_name \
+ -url [ad_conn url]?folder_id=$folder_id \
+]
+
if {[form is_valid n_past_days_form]} {
form get_values n_past_days_form n_past_days folder_id
}
Index: openacs-4/packages/file-storage/www/simple-add-2.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/www/simple-add-2.tcl,v
diff -u -r1.4 -r1.4.4.1
--- openacs-4/packages/file-storage/www/simple-add-2.tcl 17 May 2003 10:39:54 -0000 1.4
+++ openacs-4/packages/file-storage/www/simple-add-2.tcl 21 Jul 2004 22:37:18 -0000 1.4.4.1
@@ -34,5 +34,7 @@
permission::grant -party_id $user_id -object_id $item_id -privilege admin
}
+fs::do_notifications -folder_id $folder_id -filename $url -url_id $item_id -action "new_url"
+
ad_returnredirect "?folder_id=$folder_id"
Index: openacs-4/packages/file-storage/www/simple-delete.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/www/simple-delete.tcl,v
diff -u -r1.4 -r1.4.4.1
--- openacs-4/packages/file-storage/www/simple-delete.tcl 17 May 2003 10:39:54 -0000 1.4
+++ openacs-4/packages/file-storage/www/simple-delete.tcl 21 Jul 2004 22:37:18 -0000 1.4.4.1
@@ -13,7 +13,15 @@
ad_require_permission $object_id delete
# Delete
-content_extlink::delete -extlink_id $object_id
+db_transaction {
+
+ fs::do_notifications -folder_id $folder_id -filename [content_extlink::extlink_name -item_id $object_id] -url_id $object_id -action "delete_url"
+
+ content_extlink::delete -extlink_id $object_id
+
+}
+
+
ad_returnredirect "./?folder_id=$folder_id"
Index: openacs-4/packages/file-storage/www/version-add-2.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/www/Attic/version-add-2.tcl,v
diff -u -r1.5 -r1.5.4.1
--- openacs-4/packages/file-storage/www/version-add-2.tcl 17 May 2003 10:39:54 -0000 1.5
+++ openacs-4/packages/file-storage/www/version-add-2.tcl 21 Jul 2004 22:37:18 -0000 1.5.4.1
@@ -64,7 +64,10 @@
);
end;"]
+ db_1row parent_folder { }
+ fs::do_notifications -folder_id $parent_folder -filename $filename -file_id $file_id -version_id $version_id -action "new_version"
+
if {$indb_p} {
db_dml lob_content "
Index: openacs-4/packages/file-storage/www/version-delete.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/www/version-delete.tcl,v
diff -u -r1.9 -r1.9.2.1
--- openacs-4/packages/file-storage/www/version-delete.tcl 19 Jan 2004 14:43:40 -0000 1.9
+++ openacs-4/packages/file-storage/www/version-delete.tcl 21 Jul 2004 22:37:18 -0000 1.9.2.1
@@ -57,9 +57,10 @@
file_storage.delete_file(:item_id);
end;"
+ fs::do_notifications -folder_id $parent_id -filename $version_name -file_id $item_id -action "delete_file"
+
# Redirect to the folder, instead of the latest revision (which does not exist anymore)
ad_returnredirect "index?folder_id=$parent_id"
-
ad_script_abort
} else {