Forum OpenACS Q&A: General questions II....

Collapse
Posted by Boris Kruvshenko on
Hi all, first of all, I want to know if it is posible & how to use the tcl API (ns_adp_puts, ns_mkdir, etc) in the acs templates... is there any doc about it ???.

I also problems with my file storage:

1.- When I try to move any file to an empty folder, I get next message:

<--- We had a problem with your input:

      Ha ocurrido un error en la base de datos. Es probable que la carpeta seleccionada ya contiene un archivo con este nombre.

Database operation "0or1row" failed (exception NSDB, "Query was not a statement returning rows.")

ERROR:  column "move__targer_folder_id" does not exist
CONTEXT:  PL/pgSQL function "content_item__move" line 5 at perform
PL/pgSQL function "file_storage__move_file" line 9 at perform

SQL:

        select file_storage__move_file (
            '764',    -- file_id
            '767',    -- target_folder_id
            '448',    -- creation_user
            '192.168.1.3'    -- creation_ip
            );

Please back up using your browser, correct the above , and resubmit your entry. --->

so operation fails.

2.- When I get into the file-storage, I get next message:

MESSAGE KEY MISSING: 'file-storage.Folder_available_via_WebDAV_at' http://Lucifer:8000/dav/file-storage/

Any idea ???

Thx all.

Collapse
Posted by Dave Bauer on
What version of OpenACS and file-storage are you using?

This should be fixed on the latest code in the oacs-5-1 branch.

Collapse
Posted by Jade Rubick on
For the message key missing errors:

https://openacs.org/faq/one-faq?faq_id=130897#198980

As to mixing ns_puts, etc... You can use some of the API, but anything that involves display shouldn't be mixed with the templating system, as far as I know.

You can make a .tcl file, and use it there. It will work, but just don't use the templating system with it.

Collapse
Posted by Boris Kruvshenko on
I have oacs 5.1.0, I will try the 5.1.1 and see.

Thx.