[ckan-changes] [ckan/ckan] 62dc5b: [#2204] First implementation of the create views c...

GitHub noreply at github.com
Thu Feb 12 11:08:30 UTC 2015


  Branch: refs/heads/test-cli-autodoc
  Home:   https://github.com/ckan/ckan
  Commit: 62dc5be5ff0446bf81ce59a2d125b722cec368c2
      https://github.com/ckan/ckan/commit/62dc5be5ff0446bf81ce59a2d125b722cec368c2
  Author: amercader <amercadero at gmail.com>
  Date:   2015-01-18 (Sun, 18 Jan 2015)

  Changed paths:
    M ckan/lib/cli.py

  Log Message:
  -----------
  [#2204] First implementation of the create views command

Uses the search to retrieve the dataset dicts and passes them to the
function that adds default views to datasets.

User is prompt with the total count of datasets and the view plugins
which will be checked so she can abort if needed.


  Commit: 28ecbdfd42b0f0ed244d7730c52e3e660ea8f73c
      https://github.com/ckan/ckan/commit/28ecbdfd42b0f0ed244d7730c52e3e660ea8f73c
  Author: amercader <amercadero at gmail.com>
  Date:   2015-01-28 (Wed, 28 Jan 2015)

  Changed paths:
    M ckan/lib/datapreview.py
    M ckan/new_tests/lib/test_datapreview.py

  Log Message:
  -----------
  [#2204] Refactor view creation fuctions

To allow creating specific view types on resources rather than all the
default ones. Basically there are a pair of `add_view_` and
`add_default_view` functions for datasets and resources. Added some more
tests.


  Commit: 654d4cf23c87b4b862e6e412693dc6dbd1da3cc7
      https://github.com/ckan/ckan/commit/654d4cf23c87b4b862e6e412693dc6dbd1da3cc7
  Author: amercader <amercadero at gmail.com>
  Date:   2015-01-28 (Wed, 28 Jan 2015)

  Changed paths:
    M ckan/lib/datapreview.py

  Log Message:
  -----------
  [#2204] Add clarification to docstrings


  Commit: 997400c0152a27fabb94b66f00eb74e440fe8b2a
      https://github.com/ckan/ckan/commit/997400c0152a27fabb94b66f00eb74e440fe8b2a
  Author: amercader <amercadero at gmail.com>
  Date:   2015-01-28 (Wed, 28 Jan 2015)

  Changed paths:
    M ckan/lib/cli.py

  Log Message:
  -----------
  [#2204] Refactor create views command to allow explicit types

You can now pass specific view types on the command line to limit the
view types that will be created, eg:

    paster views create image_view recline_view my_custom_view

If the relevant plugins are not loaded on your ini file the command will
stop.

Improved usage docs, PEP8.


  Commit: 810f76459944504c88ba85adad3e44dcc82323d8
      https://github.com/ckan/ckan/commit/810f76459944504c88ba85adad3e44dcc82323d8
  Author: amercader <amercadero at gmail.com>
  Date:   2015-01-28 (Wed, 28 Jan 2015)

  Changed paths:
    M MANIFEST.in
    M ckan/__init__.py
    M ckan/i18n/ar/LC_MESSAGES/ckan.mo
    M ckan/i18n/ar/LC_MESSAGES/ckan.po
    M ckan/i18n/bg/LC_MESSAGES/ckan.mo
    M ckan/i18n/bg/LC_MESSAGES/ckan.po
    M ckan/i18n/ca/LC_MESSAGES/ckan.mo
    M ckan/i18n/ca/LC_MESSAGES/ckan.po
    M ckan/i18n/ckan.pot
    M ckan/i18n/cs_CZ/LC_MESSAGES/ckan.mo
    M ckan/i18n/cs_CZ/LC_MESSAGES/ckan.po
    M ckan/i18n/da_DK/LC_MESSAGES/ckan.mo
    M ckan/i18n/da_DK/LC_MESSAGES/ckan.po
    M ckan/i18n/de/LC_MESSAGES/ckan.mo
    M ckan/i18n/de/LC_MESSAGES/ckan.po
    M ckan/i18n/dv/LC_MESSAGES/ckan.mo
    M ckan/i18n/dv/LC_MESSAGES/ckan.po
    M ckan/i18n/el/LC_MESSAGES/ckan.mo
    M ckan/i18n/el/LC_MESSAGES/ckan.po
    M ckan/i18n/en_AU/LC_MESSAGES/ckan.mo
    M ckan/i18n/en_AU/LC_MESSAGES/ckan.po
    A ckan/i18n/en_CA/LC_MESSAGES/ckan.mo
    A ckan/i18n/en_CA/LC_MESSAGES/ckan.po
    M ckan/i18n/en_GB/LC_MESSAGES/ckan.mo
    M ckan/i18n/en_GB/LC_MESSAGES/ckan.po
    M ckan/i18n/es/LC_MESSAGES/ckan.mo
    M ckan/i18n/es/LC_MESSAGES/ckan.po
    M ckan/i18n/es_AR/LC_MESSAGES/ckan.mo
    M ckan/i18n/es_AR/LC_MESSAGES/ckan.po
    A ckan/i18n/es_MX/LC_MESSAGES/ckan.mo
    A ckan/i18n/es_MX/LC_MESSAGES/ckan.po
    A ckan/i18n/eu/LC_MESSAGES/ckan.mo
    A ckan/i18n/eu/LC_MESSAGES/ckan.po
    M ckan/i18n/fa_IR/LC_MESSAGES/ckan.mo
    M ckan/i18n/fa_IR/LC_MESSAGES/ckan.po
    M ckan/i18n/fi/LC_MESSAGES/ckan.mo
    M ckan/i18n/fi/LC_MESSAGES/ckan.po
    M ckan/i18n/fr/LC_MESSAGES/ckan.mo
    M ckan/i18n/fr/LC_MESSAGES/ckan.po
    M ckan/i18n/he/LC_MESSAGES/ckan.mo
    M ckan/i18n/he/LC_MESSAGES/ckan.po
    A ckan/i18n/hr/LC_MESSAGES/ckan.mo
    A ckan/i18n/hr/LC_MESSAGES/ckan.po
    M ckan/i18n/hu/LC_MESSAGES/ckan.mo
    M ckan/i18n/hu/LC_MESSAGES/ckan.po
    M ckan/i18n/id/LC_MESSAGES/ckan.mo
    M ckan/i18n/id/LC_MESSAGES/ckan.po
    M ckan/i18n/is/LC_MESSAGES/ckan.mo
    M ckan/i18n/is/LC_MESSAGES/ckan.po
    M ckan/i18n/it/LC_MESSAGES/ckan.mo
    M ckan/i18n/it/LC_MESSAGES/ckan.po
    M ckan/i18n/ja/LC_MESSAGES/ckan.mo
    M ckan/i18n/ja/LC_MESSAGES/ckan.po
    M ckan/i18n/km/LC_MESSAGES/ckan.mo
    M ckan/i18n/km/LC_MESSAGES/ckan.po
    M ckan/i18n/ko_KR/LC_MESSAGES/ckan.mo
    M ckan/i18n/ko_KR/LC_MESSAGES/ckan.po
    A ckan/i18n/lo/LC_MESSAGES/ckan.mo
    A ckan/i18n/lo/LC_MESSAGES/ckan.po
    M ckan/i18n/lt/LC_MESSAGES/ckan.mo
    M ckan/i18n/lt/LC_MESSAGES/ckan.po
    M ckan/i18n/lv/LC_MESSAGES/ckan.mo
    M ckan/i18n/lv/LC_MESSAGES/ckan.po
    A ckan/i18n/mn_MN/LC_MESSAGES/ckan.mo
    A ckan/i18n/mn_MN/LC_MESSAGES/ckan.po
    A ckan/i18n/my/LC_MESSAGES/ckan.mo
    A ckan/i18n/my/LC_MESSAGES/ckan.po
    M ckan/i18n/my_MM/LC_MESSAGES/ckan.mo
    M ckan/i18n/my_MM/LC_MESSAGES/ckan.po
    M ckan/i18n/nl/LC_MESSAGES/ckan.mo
    M ckan/i18n/nl/LC_MESSAGES/ckan.po
    M ckan/i18n/no/LC_MESSAGES/ckan.mo
    M ckan/i18n/no/LC_MESSAGES/ckan.po
    M ckan/i18n/pl/LC_MESSAGES/ckan.mo
    M ckan/i18n/pl/LC_MESSAGES/ckan.po
    M ckan/i18n/pt_BR/LC_MESSAGES/ckan.mo
    M ckan/i18n/pt_BR/LC_MESSAGES/ckan.po
    A ckan/i18n/pt_PT/LC_MESSAGES/ckan.mo
    A ckan/i18n/pt_PT/LC_MESSAGES/ckan.po
    M ckan/i18n/ro/LC_MESSAGES/ckan.mo
    M ckan/i18n/ro/LC_MESSAGES/ckan.po
    M ckan/i18n/ru/LC_MESSAGES/ckan.mo
    M ckan/i18n/ru/LC_MESSAGES/ckan.po
    M ckan/i18n/sk/LC_MESSAGES/ckan.mo
    M ckan/i18n/sk/LC_MESSAGES/ckan.po
    M ckan/i18n/sl/LC_MESSAGES/ckan.mo
    M ckan/i18n/sl/LC_MESSAGES/ckan.po
    M ckan/i18n/sq/LC_MESSAGES/ckan.mo
    M ckan/i18n/sq/LC_MESSAGES/ckan.po
    M ckan/i18n/sr/LC_MESSAGES/ckan.mo
    M ckan/i18n/sr/LC_MESSAGES/ckan.po
    M ckan/i18n/sr_Latn/LC_MESSAGES/ckan.mo
    M ckan/i18n/sr_Latn/LC_MESSAGES/ckan.po
    M ckan/i18n/sv/LC_MESSAGES/ckan.mo
    M ckan/i18n/sv/LC_MESSAGES/ckan.po
    A ckan/i18n/sw/LC_MESSAGES/ckan.mo
    A ckan/i18n/sw/LC_MESSAGES/ckan.po
    A ckan/i18n/th/LC_MESSAGES/ckan.mo
    A ckan/i18n/th/LC_MESSAGES/ckan.po
    M ckan/i18n/tr/LC_MESSAGES/ckan.mo
    M ckan/i18n/tr/LC_MESSAGES/ckan.po
    M ckan/i18n/uk_UA/LC_MESSAGES/ckan.mo
    M ckan/i18n/uk_UA/LC_MESSAGES/ckan.po
    M ckan/i18n/vi/LC_MESSAGES/ckan.mo
    M ckan/i18n/vi/LC_MESSAGES/ckan.po
    M ckan/i18n/vi_VN/LC_MESSAGES/ckan.mo
    M ckan/i18n/vi_VN/LC_MESSAGES/ckan.po
    M ckan/i18n/zh_CN/LC_MESSAGES/ckan.mo
    M ckan/i18n/zh_CN/LC_MESSAGES/ckan.po
    M ckan/i18n/zh_TW/LC_MESSAGES/ckan.mo
    M ckan/i18n/zh_TW/LC_MESSAGES/ckan.po
    M ckan/lib/search/index.py
    M ckan/logic/action/get.py
    M ckan/new_tests/lib/search/test_index.py
    M ckan/new_tests/logic/action/test_get.py
    M ckan/public/base/less/ckan.less
    M ckan/templates/package/resource_data.html
    M ckan/templates/package/snippets/additional_info.html
    M ckan/templates/package/snippets/resource_views_list_item.html
    M ckan/templates/package/snippets/resources_list.html
    M ckan/tests/logic/test_action.py
    M ckanext/datastore/db.py
    M ckanext/datastore/logic/action.py
    M ckanext/datastore/tests/test_create.py
    M ckanext/datastore/tests/test_db.py
    M ckanext/example_idatasetform/templates/package/snippets/package_metadata_fields.html
    A ckanext/example_idatasetform/tests/test_controllers.py
    M doc/maintaining/filestore.rst
    M doc/maintaining/installing/deployment.rst

  Log Message:
  -----------
  Merge branch 'master' into 2204-resource-views-cli


  Commit: 20b906cdb2441dba48db86db1ce5c9b74743c496
      https://github.com/ckan/ckan/commit/20b906cdb2441dba48db86db1ce5c9b74743c496
  Author: amercader <amercadero at gmail.com>
  Date:   2015-01-28 (Wed, 28 Jan 2015)

  Changed paths:
    M ckan/new_tests/lib/test_datapreview.py

  Log Message:
  -----------
  [#2204] PEP8


  Commit: a900c119119742665a270b9d46e0515789d8901d
      https://github.com/ckan/ckan/commit/a900c119119742665a270b9d46e0515789d8901d
  Author: amercader <amercadero at gmail.com>
  Date:   2015-01-29 (Thu, 29 Jan 2015)

  Changed paths:
    M ckanext/textview/plugin.py

  Log Message:
  -----------
  [#2204] Modify default formats for text preview

Do not render geojson and csv, tsv files on text view by default

Most users / publishers would expect to see a map or table respectivlely.

It can be reenabled by adding `csv tsv` to `ckan.preview.text_formats` and
`geojson` to `ckan.preview.json_formats` config options.

Also fix typo in rdf+xml.


  Commit: 632ccbe999036a002da4e349f4bd026cb0aeb9db
      https://github.com/ckan/ckan/commit/632ccbe999036a002da4e349f4bd026cb0aeb9db
  Author: amercader <amercadero at gmail.com>
  Date:   2015-01-29 (Thu, 29 Jan 2015)

  Changed paths:
    M ckan/lib/cli.py
    M ckanext/textview/plugin.py

  Log Message:
  -----------
  [#2204] Add filters for more common view types

If the view types that need to be checked are some of the core ones we
can filter the dataset search to only return the relevant ones, which
will reduce the number of datasets to be checked.

Refactored the text view plugin to allow importing the formats used.


  Commit: 9eb88589166db62cb4f229b7a56ad5da6d5dcad9
      https://github.com/ckan/ckan/commit/9eb88589166db62cb4f229b7a56ad5da6d5dcad9
  Author: amercader <amercadero at gmail.com>
  Date:   2015-01-30 (Fri, 30 Jan 2015)

  Changed paths:
    M ckan/lib/cli.py

  Log Message:
  -----------
  [#2204] Add option to turn default filters off

Default filters can be explicitly turned off, and they also won't be
applied if the user passes extra search parameters (still no
implemented)


  Commit: 2773faaed2ef9676ea478c32c09a609cf063c245
      https://github.com/ckan/ckan/commit/2773faaed2ef9676ea478c32c09a609cf063c245
  Author: amercader <amercadero at gmail.com>
  Date:   2015-01-30 (Fri, 30 Jan 2015)

  Changed paths:
    M ckan/lib/cli.py

  Log Message:
  -----------
  [#2204] Allow users to modify the search parameters to get datasets

Users can pass the `-s` option to provide a JSON object with parameters
like the ones used in `package_search`. Supported parameters are `q`,
`fq` and `fq_list`.


  Commit: 774d765a27d0f725cbf4785d6d9edcff3900d023
      https://github.com/ckan/ckan/commit/774d765a27d0f725cbf4785d6d9edcff3900d023
  Author: amercader <amercadero at gmail.com>
  Date:   2015-01-30 (Fri, 30 Jan 2015)

  Changed paths:
    M ckan/lib/cli.py

  Log Message:
  -----------
  [#2204] Add option to create views on particular datasets


  Commit: 8020238c080ca81ebd236592c213bf47d8e1ec4b
      https://github.com/ckan/ckan/commit/8020238c080ca81ebd236592c213bf47d8e1ec4b
  Author: amercader <amercadero at gmail.com>
  Date:   2015-01-30 (Fri, 30 Jan 2015)

  Changed paths:
    M ckan/lib/cli.py

  Log Message:
  -----------
  [#2204] Stop if no more records


  Commit: 3ba9c3d529e02647e00a98f039795cb3ec6b5822
      https://github.com/ckan/ckan/commit/3ba9c3d529e02647e00a98f039795cb3ec6b5822
  Author: amercader <amercadero at gmail.com>
  Date:   2015-02-09 (Mon, 09 Feb 2015)

  Changed paths:
    M ckan/controllers/group.py
    M ckan/lib/datapreview.py
    M ckan/lib/dictization/model_dictize.py
    M ckan/logic/action/delete.py
    M ckan/logic/action/get.py
    M ckan/logic/validators.py
    A ckan/migration/versions/076_rename_view_plugins_2.py
    M ckan/model/user.py
    M ckan/new_tests/controllers/test_package.py
    M ckan/new_tests/lib/test_datapreview.py
    M ckan/new_tests/logic/action/test_get.py
    M ckan/plugins/toolkit.py
    M ckan/templates/package/snippets/package_basic_fields.html
    M ckan/templates/package/snippets/resource_view.html
    M ckan/tests/logic/test_action.py
    M ckanext/datapusher/cli.py
    M ckanext/datapusher/plugin.py
    M ckanext/datastore/logic/action.py
    M ckanext/datastore/logic/auth.py
    M ckanext/datastore/plugin.py
    A ckanext/datastore/tests/test_info.py
    M ckanext/imageview/plugin.py
    M ckanext/pdfview/plugin.py
    M ckanext/pdfview/tests/test_view.py
    M ckanext/reclineview/plugin.py
    M ckanext/reclineview/theme/public/recline_view.js
    M ckanext/textview/plugin.py
    M ckanext/textview/tests/test_view.py
    M ckanext/webpageview/plugin.py
    M doc/extensions/adding-custom-fields.rst

  Log Message:
  -----------
  Merge branch 'master' into 2204-resource-views-cli

Conflicts:
	ckanext/textview/plugin.py


  Commit: a7c36d0d1c17eb5bc78cec6d21f87ade4cf47a73
      https://github.com/ckan/ckan/commit/a7c36d0d1c17eb5bc78cec6d21f87ade4cf47a73
  Author: amercader <amercadero at gmail.com>
  Date:   2015-02-12 (Thu, 12 Feb 2015)

  Changed paths:
    M ckan/lib/cli.py
    M ckan/lib/datapreview.py
    M ckan/new_tests/lib/test_datapreview.py
    M ckanext/textview/plugin.py

  Log Message:
  -----------
  Merge branch '2204-resource-views-cli' into test-cli-autodoc


  Commit: 92460e1491bcda1c455a9cd360d6f0e2df1387e6
      https://github.com/ckan/ckan/commit/92460e1491bcda1c455a9cd360d6f0e2df1387e6
  Author: amercader <amercadero at gmail.com>
  Date:   2015-02-12 (Thu, 12 Feb 2015)

  Changed paths:
    M doc/maintaining/data-viewer.rst

  Log Message:
  -----------
  Use pwd to get the working dir and call paster


Compare: https://github.com/ckan/ckan/compare/5963c36b215b...92460e1491bc


More information about the ckan-changes mailing list