Re: Addition of modify-on-document-write hooks

2010-09-19 Thread Benoit Chesneau
On Mon, Sep 20, 2010 at 12:34 AM, Randall Leeds wrote: > On Thu, Sep 9, 2010 at 12:19, James Jackson wrote: >> Hi all, >> >> Moving this from the users forum, as it appears what I'm after isn't >> currently available. For the security model I with to implement in a >> production CouchDB cluster

Re: Addition of modify-on-document-write hooks

2010-09-19 Thread Randall Leeds
On Thu, Sep 9, 2010 at 12:19, James Jackson wrote: > Hi all, > > Moving this from the users forum, as it appears what I'm after isn't > currently available. For the security model I with to implement in a > production CouchDB cluster, I would like to be able to force a field to be > written to

Re: Addition of modify-on-document-write hooks

2010-09-19 Thread Chris Anderson
On Sun, Sep 19, 2010 at 5:37 AM, Jan Lehnardt wrote: > > On 14 Sep 2010, at 03:26, J Chris Anderson wrote: > >> >> On Sep 13, 2010, at 6:23 PM, Simon Metson wrote: >> >>> Hi James. >>>      I think the thing to do is require that a document has a user field, >>> and that the value of that field m

Re: Addition of modify-on-document-write hooks

2010-09-19 Thread Jan Lehnardt
On 14 Sep 2010, at 03:26, J Chris Anderson wrote: > > On Sep 13, 2010, at 6:23 PM, Simon Metson wrote: > >> Hi James. >> I think the thing to do is require that a document has a user field, >> and that the value of that field matches the userCtx in the >> validate_doc_update function. Th

Re: Addition of modify-on-document-write hooks

2010-09-13 Thread J Chris Anderson
On Sep 13, 2010, at 6:23 PM, Simon Metson wrote: > Hi James. > I think the thing to do is require that a document has a user field, > and that the value of that field matches the userCtx in the > validate_doc_update function. This then pushes the issue client side, and > makes the server

Re: Addition of modify-on-document-write hooks

2010-09-13 Thread Simon Metson
Hi James. I think the thing to do is require that a document has a user field, and that the value of that field matches the userCtx in the validate_doc_update function. This then pushes the issue client side, and makes the servers life easier. It could also be added by the front end apach

Addition of modify-on-document-write hooks

2010-09-09 Thread James Jackson
Hi all, Moving this from the users forum, as it appears what I'm after isn't currently available. For the security model I with to implement in a production CouchDB cluster, I would like to be able to force a field to be written to all docs based on the user context. The _update functionality i