User Tools

Site Tools


stats:proc:deletegrade

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
stats:proc:deletegrade [2011/09/29 19:24]
Patrick Michel
stats:proc:deletegrade [2013/07/10 12:34] (current)
Line 3: Line 3:
 <code xcend> <code xcend>
 deleteGrade(ident uid, ident id, ident gradeId) { deleteGrade(ident uid, ident id, ident gradeId) {
-  assume exists ​//accounts/​account[uid]/​examiner[id];​+  assume exists /​account[uid]/​examiner[id];​
  
-  assume exists ​//exams/exam[id]/grades/​grade[gradeId];​ # implies the exam exists, which is implicitly true anyway+  assume exists /​exam[id]/​grade[gradeId];​ # implies the exam exists, which is implicitly true anyway
  
-  remove ​//exams/exam[id]/grades/​grade[gradeId];​+  remove /​exam[id]/​grade[gradeId];​
 } }
 </​code>​ </​code>​
  
stats/proc/deletegrade.1317317061.txt.gz · Last modified: 2011/09/29 19:24 by Patrick Michel