Forum OpenACS Q&A: Re: RFC: Remake of file-storage

Collapse
Posted by Hamilton Chua on
Hi Nima,

I'm not sure about permissions and webdav, however, about the UI, I can point you to our ajax file storage interface.

http://www.solutiongrove.info/companyb/files/

Login : UserB
Pass : 123

It's also the same place where you can see the UI of the help system. Just click the "Help" link .

AjaxFS will fall back to the old user interface if javascript is off.

Best,

Hamilton

Collapse
Posted by Malte Sussdorff on
Hamilton, is this version of ajax-file-storage already in HEAD? Furthermore is the help system committed and do you have some documentation on how to include it on the pages?
Collapse
Posted by Hamilton Chua on
Hi Malte,

My target for putting the code on head is end of this week. I am still deliberating whether I should make ajaxhelper a dependency.

It's possible to make it stand alone from ajaxhelper if I were to grab only the relevant javascript and style sheets, minify and then compress. This will result in much lighter code as far as javascript is concerned.

Let me know if you need it sooner.

The help system you see in the demo is UI only. I had originally intended to use it for the help system that Nima wrote but I wasn't able to contact Nima about it. The one in the demo uses a flat file with help text. The system knows which help text to display based on the url.

I can send you a zipped copy of the code if you like.

Best,

Ham

Collapse
Posted by Nima Mazloumi on
Beautiful work.

Anyone who worked on meaningful permissions and webdav?

Haven't looked at other cms but I could imaging rights like:

create new items
read existing items
update items (modify, new version)
delete items
admin item (permissions)

Any ideas?

It should be possible to set the rights in a way that the following scenarios are supported:

- a user can only read his own items
- a user can upload but not delete an item
- a user can only update her own items
- a user can update but not delete items

and the like.

Currently only read, write and admin are meaningful. If you have write permissions you can delete items of other users in a folder.

The current webdav support doesnt work for microsoft properly. Dave mentioned another module that might be better. Any experience with it?

Collapse
Posted by Hamilton Chua on
The version of ajaxfs-ui that you see on the demo has bee committed to openacs cvs HEAD along with an updated version of ajaxhelper.
Collapse
Posted by Jose Agustin Lopez Bueno on
Hi, Hamilton!

I am testing ajax-filestorage-ui. I have installed the package rightly but when I open one folder I get the next error:

"Sorry, we encountered an error rendering the tree panel"

and nothing is displayed. In the log I have not any message.
The same in Firefox and IE.
I have download ajax* packages from head.

Do you know where could be the problem, please?

Thanks,
Agustin

Collapse
Posted by Hamilton Chua on
Hi Agustin,

Thanks for downloading and trying out ajaxfs-ui.
Can you double check the mount point for ajaxfs-ui in site-map.

I think it should be ajaxfs2. If it's not mounted as ajaxfs2, can you try to delete it and mount ajax-filestorage-ui as ajaxfs2.

Let me know if that fixes the problem.

Best,

Ham

Hi Hamilton!

Yes, now it is working.

I will like to use that filestorage alternatively
with the old. That will be user election. Is it possible?
One parameter to do that? One flag in the index.adp?

Thanks,
Agustin

Collapse
Posted by Hamilton Chua on
Hi Agustin,

I'm glad you got it working. My recommendation is to add a parameter in the file storage package (e.g. UseAjaxUi)

Then in the index.tcl and index.adp of your file storage package. You can check for the value of this parameter.

Best,

Hamilton

Hi again!

I have put one toggle in the index.tcl / index.adp for
every user can change the file viewer.

Some ideas I have seen:

-How to "Copy" files and folders?
-Perhaps "Download" for files in file contextual menu?
-Menu contextual for folders (left window) ?
-Drag and drop from file explorer?
-Lost two labels in catalog: File and CopyLink

Thanks for you time!
Agustin