Ignore:
Timestamp:
06/18/12 12:51:58 (13 years ago)
Author:
hendrikvanantwerpen
Message:

[Client] Changed store and pages to use CouchDB.
[Client] Disabled login for now, have to figure out some more details about CouchDB.

Location:
Dev/branches/rest-dojo-ui/client/db
Files:
2 edited

Legend:

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

    r328 r343  
    9393            req('PUT','/rft')
    9494           
    95             log("Setting _security on database 'rft'");
     95            /*log("Setting _security on database 'rft'");
    9696            req('PUT','/rft/_security', securityDoc);
    9797
     
    103103                log("Creating user 'rft_admin' with password 'Welkom01'");
    104104                req('PUT','/_users/org.couchdb.user:rft_admin', rft_adminDoc);
    105             });
     105            });*/
    106106        };
    107107
  • Dev/branches/rest-dojo-ui/client/db/docs/rft/_design/default.json

    r328 r343  
    44    "validate_doc_update": "function(newDoc, oldDoc, userCtx, secObj) { if (oldDoc && oldDoc.published) { throw({forbidden: 'Published documents cannot be modified.'}); } }",
    55    "views": {
     6        "by_type": {
     7            "map": "function(doc) { emit(doc.type, doc); }"
     8        },
    69        "unpublished": {
    710            "map": "function(doc) { if ( doc.type == 'Survey' && !doc.published ) { emit(doc._id, doc); } }"
Note: See TracChangeset for help on using the changeset viewer.