Changeset 343 for Dev/branches/rest-dojo-ui/client/db
- Timestamp:
- 06/18/12 12:51:58 (13 years ago)
- 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 93 93 req('PUT','/rft') 94 94 95 log("Setting _security on database 'rft'");95 /*log("Setting _security on database 'rft'"); 96 96 req('PUT','/rft/_security', securityDoc); 97 97 … … 103 103 log("Creating user 'rft_admin' with password 'Welkom01'"); 104 104 req('PUT','/_users/org.couchdb.user:rft_admin', rft_adminDoc); 105 }); 105 });*/ 106 106 }; 107 107 -
Dev/branches/rest-dojo-ui/client/db/docs/rft/_design/default.json
r328 r343 4 4 "validate_doc_update": "function(newDoc, oldDoc, userCtx, secObj) { if (oldDoc && oldDoc.published) { throw({forbidden: 'Published documents cannot be modified.'}); } }", 5 5 "views": { 6 "by_type": { 7 "map": "function(doc) { emit(doc.type, doc); }" 8 }, 6 9 "unpublished": { 7 10 "map": "function(doc) { if ( doc.type == 'Survey' && !doc.published ) { emit(doc._id, doc); } }"
Note: See TracChangeset
for help on using the changeset viewer.