Skip to content

Enhancement: support for defining and syncing of 'validate_doc_update', 'updates' and 'shows' entities in design document #229

Open
@djc

Description

@djc

From oliora on September 02, 2013 20:05:36

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.

Attachment: 0001-ViewDefinition.sync_many-replaced-with-sync_definiti.patch 0002-DefinitionMixin-base-class-extracted-from-ViewDefini.patch 0003-_DesignDocument-refactored-to-easily-support-differe.patch 0004-Function-_sync_dict_field-extracted-from-ViewDefinit.patch 0005-UpdateHandlerDefinition-added.patch 0006-ValidateFunctionDefinition-added.patch 0007-ShowFunctionDefinition-added.patch 0008-Renamed-some-of-_DesignDoc-attributes-to-match-corre.patch 0009-Syncronization-of-dictionary-fields-slightly-refacto.patch 0010-All-new-definition-types-are-added-to-import-list.patch 0011-Small-refactoring-badly-named-function-arguments-ren.patch

Original issue: http://code.google.com/p/couchdb-python/issues/detail?id=229

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions