premierlangage icon indicating copy to clipboard operation
premierlangage copied to clipboard

Binary elements in answer from sandbox

Open nimdanor opened this issue 5 years ago • 4 comments

We nee a way to get binary file from the sanbdox so that the playexo can use them in html (for exemple < img src="filefromthesandbox.jpg" >).

  1. we need a syntaxe in the grader and the builder to do that.
  2. implement it !

nimdanor avatar Feb 07 '20 15:02 nimdanor

Already done in the latest version:

https://github.com/PremierLangage/sandbox/blob/f3c2640dad6b7facfe2489d3523c3bc6f116cb4a/sandbox/views.py#L64-L87

qcoumes avatar Feb 07 '20 15:02 qcoumes

OK can you show us a exercice creating a binary file (jpeg) in the sandbox in the builder that is used in a feedback or the text or the form by playexo.

nimdanor avatar Feb 07 '20 15:02 nimdanor

I meant 2.0.0+ by latest version, premier langage still run on the the first version.

qcoumes avatar Feb 07 '20 16:02 qcoumes

Ok but we need an exemple of use in the before/evaluator syntax.

nimdanor avatar Feb 07 '20 16:02 nimdanor