User Tools

Site Tools


stats:proc:changeattributes_sheet

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
stats:proc:changeattributes_sheet [2011/09/29 19:34] – Patrick Michelstats:proc:changeattributes_sheet [2013/07/10 12:34] (current) – external edit 127.0.0.1
Line 3: Line 3:
 <code xcend> <code xcend>
 changeAttributes(ident uid, ident id, ident sheetId, double maxPoints) { changeAttributes(ident uid, ident id, ident sheetId, double maxPoints) {
-  assume exists //accounts/account[uid]/assistant[id];+  assume exists /account[uid]/assistant[id];
      
-  assume exists //exercises/exercise[id]/sheets/sheet[sheetId]; # implies the existence of the exercise+  assume exists /exercise[id]/sheet[sheetId]; # implies the existence of the exercise
      
   assume maxPoints >= 0;   assume maxPoints >= 0;
-  assume //exercises/exercise[id]/students/student[x]/result[sheetId]/points <= maxPoints;+  assume /exercise[id]/student[x]/result[sheetId]/points <= maxPoints;
      
-  update //exercises/exercise[id]/sheets/sheet[sheetId]/maxPoints maxPoints;+  update /exercise[id]/sheet[sheetId]/maxPoints maxPoints;
 } }
 </code> </code>
  
stats/proc/changeattributes_sheet.1317317665.txt.gz · Last modified: by Patrick Michel

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki