couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George Burt <imtrues...@gmail.com>
Subject Re: Can a validation function alter the new document?
Date Tue, 08 Feb 2011 20:45:46 GMT
That's exactly what I needed.  Thanks!

On Tue, Feb 8, 2011 at 3:20 PM, Paul Davis <paul.joseph.davis@gmail.com>wrote:

> On Tue, Feb 8, 2011 at 3:17 PM, George Burt <imtrueshot@gmail.com> wrote:
> > Just thought I would ask.  If not, is there any way to apply javascript
> to
> > the document before it is saved (from inside couchDB).
> >
> > -- George
> >
>
> No, you can't edit docs from validation functions.
>
> You can use _update handlers to do some stuff, but you have to use
> them as the endpoint, there's nothing that hooks into the normal PUT
> document code paths.
>



-- 
George Burt
President
TrueShot Enterprises, LLC.
(386) 208-1309
Fax (213) 477-2195
www.TrueShot.com
12756 92nd Ter
Live Oak, FL 32060

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message