[ckan-changes] [okfn/ckan] 433181: [#2750] Add example_idatasetform example extension

GitHub noreply at github.com
Tue Mar 19 16:12:21 UTC 2013


  Branch: refs/heads/654-disable-activity-streams-via-config
  Home:   https://github.com/okfn/ckan
  Commit: 4331816b09dc92cb7c0dfb6aa7b95d49ea89d3da
      https://github.com/okfn/ckan/commit/4331816b09dc92cb7c0dfb6aa7b95d49ea89d3da
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2013-02-25 (Mon, 25 Feb 2013)

  Changed paths:
    A ckanext/example_idatasetform/__init__.py
    A ckanext/example_idatasetform/plugin.py
    A ckanext/example_idatasetform/templates/package/new_package_metadata.html
    A ckanext/example_idatasetform/templates/package/read.html
    A ckanext/example_idatasetform/templates/package/snippets/package_form.html
    A ckanext/example_idatasetform/templates/package/snippets/package_metadata_fields.html
    A ckanext/example_idatasetform/templates/package/snippets/package_metadata_form.html
    A ckanext/example_idatasetform/tests/test_example_idatasetform_plugin.py
    M setup.py

  Log Message:
  -----------
  [#2750] Add example_idatasetform example extension


  Commit: a1bedacb926557e673cb2365928e4c8e864d477b
      https://github.com/okfn/ckan/commit/a1bedacb926557e673cb2365928e4c8e864d477b
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2013-02-25 (Mon, 25 Feb 2013)

  Changed paths:
    M ckan/lib/plugins.py
    M ckan/plugins/interfaces.py
    M doc/conf.py

  Log Message:
  -----------
  [#2750] Improve IDatasetForm docstrings

- Rewrite the IDatasetForm docstrings to make them clearer,
  and conform to PEP257
- Reorder methods in IDatasetForm and DefaultDatasetForm
  so that they're 1. in a more logical order and 2. in the
  same order as eachother
- Tell autodoc to put the methods in source-code order,
  not alphabetical, in the sphinx docs
- Remove docstrings from DefaultDatasetForm that are
  exact repeats of corresponding docstrings in IDatasetForm
- Add edit_template() to IDatasetForm, it was missing

db_to_form_schema_options() and form_to_db_schema_options() and some
other schema methods in DefaultDatasetForm are still missing from
IDatasetForm but I'm leaving it that way for now, consider them
unofficial.


  Commit: cec55a24b305919c0251f706af6cc290406c93ef
      https://github.com/okfn/ckan/commit/cec55a24b305919c0251f706af6cc290406c93ef
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2013-02-25 (Mon, 25 Feb 2013)

  Changed paths:
    R doc/forms.rst
    M doc/index.rst

  Log Message:
  -----------
  [#2750] Delete 'Customizing Forms' docs

They are out of date, and we have ckanext/example_idatasetform instead
now.


  Commit: d1f557c4e13cffa5c68180b06659ebea150a3601
      https://github.com/okfn/ckan/commit/d1f557c4e13cffa5c68180b06659ebea150a3601
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2013-02-26 (Tue, 26 Feb 2013)

  Changed paths:
    M doc/tag-vocabularies.rst

  Log Message:
  -----------
  [#2750] Rewrite tag vocabularies docs

Change the tag vocabularies docs to refer to the working example in
ckanext/example_idatasetform instead of providing their own detailed
instructions.

Also add some more general explanation at the start about what tag
vocabularies are for/why you might want to use them/what you can do with
them, it was all a bit mysterious.

Remove some false claims from the Properties section, I don't think that
the restricted/free vocabulary types are implemented (they are either
always restricted or always free, can't remember), vocabularies do not
have descriptions.


  Commit: 9808ed42c68612b40227480d86613729f1c89b0d
      https://github.com/okfn/ckan/commit/9808ed42c68612b40227480d86613729f1c89b0d
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2013-02-26 (Tue, 26 Feb 2013)

  Changed paths:
    M ckanext/example_idatasetform/plugin.py

  Log Message:
  -----------
  [#2750] example_idatasetform use toolkit not logic

Use ckan.plugins.toolkit instead of ckan.logic in ckanext/example_idatasetform


  Commit: 9de978e4e63ec684d43bed9b41fc5c24fda05ecf
      https://github.com/okfn/ckan/commit/9de978e4e63ec684d43bed9b41fc5c24fda05ecf
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2013-02-27 (Wed, 27 Feb 2013)

  Changed paths:
    M .travis.yml
    M ckan/controllers/home.py
    M ckan/controllers/package.py
    M ckan/controllers/revision.py
    M ckan/controllers/tag.py
    M ckan/controllers/template.py
    M ckan/lib/base.py
    M ckan/lib/helpers.py
    M ckan/lib/jinja_extensions.py
    M ckan/lib/search/__init__.py
    M ckan/model/group.py
    M ckan/templates/package/search.html
    M ckan/templates_legacy/package/search.html
    M ckan/tests/functional/api/base.py
    M ckan/tests/functional/api/model/test_group.py
    M ckan/tests/functional/api/model/test_licenses.py
    M ckan/tests/functional/api/model/test_package.py
    M ckan/tests/functional/api/model/test_ratings.py
    M ckan/tests/functional/api/model/test_relationships.py
    M ckan/tests/functional/api/model/test_revisions.py
    M ckan/tests/functional/api/model/test_tag.py
    M ckan/tests/functional/api/test_api.py
    M ckan/tests/functional/api/test_misc.py
    M ckan/tests/functional/api/test_package_search.py
    M ckan/tests/functional/api/test_resource_search.py
    M ckan/tests/models/test_group.py
    M ckanext/datastore/db.py
    M ckanext/datastore/tests/test_create.py
    M ckanext/datastore/tests/test_unit.py
    M ckanext/resourceproxy/controller.py
    M pip-requirements.txt
    M test-core.ini

  Log Message:
  -----------
  Merge branch 'master' of github.com:okfn/ckan into example_idatasetform_without_tests


  Commit: aeb26878986832db8528fb3b3f74fe5976a06462
      https://github.com/okfn/ckan/commit/aeb26878986832db8528fb3b3f74fe5976a06462
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2013-02-27 (Wed, 27 Feb 2013)

  Changed paths:
    M ckanext/example_idatasetform/plugin.py
    M ckanext/example_idatasetform/templates/package/snippets/package_metadata_fields.html

  Log Message:
  -----------
  [#2750] Add a convert_to_extras field to ExampleIDatasetFormPlugin

Add another custom field to ExampleIDatasetFormPlugin, one that uses
convert_to/from_extras instead of convert_to/from_tags.

I also had to make the plugin disable DefaultDatasetForm's
check_data_dict() because it breaks with the new three-stage dataset
creation when using convert_to_extras.


  Commit: 04d0a7445061b7ae0342e81a639f28aae75878aa
      https://github.com/okfn/ckan/commit/04d0a7445061b7ae0342e81a639f28aae75878aa
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2013-03-05 (Tue, 05 Mar 2013)

  Changed paths:
    M ckanext/example_idatasetform/tests/test_example_idatasetform_plugin.py

  Log Message:
  -----------
  [#2750] Fix tag editing test in example_idatasetform


  Commit: 8757d2a99a8c6fcb35e57ecd40c43fb6dd219a2b
      https://github.com/okfn/ckan/commit/8757d2a99a8c6fcb35e57ecd40c43fb6dd219a2b
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2013-03-05 (Tue, 05 Mar 2013)

  Changed paths:
    M ckanext/example_idatasetform/tests/test_example_idatasetform_plugin.py

  Log Message:
  -----------
  [#2750] Edit some other fields in example_idatasetform test

Test that normal dataset fields can still be edited when using
IDatasetForm.


  Commit: 2f2a960b5aa0e0b3706c4ea38425cb626ccbd7b8
      https://github.com/okfn/ckan/commit/2f2a960b5aa0e0b3706c4ea38425cb626ccbd7b8
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2013-03-05 (Tue, 05 Mar 2013)

  Changed paths:
    M ckanext/example_idatasetform/plugin.py
    M ckanext/example_idatasetform/tests/test_example_idatasetform_plugin.py

  Log Message:
  -----------
  [#2750] Finish example_idatasetform tests

This just finishes up the example_idatasetform tests that count how many
times the per-dataset-type templates are called.


  Commit: 0ce63eee311a371bfcda603a01da5657f9f6892e
      https://github.com/okfn/ckan/commit/0ce63eee311a371bfcda603a01da5657f9f6892e
  Author: tobes <toby.junk at gmail.com>
  Date:   2013-03-19 (Tue, 19 Mar 2013)

  Changed paths:
    M ckan/lib/plugins.py
    M ckan/plugins/interfaces.py
    A ckanext/example_idatasetform/__init__.py
    A ckanext/example_idatasetform/plugin.py
    A ckanext/example_idatasetform/templates/package/new_package_metadata.html
    A ckanext/example_idatasetform/templates/package/read.html
    A ckanext/example_idatasetform/templates/package/snippets/package_form.html
    A ckanext/example_idatasetform/templates/package/snippets/package_metadata_fields.html
    A ckanext/example_idatasetform/templates/package/snippets/package_metadata_form.html
    A ckanext/example_idatasetform/tests/test_example_idatasetform_plugin.py
    M doc/conf.py
    R doc/forms.rst
    M doc/index.rst
    M doc/tag-vocabularies.rst
    M setup.py

  Log Message:
  -----------
  Merge branch 'example_idatasetform_without_tests'

Conflicts:
	doc/tag-vocabularies.rst

    removed
    This needs to be done via the action API (:doc:`api`). Please check
    the examples section to see which calls are needed.


  Commit: b750d3c6e724dca4ef27450a2d1d08ee72f395c6
      https://github.com/okfn/ckan/commit/b750d3c6e724dca4ef27450a2d1d08ee72f395c6
  Author: John Glover <j at johnglover.net>
  Date:   2013-03-19 (Tue, 19 Mar 2013)

  Changed paths:
    M ckan/lib/plugins.py
    M ckan/plugins/interfaces.py
    A ckanext/example_idatasetform/__init__.py
    A ckanext/example_idatasetform/plugin.py
    A ckanext/example_idatasetform/templates/package/new_package_metadata.html
    A ckanext/example_idatasetform/templates/package/read.html
    A ckanext/example_idatasetform/templates/package/snippets/package_form.html
    A ckanext/example_idatasetform/templates/package/snippets/package_metadata_fields.html
    A ckanext/example_idatasetform/templates/package/snippets/package_metadata_form.html
    A ckanext/example_idatasetform/tests/test_example_idatasetform_plugin.py
    M doc/conf.py
    R doc/forms.rst
    M doc/index.rst
    M doc/tag-vocabularies.rst
    M setup.py

  Log Message:
  -----------
  Merge remote-tracking branch 'origin/master' into 654-disable-activity-streams-via-config


Compare: https://github.com/okfn/ckan/compare/0b771d3d467b...b750d3c6e724


More information about the ckan-changes mailing list