Skip to content

Commit 384b842

Browse files
authored
renamed extention
1 parent 2d20984 commit 384b842

File tree

15 files changed

+50
-50
lines changed

15 files changed

+50
-50
lines changed

.github/workflows/pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
#
5252
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
5353
# ALTERNATIVE: exactly, uncomment the following line instead:
54-
url: https://pypi.org/project/${GITHUB_REPOSITORY#*/}-addon/${{ github.event.release.name }}
54+
url: https://pypi.org/project/${GITHUB_REPOSITORY#*/}/${{ github.event.release.name }}
5555

5656
steps:
5757
- name: Retrieve release distributions
@@ -88,7 +88,7 @@ jobs:
8888

8989
environment:
9090
name: testpypi
91-
url: https://test.pypi.org/p/${GITHUB_REPOSITORY#*/}-addon
91+
url: https://test.pypi.org/p/${GITHUB_REPOSITORY#*/}
9292

9393
permissions:
9494
id-token: write # IMPORTANT: mandatory for trusted publishing

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
run: |
6969
ckan -c test.ini db init
7070
- name: Run tests
71-
run: pytest --ckan-ini=test.ini --cov=ckanext.multiuploader --disable-warnings ckanext/multiuploader || ([ $? = 5 ] && exit 0 || exit $?)
71+
run: pytest --ckan-ini=test.ini --cov=ckanext.multiuploadform --disable-warnings ckanext/multiuploadform || ([ $? = 5 ] && exit 0 || exit $?)
7272
- name: Upload coverage report to codecov
7373
uses: codecov/codecov-action@v1
7474
with:

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
include README.rst
22
include LICENSE
33
include requirements.txt
4-
recursive-include ckanext/multiuploader *.html *.json *.js *.less *.css *.mo
4+
recursive-include ckanext/multiuploadform *.html *.json *.js *.less *.css *.mo

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
[![Tests](https://github.com/Mat-O-Lab/ckanext-multiuploader/actions/workflows/test.yml/badge.svg)](https://github.com/Mat-O-Lab/ckanext-multiuploader/actions/workflows/test.yml)
1+
[![Tests](https://github.com/Mat-O-Lab/ckanext-multiuploadform/actions/workflows/test.yml/badge.svg)](https://github.com/Mat-O-Lab/ckanext-multiuploadform/actions/workflows/test.yml)
22

3-
# ckanext-multiuploader-addon
3+
# ckanext-multiuploadform
44

55
This CKAN extension helps users to upload multiple resources at once with drag&drop. It adds an extra form for uploadig multiple files and leaves the vanilla one untouched.
66

@@ -31,9 +31,9 @@ To install the extension:
3131
```
3232
2. Use pip to install package
3333
```bash
34-
pip install ckanext-multiuploader-addon
34+
pip install ckanext-multiuploadform
3535
```
36-
3. Add `multiuploader` to the `ckan.plugins` setting in your CKAN
36+
3. Add `multiuploadform` to the `ckan.plugins` setting in your CKAN
3737
   config file (by default the config file is located at
3838
   `/etc/ckan/default/ckan.ini`).
3939

@@ -51,11 +51,11 @@ ckan.max_resource_size
5151

5252
## Developer installation
5353

54-
To install ckanext-multiuploader-addon for development, activate your CKAN virtualenv and
54+
To install ckanext-multiuploadform for development, activate your CKAN virtualenv and
5555
do:
5656
```bash
57-
git clone https://github.com/Mat-O-Lab/ckanext-multiuploader.git
58-
cd ckanext-multiuploader
57+
git clone https://github.com/Mat-O-Lab/ckanext-multiuploadform.git
58+
cd ckanext-multiuploadform
5959
python setup.py develop
6060
pip install -r dev-requirements.txt
6161
```
@@ -68,4 +68,4 @@ pytest --ckan-ini=test.ini
6868
```
6969

7070
# Acknowledgments
71-
The authors would like to thank the developers of the original project https://github.com/TIBHannover/ckanext-multiuploader.
71+
The authors would like to thank the developers of the original project https://github.com/TIBHannover/ckanext-multiuploadform.

ckanext/multiuploader/controllers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from flask import request
44
import ckan.lib.helpers as h
5-
from ckanext.multiuploader.lib import Helper
5+
from ckanext.multiuploadform.lib import Helper
66
import ckan.plugins.toolkit as toolkit
77
log = __import__("logging").getLogger(__name__)
88

ckanext/multiuploader/plugin.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
import ckan.plugins as plugins
44
import ckan.plugins.toolkit as toolkit
5-
from ckanext.multiuploader.controllers import UploadController
6-
from ckanext.multiuploader import views
5+
from ckanext.multiuploadform.controllers import UploadController
6+
from ckanext.multiuploadform import views
77

88

9-
class MultiuploaderPlugin(plugins.SingletonPlugin):
9+
class multiuploadformPlugin(plugins.SingletonPlugin):
1010
plugins.implements(plugins.IConfigurer)
1111
plugins.implements(plugins.IBlueprint)
1212
plugins.implements(plugins.ITemplateHelpers)
@@ -16,8 +16,8 @@ class MultiuploaderPlugin(plugins.SingletonPlugin):
1616
def update_config(self, config_):
1717
toolkit.add_template_directory(config_, "templates")
1818
toolkit.add_public_directory(config_, "public")
19-
toolkit.add_resource("fanstatic", "multiuploader")
20-
toolkit.add_resource("public/statics", "ckanext-multiuploader")
19+
toolkit.add_resource("fanstatic", "multiuploadform")
20+
toolkit.add_resource("public/statics", "ckanext-multiuploadform")
2121

2222
# IBlueprint
2323

ckanext/multiuploader/public/statics/webassets.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
my-css:
2-
output: ckanext-multiuploader/%(version)s_my.css
2+
output: ckanext-multiuploadform/%(version)s_my.css
33
contents:
44
- multi_uploader.css
55

66

77
my-js:
8-
output: ckanext-multiuploader/%(version)s_my.js
8+
output: ckanext-multiuploadform/%(version)s_my.js
99
extra:
1010
preload:
1111
- base/main

ckanext/multiuploader/templates/multiuploader/snippets/multiupload_form.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
{% asset 'ckanext-multiuploader/my-css' %}
2-
{% asset 'ckanext-multiuploader/my-js' %}
1+
{% asset 'ckanext-multiuploadform/my-css' %}
2+
{% asset 'ckanext-multiuploadform/my-js' %}
33

44

55
{% import 'macros/form.html' as form %}
66

77
{% set data = data or {} %}
88
{% set errors = errors or {} %}
9-
{% set action = h.url_for('multiuploader.upload_resources', _external=True) %}
10-
{% set cancelUrl = h.url_for('multiuploader.delete_uploaded_resources', _external=True) %}
9+
{% set action = h.url_for('multiuploadform.upload_resources', _external=True) %}
10+
{% set cancelUrl = h.url_for('multiuploadform.delete_uploaded_resources', _external=True) %}
1111

1212
<input type="hidden" value="{{action}}" id="dest_url">
1313
<input type="hidden" value="{{cancelUrl}}" id="cancel_upload_url">
@@ -19,7 +19,7 @@
1919
<div class="alert alert-danger" id="file-danger-size">
2020
{{_('Please check your file(s) size. Each file has to be less than ' ) + h.get_max_upload_size() + ' GB'}}
2121
</div>
22-
{% snippet 'multiuploader/snippets/progress_bar_modal.html' %}
22+
{% snippet 'multiuploadform/snippets/progress_bar_modal.html' %}
2323

2424
<form id="resource-edit" class="dataset-form dataset-resource-form" method="post" action=""
2525
data-module="basic-form resource-form" enctype="multipart/form-data">
@@ -122,7 +122,7 @@
122122

123123
{% if stage %}
124124
{% block save_button %}
125-
<button id="ckanext_multiuploader_finish" class="btn btn-primary" name="Csave" value="go-metadata"
125+
<button id="ckanext_multiuploadform_finish" class="btn btn-primary" name="Csave" value="go-metadata"
126126
type="submit">{% block save_button_text %}{{ _('Finish') }}{% endblock %}</button>
127127
{% endblock %}
128128
{% else %}

ckanext/multiuploader/templates/package/new_resource.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<ul class="nav nav-tabs">
1111
{% block content_primary_nav %}
1212
{{ h.build_nav_icon('resource.new', _('Add single'), id=pkg.name, icon='plus') }}
13-
{{ h.build_nav_icon('multiuploader.resource_view', _('Multi Upload'), id=pkg.name, icon='upload') }}
13+
{{ h.build_nav_icon('multiuploadform.resource_view', _('Multi Upload'), id=pkg.name, icon='upload') }}
1414
{% endblock %}
1515
</ul>
1616
</header>

ckanext/multiuploader/templates/package/new_resource_not_draft.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{% block content_primary_nav %}
44
{{ super() }}
5-
{{ h.build_nav_icon('multiuploader.resource_view', _('Multi Upload'), id=pkg.name, icon='upload') }}
5+
{{ h.build_nav_icon('multiuploadform.resource_view', _('Multi Upload'), id=pkg.name, icon='upload') }}
66
<script>
77
document.addEventListener('DOMContentLoaded', function () {
88
// Replace the button with id "replace-button" after the content is loaded

0 commit comments

Comments
 (0)