This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
stats:proc:openregistration [2011/11/28 17:03] Patrick Michel created |
stats:proc:openregistration [2013/07/10 12:32] (current) |
||
---|---|---|---|
Line 2: | Line 2: | ||
<code xcend> | <code xcend> | ||
- | openRegistration(string uid, string id) { | + | openRegistration(ident uid, ident id) { |
- | assume exists //accounts/account[uid]/examiner[id]; | + | assume exists /account[uid]/examiner[id]; |
| | ||
- | assume exists //exams/exam[id]; | + | assume exists /exam[id]; |
| | ||
- | assume not exists //exams/exam[id]/free; | + | assume not /exam[id]/free; |
| | ||
- | insert //exams/exam[id] <free />; | + | update /exam[id]/free true; |
} | } | ||
</code> | </code> | ||