config file

This commit is contained in:
marco_carollo 2024-11-06 12:17:59 +01:00
parent ad20e06ab7
commit f5857c3e66
21 changed files with 469 additions and 0 deletions

View File

@ -0,0 +1,144 @@
Metadata-Version: 2.1
Name: ckanext-d4science-theme
Version: 0.0.1
Summary: "D4Science Data Catalog extension for CKAN",
Home-page: https://github.com//ckanext-d4science_theme
Author: Francesco Mangiacrapa
Author-email: francesco.mangiacrapa@isti.cnr.it
License: AGPL
Keywords: CKAN "D4Science Data Catalogue" gCube
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
License-File: LICENSE
============
ckanext-d4science_theme
============
The CKAN extension that implements the D4Science theme template used by D4Science Catalogues
------------
Requirements
------------
None
------------
Installation
------------
To install ckanext-d4science_theme:
1. Activate your CKAN virtual environment, for example::
. /usr/lib/ckan/default/bin/activate
2. Install the ckanext-d4science_theme Python package into your virtual environment::
pip install ckanext-d4science_theme
3. Add ``d4science_theme`` to the ``ckan.plugins`` setting in your CKAN
config file (by default the config file is located at
``/etc/ckan/default/production.ini``).
4. Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu::
sudo service apache2 reload
---------------
Config Settings
---------------
Document any optional config settings here. For example::
# The minimum number of hours to wait before re-checking a resource
# (optional, default: 24).
ckanext.d4science_theme.some_setting = some_default_value
------------------------
Development Installation
------------------------
To install ckanext-d4science_theme for development, activate your CKAN virtualenv and
do::
git clone https://code-repo.d4science.org/CKAN-Extensions/ckanext-d4science_theme.git
cd ckanext-d4science_theme
python setup.py develop
pip install -r dev-requirements.txt
-----------------
Running the Tests
-----------------
To run the tests, do::
nosetests --nologcapture --with-pylons=test.ini
To run the tests and produce a coverage report, first make sure you have
coverage installed in your virtualenv (``pip install coverage``) then run::
nosetests --nologcapture --with-pylons=test.ini --with-coverage --cover-package=ckanext.d4science_theme --cover-inclusive --cover-erase --cover-tests
---------------------------------
Registering ckanext-d4science_theme on PyPI
---------------------------------
ckanext-d4science_theme should be availabe on PyPI as
https://pypi.python.org/pypi/ckanext-d4science_theme. If that link doesn't work, then
you can register the project on PyPI for the first time by following these
steps:
1. Create a source distribution of the project::
python setup.py sdist
2. Register the project::
python setup.py register
3. Upload the source distribution to PyPI::
python setup.py sdist upload
4. Tag the first release of the project on GitHub with the version number from
the ``setup.py`` file. For example if the version number in ``setup.py`` is
0.0.1 then do::
git tag 0.0.1
git push --tags
----------------------------------------
Releasing a New Version of ckanext-d4science_theme
----------------------------------------
ckanext-d4science_theme is availabe on PyPI as https://pypi.python.org/pypi/ckanext-d4science_theme.
To publish a new version to PyPI follow these steps:
1. Update the version number in the ``setup.py`` file.
See `PEP 440 <http://legacy.python.org/dev/peps/pep-0440/#public-version-identifiers>`_
for how to choose version numbers.
2. Create a source distribution of the new version::
python setup.py sdist
3. Upload the source distribution to PyPI::
python setup.py sdist upload
4. Tag the new release of the project on GitHub with the version number from
the ``setup.py`` file. For example if the version number in ``setup.py`` is
0.0.2 then do::
git tag 0.0.2
git push --tags

View File

