This shows you the differences between two versions of the page.
stats:proc:changeattributes_exercise [2011/09/29 19:27] Patrick Michel |
stats:proc:changeattributes_exercise [2013/07/10 12:32] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Change Attributes (Exercise) ====== | ||
- | |||
- | <code xcend> | ||
- | changeAttributes(ident uid, ident id, string lecture, string term) { | ||
- | assume exists //accounts/account[uid]/admin || exists //accounts/account[uid]/assistant[id]; | ||
- | |||
- | assume exists //exercise/exercise[id]; # implicitly true in OO implementations | ||
- | |||
- | update //exercise/exercise[id]/lecture lecture; | ||
- | update //exercise/exercise[id]/term term; | ||
- | } | ||
- | </code> | ||