This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
stats:proc:addstudentid [2011/09/27 20:10] Patrick Michel created |
stats:proc:addstudentid [2012/05/15 14:38] Patrick Michel |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Set Student ID ====== | + | ====== Add Student ID ====== |
<code xcend> | <code xcend> | ||
- | # pretty much the canonical addStudent procedure | + | addStudentId(ident uid, ident username, ident id) { |
- | setStudentId(ident username, string id) { | + | assume exists //accounts/account[uid]/admin; |
assume exists //accounts/account[username]; # implicitly true in OO implementations | assume exists //accounts/account[username]; # implicitly true in OO implementations | ||
assume not exists //accounts/account[username]/student; | assume not exists //accounts/account[username]/student; |