User Tools

Site Tools


stats:proc:removestudentid

This is an old revision of the document!


Remove Student ID

# correspondingly, this is the removeStudent procedure
removeStudentId(ident username) {
  assume exists //accounts/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(//exams/exam/results/participant[//accounts/account[username]/student/id]) = 0;
 
  remove //account/account[username]/student;
} # roles: admin
stats/proc/removestudentid.1317250678.txt.gz · Last modified: 2011/09/29 00:57 by Patrick Michel