We are develoing a Module (for moodle 2.0) to put Student-Submissions under version control. For this purpose we are writing an assignment-plugin. But we have some questions to you, but first a word on our architecture:
When a student submits files as submission we want to pick them up and send it to the SVN. This is already working with manually created files. But now we want to use the 'real' submissions and don't know which function or method to use. We have got a form which inherits from the 'moodleform'-class. In this formular we are using a file picker to give students the possibility to upload files. Now our questions:
We're calling a function defined in the assignment_svn class called 'upload file'. This function requires the form as a parameter, called $mform.
How can we use the files submitted by the user? Is there a temporary storage where we can find it? Can we get it our from the $mform parameter?
We're looking forward hopefully to get some answers.
PS: As you see, our module is like the assignment_upload module.
This sounds interested, and I'd like an update if possible. (I don't have specific advice on the assignment module).
A few questions about your approach:
- How do you plan on configuring repositories? Will there be a separate repository for each course, or a single repository for the whole moodle server (and then, I guess, sub directories for each course, then assignment within course, then user...).
- Will moodle users be linked to svn users, or will there be a single svn user that the moodle server uses?
- Will you integrate with moodle groups? For instance, members within a group/grouping can share a particular area of the repository?