Skip to content

Commit

Permalink
Migrate to CKAN 2.9.4 & python 3.7, following process at ozwillo/ckan…
Browse files Browse the repository at this point in the history
  • Loading branch information
mdutoo committed Dec 6, 2021
1 parent 02378c7 commit 5bd2449
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions ckanext/location/assets/webassets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
location_bar:
output: ckanext-ozwillo-theme/%(version)s_location
contents:
- location_loadbar.css
- location_showbar.js

6 changes: 3 additions & 3 deletions ckanext/location/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import ckan.plugins as plugins
import ckan.plugins.toolkit as toolkit
from ckan.lib.plugins import DefaultTranslation
from location import geores
from .location import geores
import os
import logging

Expand Down Expand Up @@ -80,7 +80,7 @@ def upload(self, id, max_size=10):
if self.filename:
try:
os.makedirs(directory)
except OSError, e:
except OSError as e:
# errno 17 is file already exists
if e.errno != 17:
raise
Expand Down Expand Up @@ -116,5 +116,5 @@ def upload(self, id, max_size=10):
if self.clear:
try:
os.remove(filepath)
except OSError, e:
except OSError as e:
pass
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
{% endblock basic_fields %}

{% block add_button %}
{% resource 'location/location_loadbar.css' %}
{% resource 'location/location_showbar.js' %}
{% asset 'location/location_bar' %}

<div id="progress">
<div class="loader"></div>
Expand Down

0 comments on commit 5bd2449

Please sign in to comment.