jcrodriguez-dis / moodle-mod_vpl

Virtual Programming Lab for Moodle (Module)
GNU General Public License v3.0
99 stars 85 forks source link

Add setting for student readonly access to execution files #93

Open t-schroeder opened 4 years ago

t-schroeder commented 4 years ago

It would be nice if you could specify for a VPL instance which of the execution files the students should be able to see (in readonly mode). Similar to the page "Files to keep when running".

jcrodriguez-dis commented 4 years ago

Hi, the way we manage this is adding the "execution file" to the "required file" adding comments to indicating the student that any change in this file has no effect. Notice that the execution file will overwrite the student's file. Of course, the execution file may differ from the file shown as "required file" to the students. Best regards, Juan Carlos.

jcrodriguez-dis commented 4 years ago

The enhancement may be to detect this case ("required file" with the same name as "execution file") and mark it, at the editor, as read-only.

t-schroeder commented 4 years ago

Hi Juan Carlos,

thanks for sharing your workaround and for clarifying how it works. I think we can use the same workaround for our case.

I agree with your suggestion to add a special handling for when there's an execution and required file with the same name.

Regards, Tim

jcrodriguez-dis commented 1 year ago

From VPL 4.2.0