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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/client/qed/store.js

    r418 r420  
    2020        }
    2121    });
    22     var memoryStore = new Memory();
    23     var cacheStore = new Cache(couchStore,memoryStore,{});
     22    var memoryStore = new Memory({
     23        idProperty: couchStore.idProperty
     24    });
     25    var cacheStore = new Cache(couchStore,memoryStore,{
     26        isLoaded: function(object) {
     27            // Unfortunately we cannot determine of the full documents were
     28            // loaded or not. Therefore never cache query results.
     29            return false;
     30        }
     31    });
    2432
    2533    var store = cacheStore;
Note: See TracChangeset for help on using the changeset viewer.