couchdb-python icon indicating copy to clipboard operation
couchdb-python copied to clipboard

Allow creation of validate_doc_update function in ViewDefinition

Open djc opened this issue 10 years ago • 3 comments

From [email protected] on August 14, 2009 09:45:12

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: http://code.google.com/p/couchdb-python/issues/detail?id=84

djc avatar Jul 12 '14 14:07 djc

From djc.ochtman on December 14, 2009 02:32:03

Labels: -Type-Defect Type-Enhancement

djc avatar Jul 12 '14 14:07 djc

From [email protected] on August 12, 2010 15:51:32

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

djc avatar Jul 12 '14 14:07 djc

From [email protected] on February 23, 2011 01:43:42

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.

djc avatar Jul 12 '14 14:07 djc