Ignore:
Timestamp:
12/16/12 20:07:35 (12 years ago)
Author:
hendrikvanantwerpen
Message:

We can store answers for surveys now!

Introduces SurveyRun?, which can be edited. Workflow not quite clear yet. A
running survey can be accessed to leave a response. When the response
has an ID, it is loaded (used for closed surveys and continuations). A
researcher cannot create responses yet. He should also be able to add
comments to responses (that he creates).

Introduced caching of store requests.

Factored out path matching and formatting.

Put object creation in separate classes, to localize model/storage
dependency. Not consistent at the moment.

Location:
Dev/branches/rest-dojo-ui/server/couchdb-admin/config
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/server/couchdb-admin/config/check.js

    r415 r420  
    11define([
    22     'dojo/_base/array',
     3     'dojo/_base/lang',
    34     'dojox/json/schema',
    4      './util/async',
     5     'qed/lib/async',
    56     './util/db',
    6      'rft/schema'
    7 ],function(array,jsonSchema,async,db,schema){
     7     'qed/model/schema'
     8],function(array,lang,jsonSchema,async,db,schema){
    89
    910    async.seq([
     
    2324        function(docs){
    2425            console.log("Validating documents.");
    25             return async.forEach(docs,function(doc){
     26            return async.map(docs,function(doc){
    2627                var id = doc.id;
    2728                return db.req('get','qed/'+id)
     
    3132                });
    3233            });
    33         },function(){
    34             console.log("Done!");
    3534        }
    36     ]);
     35    ]).then(function() {
     36        console.log("Done!");
     37    },function(err){
     38        console.log("Fail!",err.stack);
     39    });
    3740
    3841
  • Dev/branches/rest-dojo-ui/server/couchdb-admin/config/config.js

    r415 r420  
    33     'dojo/_base/lang',
    44     'dojox/lang/functional',
    5      './util/async',
     5     'qed/lib/async',
    66     './util/db',
    77     './data/design-docs'
Note: See TracChangeset for help on using the changeset viewer.