@ -0,0 +1,318 @@
LICENSE
MANIFEST.in
README.rst
setup.cfg
setup.py
ckanext/__init__.py
ckanext/d4science_theme/__init__.py
ckanext/d4science_theme/helpers.py
ckanext/d4science_theme/plugin.py
ckanext/d4science_theme/assets/css/d4science_theme.css
ckanext/d4science_theme/assets/js/d4science_scripts.js
ckanext/d4science_theme/controllers/__init__.py
ckanext/d4science_theme/controllers/home.py
ckanext/d4science_theme/controllers/organization.py
ckanext/d4science_theme/controllers/systemtype.py
ckanext/d4science_theme/d4sdiscovery/__init__.py
ckanext/d4science_theme/d4sdiscovery/d4s_cache_controller.py
ckanext/d4science_theme/d4sdiscovery/d4s_extras.py
ckanext/d4science_theme/d4sdiscovery/d4s_namespaces.py
ckanext/d4science_theme/d4sdiscovery/d4s_namespaces_controller.py
ckanext/d4science_theme/d4sdiscovery/d4s_namespaces_extras_util.py
ckanext/d4science_theme/d4sdiscovery/icproxycontroller.py
ckanext/d4science_theme/fanstatic/d4science_scripts.js
ckanext/d4science_theme/fanstatic/d4science_theme.css
ckanext/d4science_theme/public/d4s_tagcloud.js
ckanext/d4science_theme/public/jquery.tagcloud.js
ckanext/d4science_theme/qrcodelink/__init__.py
ckanext/d4science_theme/qrcodelink/generate_qrcode.py
ckanext/d4science_theme/templates/base.html
ckanext/d4science_theme/templates/error_document_template.html
ckanext/d4science_theme/templates/footer.html
ckanext/d4science_theme/templates/header.html
ckanext/d4science_theme/templates/page.html
ckanext/d4science_theme/templates/admin/base.html
ckanext/d4science_theme/templates/admin/config.html
ckanext/d4science_theme/templates/admin/confirm_reset.html
ckanext/d4science_theme/templates/admin/index.html
ckanext/d4science_theme/templates/admin/trash.html
ckanext/d4science_theme/templates/admin/snippets/confirm_delete.html
ckanext/d4science_theme/templates/admin/snippets/data_type.html
ckanext/d4science_theme/templates/ajax_snippets/custom_fields.html
ckanext/d4science_theme/templates/ajax_snippets/follow_button.html
ckanext/d4science_theme/templates/dataviewer/base.html
ckanext/d4science_theme/templates/development/primer.html
ckanext/d4science_theme/templates/development/snippets/actions.html
ckanext/d4science_theme/templates/development/snippets/breadcrumb.html
ckanext/d4science_theme/templates/development/snippets/context.html
ckanext/d4science_theme/templates/development/snippets/facet.html
ckanext/d4science_theme/templates/development/snippets/form.html
ckanext/d4science_theme/templates/development/snippets/form_stages.html
ckanext/d4science_theme/templates/development/snippets/list.html
ckanext/d4science_theme/templates/development/snippets/media_grid.html
ckanext/d4science_theme/templates/development/snippets/module.html
ckanext/d4science_theme/templates/development/snippets/nav.html
ckanext/d4science_theme/templates/development/snippets/page_header.html
ckanext/d4science_theme/templates/development/snippets/pagination.html
ckanext/d4science_theme/templates/development/snippets/simple-input.html
ckanext/d4science_theme/templates/group/about.html
ckanext/d4science_theme/templates/group/admins.html
ckanext/d4science_theme/templates/group/base_form_page.html
ckanext/d4science_theme/templates/group/confirm_delete.html
ckanext/d4science_theme/templates/group/confirm_delete_member.html
ckanext/d4science_theme/templates/group/edit.html
ckanext/d4science_theme/templates/group/edit_base.html
ckanext/d4science_theme/templates/group/followers.html
ckanext/d4science_theme/templates/group/index.html
ckanext/d4science_theme/templates/group/member_new.html
ckanext/d4science_theme/templates/group/members.html
ckanext/d4science_theme/templates/group/new.html
ckanext/d4science_theme/templates/group/new_group_form.html
ckanext/d4science_theme/templates/group/read.html
ckanext/d4science_theme/templates/group/read_base.html
ckanext/d4science_theme/templates/group/snippets/feeds.html
ckanext/d4science_theme/templates/group/snippets/group_form.html
ckanext/d4science_theme/templates/group/snippets/group_item.html
ckanext/d4science_theme/templates/group/snippets/group_list.html
ckanext/d4science_theme/templates/group/snippets/helper.html
ckanext/d4science_theme/templates/group/snippets/info.html
ckanext/d4science_theme/templates/home/about.html
ckanext/d4science_theme/templates/home/index.html
ckanext/d4science_theme/templates/home/layout1.html
ckanext/d4science_theme/templates/home/snippets/about_text.html
ckanext/d4science_theme/templates/home/snippets/featured_group.html
ckanext/d4science_theme/templates/home/snippets/featured_organization.html
ckanext/d4science_theme/templates/home/snippets/popular_formats.html
ckanext/d4science_theme/templates/home/snippets/popular_tags.html
ckanext/d4science_theme/templates/home/snippets/promoted.html
ckanext/d4science_theme/templates/home/snippets/search.html
ckanext/d4science_theme/templates/home/snippets/search_for_groups.html
ckanext/d4science_theme/templates/home/snippets/search_for_location.html
ckanext/d4science_theme/templates/home/snippets/search_for_organisations.html
ckanext/d4science_theme/templates/home/snippets/search_for_types.html
ckanext/d4science_theme/templates/home/snippets/stats.html
ckanext/d4science_theme/templates/macros/autoform.html
ckanext/d4science_theme/templates/macros/form.html
ckanext/d4science_theme/templates/macros/form/attributes.html
ckanext/d4science_theme/templates/macros/form/checkbox.html
ckanext/d4science_theme/templates/macros/form/custom.html
ckanext/d4science_theme/templates/macros/form/errors.html
ckanext/d4science_theme/templates/macros/form/hidden.html
ckanext/d4science_theme/templates/macros/form/hidden_from_list.html
ckanext/d4science_theme/templates/macros/form/image_upload.html
ckanext/d4science_theme/templates/macros/form/info.html
ckanext/d4science_theme/templates/macros/form/input.html
ckanext/d4science_theme/templates/macros/form/input_block.html
ckanext/d4science_theme/templates/macros/form/markdown.html
ckanext/d4science_theme/templates/macros/form/prepend.html
ckanext/d4science_theme/templates/macros/form/required_message.html
ckanext/d4science_theme/templates/macros/form/select.html
ckanext/d4science_theme/templates/macros/form/textarea.html
ckanext/d4science_theme/templates/organization/about.html
ckanext/d4science_theme/templates/organization/admins.html
ckanext/d4science_theme/templates/organization/base_form_page.html
ckanext/d4science_theme/templates/organization/bulk_process.html
ckanext/d4science_theme/templates/organization/confirm_delete.html
ckanext/d4science_theme/templates/organization/confirm_delete_member.html
ckanext/d4science_theme/templates/organization/edit.html
ckanext/d4science_theme/templates/organization/edit_base.html
ckanext/d4science_theme/templates/organization/index.html
ckanext/d4science_theme/templates/organization/member_new.html
ckanext/d4science_theme/templates/organization/members.html
ckanext/d4science_theme/templates/organization/new.html
ckanext/d4science_theme/templates/organization/new_organization_form.html
ckanext/d4science_theme/templates/organization/read.html
ckanext/d4science_theme/templates/organization/read_base.html
ckanext/d4science_theme/templates/organization/snippets/feeds.html
ckanext/d4science_theme/templates/organization/snippets/helper.html
ckanext/d4science_theme/templates/organization/snippets/organization_form.html
ckanext/d4science_theme/templates/organization/snippets/organization_item.html
ckanext/d4science_theme/templates/organization/snippets/organization_list.html
ckanext/d4science_theme/templates/organization_vre/index.html
ckanext/d4science_theme/templates/organization_vre/read.html
ckanext/d4science_theme/templates/package/base.html
ckanext/d4science_theme/templates/package/base_form_page.html
ckanext/d4science_theme/templates/package/confirm_delete.html
ckanext/d4science_theme/templates/package/confirm_delete_resource.html
ckanext/d4science_theme/templates/package/edit.html
ckanext/d4science_theme/templates/package/edit_base.html
ckanext/d4science_theme/templates/package/edit_view.html
ckanext/d4science_theme/templates/package/followers.html
ckanext/d4science_theme/templates/package/group_list.html
ckanext/d4science_theme/templates/package/new.html
ckanext/d4science_theme/templates/package/new_package_form.html
ckanext/d4science_theme/templates/package/new_resource.html
ckanext/d4science_theme/templates/package/new_resource_not_draft.html
ckanext/d4science_theme/templates/package/new_view.html
ckanext/d4science_theme/templates/package/read.html
ckanext/d4science_theme/templates/package/read_base.html
ckanext/d4science_theme/templates/package/resource_edit.html
ckanext/d4science_theme/templates/package/resource_edit_base.html
ckanext/d4science_theme/templates/package/resource_read.html
ckanext/d4science_theme/templates/package/resource_views.html
ckanext/d4science_theme/templates/package/resources.html
ckanext/d4science_theme/templates/package/search.html
ckanext/d4science_theme/templates/package/view_edit_base.html
ckanext/d4science_theme/templates/package/collaborators/collaborator_new.html
ckanext/d4science_theme/templates/package/collaborators/collaborators.html
ckanext/d4science_theme/templates/package/collaborators/confirm_delete.html
ckanext/d4science_theme/templates/package/snippets/additional_info.html
ckanext/d4science_theme/templates/package/snippets/cannot_create_package.html
ckanext/d4science_theme/templates/package/snippets/info.html
ckanext/d4science_theme/templates/package/snippets/new_package_breadcrumb.html
ckanext/d4science_theme/templates/package/snippets/package_basic_fields.html
ckanext/d4science_theme/templates/package/snippets/package_form.html
ckanext/d4science_theme/templates/package/snippets/package_metadata_fields.html
ckanext/d4science_theme/templates/package/snippets/resource_edit_form.html
ckanext/d4science_theme/templates/package/snippets/resource_form.html
ckanext/d4science_theme/templates/package/snippets/resource_help.html
ckanext/d4science_theme/templates/package/snippets/resource_info.html
ckanext/d4science_theme/templates/package/snippets/resource_item.html
ckanext/d4science_theme/templates/package/snippets/resource_upload_field.html
ckanext/d4science_theme/templates/package/snippets/resource_view.html
ckanext/d4science_theme/templates/package/snippets/resource_view_embed.html
ckanext/d4science_theme/templates/package/snippets/resource_view_filters.html
ckanext/d4science_theme/templates/package/snippets/resource_views_list.html
ckanext/d4science_theme/templates/package/snippets/resource_views_list_item.html
ckanext/d4science_theme/templates/package/snippets/resources.html
ckanext/d4science_theme/templates/package/snippets/resources_list.html
ckanext/d4science_theme/templates/package/snippets/stages.html
ckanext/d4science_theme/templates/package/snippets/tags.html
ckanext/d4science_theme/templates/package/snippets/view_form.html
ckanext/d4science_theme/templates/package/snippets/view_form_filters.html
ckanext/d4science_theme/templates/package/snippets/view_help.html
ckanext/d4science_theme/templates/snippets/add_dataset.html
ckanext/d4science_theme/templates/snippets/additional_info.html
ckanext/d4science_theme/templates/snippets/context.html
ckanext/d4science_theme/templates/snippets/csrf_input.html
ckanext/d4science_theme/templates/snippets/custom_form_fields.html
ckanext/d4science_theme/templates/snippets/datapusher_status.html
ckanext/d4science_theme/templates/snippets/disqus_trackback.html
ckanext/d4science_theme/templates/snippets/facet_list.html
ckanext/d4science_theme/templates/snippets/follow_button.html
ckanext/d4science_theme/templates/snippets/group.html
ckanext/d4science_theme/templates/snippets/group_item.html
ckanext/d4science_theme/templates/snippets/home_breadcrumb_item.html
ckanext/d4science_theme/templates/snippets/language_selector.html
ckanext/d4science_theme/templates/snippets/license.html
ckanext/d4science_theme/templates/snippets/local_friendly_datetime.html
ckanext/d4science_theme/templates/snippets/organization.html
ckanext/d4science_theme/templates/snippets/organization_item.html
ckanext/d4science_theme/templates/snippets/package_item.html
ckanext/d4science_theme/templates/snippets/package_list.html
ckanext/d4science_theme/templates/snippets/popular.html
ckanext/d4science_theme/templates/snippets/private.html
ckanext/d4science_theme/templates/snippets/search_form.html
ckanext/d4science_theme/templates/snippets/search_result_text.html
ckanext/d4science_theme/templates/snippets/simple_search.html
ckanext/d4science_theme/templates/snippets/social.html
ckanext/d4science_theme/templates/snippets/tag_list.html
ckanext/d4science_theme/templates/snippets/context/dataset.html
ckanext/d4science_theme/templates/snippets/context/group.html
ckanext/d4science_theme/templates/snippets/context/user.html
ckanext/d4science_theme/templates/tag/index.html
ckanext/d4science_theme/templates/tag/snippets/helper.html
ckanext/d4science_theme/templates/tag/snippets/tag_form.html
ckanext/d4science_theme/templates/tag/snippets/tag_list.html
ckanext/d4science_theme/templates/tests/broken_helper_as_attribute.html
ckanext/d4science_theme/templates/tests/broken_helper_as_item.html
ckanext/d4science_theme/templates/tests/flash_messages.html
ckanext/d4science_theme/templates/tests/helper_as_attribute.html
ckanext/d4science_theme/templates/tests/helper_as_item.html
ckanext/d4science_theme/templates/tests/mock_json_resource_preview_template.html
ckanext/d4science_theme/templates/tests/mock_resource_preview_template.html
ckanext/d4science_theme/templates/type/index.html
ckanext/d4science_theme/templates/type/snippets/helper.html
ckanext/d4science_theme/templates/type/snippets/type_form.html
ckanext/d4science_theme/templates/type/snippets/type_item.html
ckanext/d4science_theme/templates/type/snippets/type_list.html
ckanext/d4science_theme/templates/user/api_tokens.html
ckanext/d4science_theme/templates/user/confirm_delete.html
ckanext/d4science_theme/templates/user/dashboard.html
ckanext/d4science_theme/templates/user/dashboard_datasets.html
ckanext/d4science_theme/templates/user/dashboard_groups.html
ckanext/d4science_theme/templates/user/dashboard_organizations.html
ckanext/d4science_theme/templates/user/edit.html
ckanext/d4science_theme/templates/user/edit_base.html
ckanext/d4science_theme/templates/user/edit_user_form.html
ckanext/d4science_theme/templates/user/followers.html
ckanext/d4science_theme/templates/user/list.html
ckanext/d4science_theme/templates/user/login.html
ckanext/d4science_theme/templates/user/logout.html
ckanext/d4science_theme/templates/user/logout_first.html
ckanext/d4science_theme/templates/user/new.html
ckanext/d4science_theme/templates/user/new_user_form.html
ckanext/d4science_theme/templates/user/perform_reset.html
ckanext/d4science_theme/templates/user/read.html
ckanext/d4science_theme/templates/user/read_base.html
ckanext/d4science_theme/templates/user/request_reset.html
ckanext/d4science_theme/templates/user/snippets/api_token_list.html
ckanext/d4science_theme/templates/user/snippets/followers.html
ckanext/d4science_theme/templates/user/snippets/login_form.html
ckanext/d4science_theme/templates/user/snippets/placeholder.html
ckanext/d4science_theme/templates/user/snippets/recaptcha.html
ckanext/d4science_theme/templates/user/snippets/user_search.html
ckanext/d4science_theme/templates2.6/base.html
ckanext/d4science_theme/templates2.6/footer.html
ckanext/d4science_theme/templates2.6/header.html
ckanext/d4science_theme/templates2.6/page.html
ckanext/d4science_theme/templates2.6/group/read_base.html
ckanext/d4science_theme/templates2.6/group/snippets/group_form.html
ckanext/d4science_theme/templates2.6/group/snippets/group_item.html
ckanext/d4science_theme/templates2.6/group/snippets/group_list.html
ckanext/d4science_theme/templates2.6/group/snippets/group_list_simple.html
ckanext/d4science_theme/templates2.6/group/snippets/group_tree.html
ckanext/d4science_theme/templates2.6/home/index.html
ckanext/d4science_theme/templates2.6/home/layout2.html
ckanext/d4science_theme/templates2.6/home/snippets/featured_organization.html
ckanext/d4science_theme/templates2.6/home/snippets/popular_formats.html
ckanext/d4science_theme/templates2.6/home/snippets/popular_groups.html
ckanext/d4science_theme/templates2.6/home/snippets/popular_metadatatypes.html
ckanext/d4science_theme/templates2.6/home/snippets/popular_tags.html
ckanext/d4science_theme/templates2.6/home/snippets/promoted.html
ckanext/d4science_theme/templates2.6/home/snippets/search.html
ckanext/d4science_theme/templates2.6/home/snippets/search_for_groups.html
ckanext/d4science_theme/templates2.6/home/snippets/search_for_location.html
ckanext/d4science_theme/templates2.6/home/snippets/search_for_organisations.html
ckanext/d4science_theme/templates2.6/home/snippets/search_for_types.html
ckanext/d4science_theme/templates2.6/home/snippets/stats.html
ckanext/d4science_theme/templates2.6/organization/read.html
ckanext/d4science_theme/templates2.6/organization/read_base.html
ckanext/d4science_theme/templates2.6/organization/snippets/organization_item.html
ckanext/d4science_theme/templates2.6/organization_vre/index.html
ckanext/d4science_theme/templates2.6/organization_vre/read.html
ckanext/d4science_theme/templates2.6/package/base.html
ckanext/d4science_theme/templates2.6/package/group_list.html
ckanext/d4science_theme/templates2.6/package/read.html
ckanext/d4science_theme/templates2.6/package/read_base.html
ckanext/d4science_theme/templates2.6/package/resource_edit_base.html
ckanext/d4science_theme/templates2.6/package/resource_read.html
ckanext/d4science_theme/templates2.6/package/search.html
ckanext/d4science_theme/templates2.6/package/snippets/additional_info.html
ckanext/d4science_theme/templates2.6/package/snippets/extras_table.html
ckanext/d4science_theme/templates2.6/package/snippets/info.html
ckanext/d4science_theme/templates2.6/package/snippets/qrcode_show.html
ckanext/d4science_theme/templates2.6/package/snippets/resource_form.html
ckanext/d4science_theme/templates2.6/package/snippets/resource_item.html
ckanext/d4science_theme/templates2.6/package/snippets/resources.html
ckanext/d4science_theme/templates2.6/package/snippets/resources_list.html
ckanext/d4science_theme/templates2.6/snippets/custom_form_fields.html
ckanext/d4science_theme/templates2.6/snippets/facet_list.html
ckanext/d4science_theme/templates2.6/snippets/package_item.html
ckanext/d4science_theme/templates2.6/snippets/tag_list.html
ckanext/d4science_theme/templates2.6/type/index.html
ckanext/d4science_theme/templates2.6/type/snippets/helper.html
ckanext/d4science_theme/templates2.6/type/snippets/type_form.html
ckanext/d4science_theme/templates2.6/type/snippets/type_item.html
ckanext/d4science_theme/templates2.6/type/snippets/type_list.html
ckanext/d4science_theme/templates2.6/user/dashboard.html
ckanext/d4science_theme/templates2.6/user/dashboard_datasets.html
ckanext/d4science_theme/templates2.6/user/dashboard_groups.html
ckanext/d4science_theme/templates2.6/user/dashboard_organizations.html
ckanext/d4science_theme/tests/__init__.py
ckanext/d4science_theme/tests/test_plugin.py
ckanext_d4science_theme.egg-info/PKG-INFO
ckanext_d4science_theme.egg-info/SOURCES.txt
ckanext_d4science_theme.egg-info/dependency_links.txt
ckanext_d4science_theme.egg-info/entry_points.txt
ckanext_d4science_theme.egg-info/top_level.txt

View File

@ -0,0 +1,5 @@
[babel.extractors]
ckan = ckan.lib.extract:extract_ckan
[ckan.plugins]
d4science_theme = ckanext.d4science_theme.plugin:D4Science_ThemePlugin

View File

@ -0,0 +1 @@
ckanext