This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
stats:proc:createexercise [2011/09/28 21:24] Patrick Michel created |
stats:proc:createexercise [2011/10/15 19:36] Patrick Michel |
||
---|---|---|---|
Line 2: | Line 2: | ||
<code xcend> | <code xcend> | ||
- | createExercise(ident id, string lecture, string term) { | + | createExercise(ident uid, ident id, string lecture, string term) { |
+ | assume exists //accounts/account[uid]/admin; | ||
assume not exists //exercises/exercise[id]; | assume not exists //exercises/exercise[id]; | ||
| | ||
- | insert //exercises <exercise id=[id] lecture=[lecture] term=[term] />; | + | insert //exercises |
+ | <exercise id=[id] lecture=[lecture] term=[term] open=[false] > | ||
+ | <groups /> | ||
+ | <sheets /> | ||
+ | <students /> | ||
+ | </exercise>; | ||
} | } | ||
</code> | </code> | ||