User Tools

Site Tools


stats:proc:changeattributes_account

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_account [2011/11/02 14:37] – Patrick Michelstats:proc:changeattributes_account [2013/07/10 12:32] (current) – external edit 127.0.0.1
Line 5: Line 5:
 # I can't support it and I would forbid it anyway. # I can't support it and I would forbid it anyway.
 changeAttributes(ident uid, ident username, string firstName, string lastName) { changeAttributes(ident uid, ident username, string firstName, string lastName) {
-  assume exists //accounts/account[uid]/admin || uid = username;+  assume exists /account[uid]/admin || uid = username;
  
-  assume exists //accounts/account[username]; # implicitly true in OO implementations+  assume exists /account[username]; # implicitly true in OO implementations
    
-  update //accounts/account[username]/firstName firstName; +  update /account[username]/firstName firstName; 
-  update //accounts/account[username]/lastName lastName;+  update /account[username]/lastName lastName;
 } }
 </code> </code>
stats/proc/changeattributes_account.1320241048.txt.gz · Last modified: by Patrick Michel

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki