This shows you the differences between two versions of the page.
stats:proc:opensignup [2011/10/15 20:31] Patrick Michel stats:proc:openregistration renamed to stats:proc:opensignup |
stats:proc:opensignup [2013/07/10 12:32] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Open Registration ====== | ||
- | |||
- | <code xcend> | ||
- | openRegistration(string uid, string id) { | ||
- | assume exists //accounts/account[uid]/assistant[id]; | ||
- | | ||
- | assume exists //exercises/exercise[id]; | ||
- | | ||
- | assume not //exercises/exercise[id]/open; | ||
- | | ||
- | update //exercises/exercise[id]/open true; | ||
- | } | ||
- | </code> | ||