Ignore:
Timestamp:
03/19/14 21:33:13 (11 years ago)
Author:
hendrikvanantwerpen
Message:
  • Allow empty subcodes.
  • Use HTTPResult exclusively on server (no more q).
  • Set readonly & disabled on ourselves as well in _ComplexValueMixin
  • Split server into several modules.
  • Check codes on the variable level, not question level.
  • We can add modules in design documents now.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/src/server/config/upgrade-couchdb.js

    r492 r525  
    1 var Q = require('q')
     1var HTTPResult = require('../util/http-result')
    22  , _ = require('underscore')
    3   , CouchDB = require('../util/couch').CouchDB
     3  , CouchDB = require('../util/couch')
    44  ;
    55
     
    1919                return server.get(doc.id)
    2020                .then(function(doc){
    21                     Q.when(upgrade(doc))
     21                    HTTPResult.when(200,upgrade(doc))
    2222                    .then(function(newDoc){
    2323                        return server.put(doc._id,newDoc)
     
    3232                });
    3333            });
    34         }, Q.resolve({}))
     34        }, new HTTPResult(200,{}))
    3535        .value();
    3636    }).all();
Note: See TracChangeset for help on using the changeset viewer.