close Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 7 and Version 8 of Divan


Ignore:
Timestamp:
Aug 26, 2008, 3:48:13 PM (13 years ago)
Author:
cmlenz
Comment:

Add whitelist view def

Legend:

Unmodified
Added
Removed
Modified
  • Divan

    v7 v8  
    123123}}}
    124124
     125=== `_design/comments` ===
     126
     127==== `whitelist` ====
     128
     129''Map'':
     130{{{
     131#!javascript
     132function(doc) {
     133  if (doc.type == 'Comment' && doc.published) {
     134    emit(doc.openid, 1);
     135  }
     136}
     137}}}
     138
     139''Reduce'':
     140{{{
     141#!javascript
     142function(keys, values) {
     143  return sum(values);
     144}
     145}}}
     146
    125147=== `_design/pings` ===
    126148