User Tools

Site Tools


stats:proc:removestudentid

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
stats:proc:removestudentid [2011/09/27 20:12]
Patrick Michel created
stats:proc:removestudentid [2012/05/15 14:36]
Patrick Michel
Line 2: Line 2:
  
 <code xcend> <code xcend>
-# correspondingly,​ this is the removeStudent procedure +removeStudentId(ident uid, ident username) { 
-removeStudentId(ident username) {+  assume exists //​accounts/​account[uid]/​admin;​ 
   assume exists //​accounts/​account[username]/​student;​ # implies the account exists, which is implicitly true anyway   assume exists //​accounts/​account[username]/​student;​ # implies the account exists, which is implicitly true anyway
  
Line 9: Line 10:
   assume size(//​exams/​exam/​results/​participant[//​accounts/​account[username]/​student/​id]) = 0;   assume size(//​exams/​exam/​results/​participant[//​accounts/​account[username]/​student/​id]) = 0;
  
-  remove //account/​account[username]/​student;​+  remove //accounts/​account[username]/​student;​
 } }
 </​code>​ </​code>​
  
stats/proc/removestudentid.txt · Last modified: 2013/07/10 12:34 (external edit)