This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
stats:proc:removestudentid [2011/09/29 19:33] Patrick Michel |
stats:proc:removestudentid [2013/07/10 12:34] (current) |
||
---|---|---|---|
Line 3: | Line 3: | ||
<code xcend> | <code xcend> | ||
removeStudentId(ident uid, ident username) { | removeStudentId(ident uid, ident username) { | ||
- | assume exists //accounts/account[uid]/admin; | + | assume exists /account[uid]/admin; |
- | assume exists //accounts/account[username]/student; # implies the account exists, which is implicitly true anyway | + | assume exists /account[username]/student; # implies the account exists, which is implicitly true anyway |
- | assume size(//exercises/exercise/students/student[//accounts/account[username]/student/id]) = 0; | + | assume size(/exercise/student[/account[username]/student/id]) = 0; |
- | assume size(//exams/exam/results/participant[//accounts/account[username]/student/id]) = 0; | + | assume size(/exam/participant[/account[username]/student/id]) = 0; |
- | remove //account/account[username]/student; | + | remove /account[username]/student; |
} | } | ||
</code> | </code> | ||