lanto03 / couchdb-python

Automatically exported from code.google.com/p/couchdb-python
Other
0 stars 0 forks source link

Allow creation of validate_doc_update function in ViewDefinition #84

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In the current version of couchdb it is possible to define a
'validate_doc_update' function to validate the content of new/updated
documents [0]. It would be cool if python-couchdb's ViewDefinition would
have an optional parameter in the constructor like "validate_fun" which (if
set) creates a 'validate_doc_update' function for the view.

Thanks in advance,
Markus

[0] http://wiki.apache.org/couchdb/Security_Features_Overview

Original issue reported on code.google.com by markus.k...@gmail.com on 14 Aug 2009 at 7:45

GoogleCodeExporter commented 8 years ago

Original comment by djc.ochtman on 14 Dec 2009 at 10:32

GoogleCodeExporter commented 8 years ago
I think that this feature could be followed by "update handlers"  which was 
implemented in couchdb since version 0.10 and up.
I will code some prototype around theese features.

thanks in advance,

Martin

Original comment by malder...@gmail.com on 12 Aug 2010 at 10:51

GoogleCodeExporter commented 8 years ago
Note that this shouldn't be added to ViewDefinition. The validate_doc_update 
function is nothing to do with a view, and actually exists as an attribute of 
the design doc.

Original comment by matt.goo...@gmail.com on 23 Feb 2011 at 9:43

GoogleCodeExporter commented 8 years ago
This issue has been migrated to GitHub. Please continue discussion here:

https://github.com/djc/couchdb-python/issues/84

Original comment by djc.ochtman on 15 Jul 2014 at 7:16