Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 229 by oliora: Enhancement: support for defining and syncing
of 'validate_doc_update', 'updates' and 'shows' entities in design document
http://code.google.com/p/couchdb-python/issues/detail?id=229
I've added classes for defining and syncing
of 'validate_doc_update', 'updates' and 'shows' entities in design
document. Class covering 'lists' entity will be added later.
New classes called ValidateFunctionDefinition, UpdateHandlerDefinition and
ShowFunctionDefinition. Also there is a new function 'sync_definitions'
which syncs a list of definition subtypes. I leave the function
ViewDefinition.sync_many for back compatibility (although it's not marked
in documentation as deprecated because it should be discussed first),
because now it just calls 'sync_definitions'.
Tests and documentation are updated to cover changes.
Patches are attached.
All changes could be also found at
https://github.com/oliora/couchdb-python
in design_refactoring branch.
Attachments:
0001-ViewDefinition.sync_many-replaced-with-sync_definiti.patch 4.6 KB
0002-DefinitionMixin-base-class-extracted-from-ViewDefini.patch 3.2 KB
0003-_DesignDocument-refactored-to-easily-support-differe.patch 6.0 KB
0004-Function-_sync_dict_field-extracted-from-ViewDefinit.patch 2.5 KB
0005-UpdateHandlerDefinition-added.patch 6.6 KB
0006-ValidateFunctionDefinition-added.patch 6.8 KB
0007-ShowFunctionDefinition-added.patch 6.9 KB
0008-Renamed-some-of-_DesignDoc-attributes-to-match-corre.patch 976 bytes
0009-Syncronization-of-dictionary-fields-slightly-refacto.patch 2.3 KB
0010-All-new-definition-types-are-added-to-import-list.patch 872 bytes
0011-Small-refactoring-badly-named-function-arguments-ren.patch 1.4 KB
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings