This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
stats:proc:deletesheet [2011/09/29 19:34] Patrick Michel |
stats:proc:deletesheet [2013/07/10 12:34] (current) |
||
---|---|---|---|
Line 3: | Line 3: | ||
<code xcend> | <code xcend> | ||
deleteSheet(ident uid, ident id, ident sheetId) { | deleteSheet(ident uid, ident id, ident sheetId) { | ||
- | assume exists //accounts/account[uid]/assistant[id]; | + | assume exists /account[uid]/assistant[id]; |
| | ||
- | assume exists //exercises/exercise[id]/sheets/sheet[sheetId]; # implies existence of the exercise | + | assume exists /exercise[id]/sheet[sheetId]; # implies existence of the exercise |
| | ||
- | assume size(//exercises/exercise[id]/students/student/result[sheetId]) = 0; | + | assume size(/exercise[id]/student/result[sheetId]) = 0; |
| | ||
- | remove //exercises/exercise[id]/sheets/sheet[sheetId]; | + | remove /exercise[id]/sheet[sheetId]; |
} | } | ||
</code> | </code> |