Forum OpenACS Q&A: found new bugs in new-file-storage...

I found two new bugs in new-file-storage.

It would be nice if Don or somebody with admin rights could open up a section for new-file-storage in sdm.

1.) In /tcl/new-file-storage-defs.tcl line 109 is still not correct. The comments say:

# We don't want to display any folders which are children
# of the selected file, so use this clause to block them.

First of all I wanted to mention that I don't understand why you shouldn't display folders which are children of the selected file???

But if it makes sense nevertheless, this is my solution: I replaced lines 109-111

set children_clause "and file_id in (select file_id
from fs_files
where fs_node_is_child($file_id,file_id) = 't')"


with

set children_clause "and file_id not in (select file_id from fs_files where fs_node_is_child($current_parent_id,file_id) = 't' and file_id != $current_parent_id)"


2.) In one-file.tcl I wondered why it took postgres so long to load that page...

So I added a new line between line 89 and 90: "and fsf1.file_id = fsv.file_id"


By the way these two bugs are valid for file-storage also!!!
Collapse
Posted by Roberto Mello on
I just created a module for new-file-storage on the SDM. Don't hesitate to e-mail one of us to get something like this done.