User Tools

Site Tools


stats:proc:removestudentid

This is an old revision of the document!


Remove Student ID

removeStudentId(ident uid, ident username) {
  assume exists //accounts/account[uid]/admin;
 
  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 //accounts/account[username]/student;
}
stats/proc/removestudentid.1337085362.txt.gz · Last modified: 2012/05/15 14:36 by Patrick Michel