User Tools

Site Tools


stats:proc:createemptystats

Differences

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

Link to this comparison view

Next revision
Previous revision
stats:proc:createemptystats [2011/09/28 21:53]
Patrick Michel created
stats:proc:createemptystats [2012/05/11 12:14]
Patrick Michel
Line 3: Line 3:
 <code xcend> <code xcend>
 createEmptyStats() { createEmptyStats() {
-  remove /stats;+  remove /​stats; ​# procedures only operate on valid documents, so we have to get rid of "​whatever was there" before
   insert /    insert / 
-    <​stats>​+    <​stats ​revision="​0"​>
       <​accounts>​       <​accounts>​
         <account username="​admin"​ lastName="​admin"​ firstName="​admin"​ email="​admin@stats.system"​ password="​some hash of '​admin'">​         <account username="​admin"​ lastName="​admin"​ firstName="​admin"​ email="​admin@stats.system"​ password="​some hash of '​admin'">​
stats/proc/createemptystats.txt ยท Last modified: 2013/07/10 12:39 (external edit)