stats:proc:removeparticipant
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| stats:proc:removeparticipant [2011/09/29 00:26] – Patrick Michel | stats:proc:removeparticipant [2013/07/10 12:34] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| <code xcend> | <code xcend> | ||
| - | removeParticipant(ident id, ident studentId) { | + | removeParticipant(ident uid, ident id, ident studentId) { |
| - | assume exists //exams/exam[id]/results/participant[studentId]; # implies the exam exists, which is implicitly true anyway | + | assume exists /account[uid]/student && / |
| + | || exists | ||
| - | | + | |
| - | } # roles: examiner[id] | + | |
| + | assume size(/ | ||
| + | |||
| + | remove /exam[id]/ | ||
| + | } | ||
| </ | </ | ||
stats/proc/removeparticipant.1317248798.txt.gz · Last modified: by Patrick Michel
