couchdb-python
couchdb-python copied to clipboard
Allow creation of validate_doc_update function in ViewDefinition
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
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
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.