The Higher Education and Research forge

Home My Page Projects Code Snippets Project Openings Développement de WIMS
Summary Activity Forums Tracker Tasks Docs Surveys News SCM Files Listes Sympa

[#7362] Using a geogebra ggb file with createxo

Date:
2010-12-14 09:12
Priority:
3
State:
Open
Submitted by:
Eric Reyssat (reyssat)
Assigned to:
Nobody (None)
Hardware:
none
Operating System:
none
Version:
none
Severity:
none
Resolution:
none
URL:
état:
Summary:
Using a geogebra ggb file with createxo

Detailed description
Insertion of ggb file with createxo doesn't work as I expected, namely the same way as image files.

For comparison, I first describe how the use of image file works (no problem here).
To use an image file myfile.jpg with createxo, I first use the file deposit tool ; although I can see myfile.jpg (the name and even the small image) in the list of binary files attached to this exercise, I note that the file is not yet in the directory myclass/src/images/myexo. Still, if I then insert the <img src="myfile.jpg"> tag in the statement and go to test the exercise, it works (I can see my image in the statement). I can modify the source and test it again, no problem here. If I go to the home page of the class without putting the exercise in the class (as new exercise, or replacing old one), the binary file is lost ; if instead I put the exercise in the class, then the source AND the imagefile are stored in myclass/src. I can go to home page, or logout and come back later, no problem.

If now I want to use myfile.ggb with the slib geo2D/geogebra3, I depose it the same way as the jpg file (it is stored in some temporary place), write my exo source file using slib(... file=myfile.ggb), and test it.

Here I get an error : LoadFileFailed

I need to put the exercise in the class (so that ggb file is stored in myclass/src/images/myexo), then the exercise works. But if I modify the source of the exercise (just opening the modify source page suffices) and test it again (before replacing old exercise in the class), the error LoadFileFailed comes back. It seems that createxo runs a temporary exercise and hence looks for the ggb file in the temporary place, and either this place doesn't contain the ggb file or wims has no right to open the file.


Eric
Message  ↓
Date: 2011-09-15 08:27
Sender: Bernadette Perrin-Riou

Je pense que la ligne
!sh rm -Rf $wims_home/$wims_sesdir/getfile/oefimg >/dev/null
dans ~/wims/public_html/modules/adm/createxo/var.init
peut expliquer le problème. Tant que les fichiers ne sont pas sauvés dans la classe ils se trouvent dans le répertoire en question. Mais dès qu'on réinitialise createxo par exemple en allant dans un autre module puis en revenant, ce répertoire est effacé. Par contre on retrouve le texte de l'exo (cela avait été réparé par Xiao, il y a longtemps). Faut-il faire de même avec les fichiers chargés ? Les garder le temps de la session,
donc supprimer cette ligne ? Peut-il y avoir un problème d'un trop nombre de fichiers. Quelle est la raison profonde de ce rm ?

A réfléchir (je suis retombée sur ce problème en essayant de relier createxo et le nouveau module coordclick).
Les images sont perdues si elles n'ont pas été sauvées en allant de createxo à coordclick et en revenant. Si elles sont sauvées dans le répertoire de l'exo, elles sont perdues pour un autre exo.
(demande pour comprendre de faire fonctionner le module en question !!)

Bernadette

Date: 2011-01-21 18:00
Sender: Eric Reyssat

Not an answer, just a remark about createxo : there is another difference between working, as teacher, on an exercise of the class (already stored there) and testing the same exercise just after having modified its source : the error messages of external software are shown under createxo, not under normal working inside the class.

To try it, just define an integer to be n=pari(+) for instance, and an empty statement, this shows an error message from pari, but not if we store the exercise in the class, and shows it again if we simply open the "modify source" page and retest it.

So the ggb problem is very probably in the createxo module.

Eric

No related tasks

No attached documents

Field Old Value Date By
detailsInsertion of ggb file with createxo doesn\'t work as I expected, namely the same way as image files. For comparison, I first describe how the use of image file works (no problem here). To use an image file myfile.jpg with createxo, I first use the file deposit tool ; although I can see myfile.jpg (the name and even the small image) in the list of binary files attached to this exercise, I note that the file is not yet in the directory myclass/src/images/myexo. Still, if I then insert the <tt>img src="myfile.jpg"<tt> tag in the statement and go to test the exercise, it works (I can see my image in the statement). I can modify the source and test it again, no problem here. If I go to the home page of the class without putting the exercise in the class (as new exercise, or replacing old one), the binary file is lost ; if instead I put the exercise in the class, then the source AND the imagefile are stored in myclass/src. I can go to home page, or logout and come back later, no problem. If now I want to use myfile.ggb with the slib geo2D/geogebra3, I depose it the same way as the jpg file (it is stored in some temporary place), write my exo source file using slib(... file=myfile.ggb), and test it. Here I get an error : LoadFileFailed I need to put the exercise in the class (so that ggb file is stored in myclass/src/images/myexo), then the exercise works. But if I modify the source of the exercise (just opening the modify source page suffices) and test it again (before replacing old exercise in the class), the error LoadFileFailed comes back. It seems that createxo runs a temporary exercise and hence looks for the ggb file in the temporary place, and either this place doesn\'t contain the ggb file or wims has no right to open the file. Eric2010-12-14 09:15
detailsInsertion of ggb file with createxo doesn\'t work as I expected, namely the same way as image files. For comparison, I first describe how the use of image file works (no problem here).<br> To use an image file myfile.jpg with createxo, I first use the file deposit tool ; although I can see myfile.jpg (the name and even the small image) in the list of binary files attached to this exercise, I note that the file is not yet in the directory myclass/src/images/myexo. Still, if I then insert the <tt>img src="myfile.jpg"<tt> tag in the statement and go to test the exercise, it works (I can see my image in the statement). I can modify the source and test it again, no problem here. If I go to the home page of the class without putting the exercise in the class (as new exercise, or replacing old one), the binary file is lost ; if instead I put the exercise in the class, then the source AND the imagefile are stored in myclass/src. I can go to home page, or logout and come back later, no problem. <br> If now I want to use myfile.ggb with the slib geo2D/geogebra3, I depose it the same way as the jpg file (it is stored in some temporary place), write my exo source file using slib(... file=myfile.ggb), and test it. <br> Here I get an error : LoadFileFailed <br> I need to put the exercise in the class (so that ggb file is stored in myclass/src/images/myexo), then the exercise works. But if I modify the source of the exercise (just opening the modify source page suffices) and test it again (before replacing old exercise in the class), the error LoadFileFailed comes back. It seems that createxo runs a temporary exercise and hence looks for the ggb file in the temporary place, and either this place doesn\'t contain the ggb file or wims has no right to open the file. <br> Eric2010-12-14 09:13
detailsInsertion of ggb file with createxo doesn\'t work as I expected, namely the same way as image files. <br> For comparison, I first describe how the use of image file works (no problem here).<br> To use an image file myfile.jpg with createxo, I first use the file deposit tool ; although I can see myfile.jpg (the name and even the small image) in the list of binary files attached to this exercise, I note that the file is not yet in the directory myclass/src/images/myexo. Still, if I then insert the <tt>img src="myfile.jpg"<tt> tag in the statement and go to test the exercise, it works (I can see my image in the statement). I can modify the source and test it again, no problem here. If I go to the home page of the class without putting the exercise in the class (as new exercise, or replacing old one), the binary file is lost ; if instead I put the exercise in the class, then the source AND the imagefile are stored in myclass/src. I can go to home page, or logout and come back later, no problem. <br> If now I want to use myfile.ggb with the slib geo2D/geogebra3, I depose it the same way as the jpg file (it is stored in some temporary place), write my exo source file using slib(... file=myfile.ggb), and test it. <br> Here I get an error : LoadFileFailed <br> I need to put the exercise in the class (so that ggb file is stored in myclass/src/images/myexo), then the exercise works. But if I modify the source of the exercise (just opening the modify source page suffices) and test it again (before replacing old exercise in the class), the error LoadFileFailed comes back. It seems that createxo runs a temporary exercise and hence looks for the ggb file in the temporary place, and either this place doesn\'t contain the ggb file or wims has no right to open the file. <br> Eric2010-12-14 09:13