Forum OpenACS Development: Re: Notifications of File-storage

Collapse
Posted by David Ortega on
Hi all,

I have already finished with the implementation of  notifications in file-storage (SC version).

It is a mixture between code of the patch and parts that I had done before knowing this patch.

The request of notifications in each folder is allowed separately,  but the subscription to an upper folder includes all those that contain. It's i18n-ize.
As Nima proposed, in the message I have included two links: one to directly download the file and other to see the content of folder in which it is.

Finally, the events that produce notifications are:

+to upload a new file
+to create a new Link
+to upload a new version of a file

It's tested with PG but not with Oracle since we do not have any version available.

Due to our proxy, we cannot access to cvs reason why I have been based on a version of file-storage that Rocael sends me last week.

Dave, these are the created or modified files:

tcl/apm-callback-procs.tcl
tcl/file-storage-notifications-procs-oracle.xql
tcl/file-storage-notifications-procs-postgresql.xql
tcl/file-storage-notifications-procs.xql
tcl/file-storage-notifications-procs.tcl
tcl/file-storage-procs.tcl
tcl/file-storage-dav-install-procs.tcl

www/index.adp
www/index.tcl
www/simple-add2.tcl

All the changes are labeled with "notification begin/end"

I can send it by email so that you review it. Oracle is not implemented (but it's only a query)