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 [2012/05/29 16:36] Patrick Michel |
||
---|---|---|---|
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 //accounts/account[uid]/examiner[id]; | ||
| | ||
assume exists //exams/exam[id]; | assume exists //exams/exam[id]; | ||
| | ||
- | assume not exists //exams/exam[id]/free; | + | assume not //exams/exam[id]/free; |
| | ||
- | insert //exams/exam[id] <free />; | + | update //exams/exam[id]/free true; |
} | } | ||
</code> | </code> | ||