couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "Document_Update_Handlers" by Thanos
Date Wed, 11 Aug 2010 18:03:25 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "Document_Update_Handlers" page has been changed by Thanos.
The comment on this change is: changing references to req.query roreq.form. The query object
on a PUT is empty. Also functions should be quoted.
http://wiki.apache.org/couchdb/Document_Update_Handlers?action=diff&rev1=9&rev2=10

--------------------------------------------------

      },
  
      "in-place" : function(doc, req) {
-       var field = req.query.field;
+       var field = req.form.field;
-       var value = req.query.value;
+       var value = req.form.value;
        var message = "set "+field+" to "+value;
        doc[field] = value;
        return [doc, message];

Mime
View raw message