User Tools

Site Tools


stats:proc:createsheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
stats:proc:createsheet [2011/09/28 19:56]
Patrick Michel created
stats:proc:createsheet [2013/07/10 12:41] (current)
Line 2: Line 2:
  
 <code xcend> <code xcend>
-createSheet(ident id, ident sheetId, double maxPoints) { +createSheet(ident uid, ident id, ident sheetId, double maxPoints) { 
-  assume exists //exercises/​exercise[id];​ +  assume exists /account[uid]/assistant[id];​ 
-  assume not exists ​//exercises/​exercise[id]/sheets/​sheet[sheetId];​+   
 +  assume exists ​/​exercise[id];​ 
 +  assume not exists /​exercise[id]/​sheet[sheetId];​
   ​   ​
   assume maxPoints >= 0;   assume maxPoints >= 0;
   ​   ​
-  insert ​//exercises/​exercise[id]/​sheets ​<sheet id=[sheetId] maxPoints=[maxPoints] />;+  insert /​exercise[id] <sheet id=[sheetId] maxPoints=[maxPoints] />;
 } }
 </​code>​ </​code>​
stats/proc/createsheet.1317232589.txt.gz · Last modified: 2011/09/28 19:56 by Patrick Michel