Skip to content

Commit

Permalink
Merge branch 'dev-v2.6' into 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Jul 3, 2019
2 parents dd0d651 + 60b98f9 commit 8cd97fd
Show file tree
Hide file tree
Showing 164 changed files with 8,043 additions and 7,741 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -7,6 +7,23 @@
Changelog
---------

v.2.6.8 2019-07-03
==================

General notes:
* Note: This version does not requires a requirements upgrade on source installations
* Note: This version does not requires a database upgrade
* Note: This version does not require a Solr schema upgrade

Fixes:

* Fix broken div nesting in the `user/read_base.html` (`#4672 <https://github.com/ckan/ckan/issues/4672>`_)
* Strip local path when uploading file in IE (`#4608 <https://github.com/ckan/ckan/issues/4608>`_)
* Increase size of h1 headings to 1.8em (`#4665 <https://github.com/ckan/ckan/issues/4665>`_)
* Fix `ValueError` in `url_validator` (`#4629 <https://github.com/ckan/ckan/issues/4629>`_)
* More robust auth functions for `resource_view_show` (`#4827 <https://github.com/ckan/ckan/issues/4827>`_)
* Allow to customize the DataProxy URL (`#4874 <https://github.com/ckan/ckan/issues/4874>`_)
* Allow custom CKAN callback URL for the DataPusher (`#4878 <https://github.com/ckan/ckan/issues/4878>`_)

v2.6.7 2018-12-12
=================
Expand Down
2 changes: 1 addition & 1 deletion ckan/__init__.py
@@ -1,6 +1,6 @@
# encoding: utf-8

__version__ = '2.6.7'
__version__ = '2.6.8'

__description__ = 'CKAN Software'
__long_description__ = \
Expand Down
204 changes: 101 additions & 103 deletions ckan/i18n/ar/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

389 changes: 194 additions & 195 deletions ckan/i18n/bg/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

457 changes: 229 additions & 228 deletions ckan/i18n/ca/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

397 changes: 200 additions & 197 deletions ckan/i18n/cs_CZ/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

322 changes: 159 additions & 163 deletions ckan/i18n/da_DK/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

432 changes: 217 additions & 215 deletions ckan/i18n/de/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

492 changes: 250 additions & 242 deletions ckan/i18n/el/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

357 changes: 175 additions & 182 deletions ckan/i18n/en_AU/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

361 changes: 177 additions & 184 deletions ckan/i18n/en_GB/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

466 changes: 236 additions & 230 deletions ckan/i18n/es/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

465 changes: 232 additions & 233 deletions ckan/i18n/es_AR/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

415 changes: 207 additions & 208 deletions ckan/i18n/fa_IR/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

376 changes: 189 additions & 187 deletions ckan/i18n/fi/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

513 changes: 258 additions & 255 deletions ckan/i18n/fr/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

297 changes: 149 additions & 148 deletions ckan/i18n/he/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

338 changes: 168 additions & 170 deletions ckan/i18n/hr/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

201 changes: 100 additions & 101 deletions ckan/i18n/hu/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

217 changes: 108 additions & 109 deletions ckan/i18n/id/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

343 changes: 170 additions & 173 deletions ckan/i18n/is/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

441 changes: 220 additions & 221 deletions ckan/i18n/it/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

212 changes: 106 additions & 106 deletions ckan/i18n/ja/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

210 changes: 105 additions & 105 deletions ckan/i18n/km/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

289 changes: 141 additions & 148 deletions ckan/i18n/ko_KR/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

271 changes: 132 additions & 139 deletions ckan/i18n/lt/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

383 changes: 191 additions & 192 deletions ckan/i18n/lv/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

344 changes: 174 additions & 170 deletions ckan/i18n/mn_MN/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

348 changes: 175 additions & 173 deletions ckan/i18n/nl/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

371 changes: 182 additions & 189 deletions ckan/i18n/no/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

213 changes: 106 additions & 107 deletions ckan/i18n/pl/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

430 changes: 216 additions & 214 deletions ckan/i18n/pt_BR/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

446 changes: 219 additions & 227 deletions ckan/i18n/pt_PT/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

249 changes: 123 additions & 126 deletions ckan/i18n/ro/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

277 changes: 133 additions & 144 deletions ckan/i18n/ru/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

398 changes: 197 additions & 201 deletions ckan/i18n/sk/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

364 changes: 179 additions & 185 deletions ckan/i18n/sl/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

329 changes: 166 additions & 163 deletions ckan/i18n/sq/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

218 changes: 107 additions & 111 deletions ckan/i18n/sr/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

217 changes: 106 additions & 111 deletions ckan/i18n/sr_Latn/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

385 changes: 191 additions & 194 deletions ckan/i18n/sv/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

234 changes: 118 additions & 116 deletions ckan/i18n/th/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

199 changes: 99 additions & 100 deletions ckan/i18n/tr/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

426 changes: 197 additions & 229 deletions ckan/i18n/uk_UA/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

354 changes: 174 additions & 180 deletions ckan/i18n/vi/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

263 changes: 129 additions & 134 deletions ckan/i18n/zh_CN/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

223 changes: 110 additions & 113 deletions ckan/i18n/zh_TW/LC_MESSAGES/ckan.po

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion ckan/logic/auth/get.py
Expand Up @@ -152,7 +152,15 @@ def resource_show(context, data_dict):


def resource_view_show(context, data_dict):
return authz.is_authorized('resource_show', context, data_dict)

model = context['model']

resource_view = model.ResourceView.get(data_dict['id'])
if not resource_view:
raise logic.NotFound(_('Resource view not found, cannot check auth.'))
resource = model.Resource.get(resource_view.resource_id)

return authz.is_authorized('resource_show', context, {'id': resource.id})


def resource_view_list(context, data_dict):
Expand Down
17 changes: 9 additions & 8 deletions ckan/logic/validators.py
Expand Up @@ -681,18 +681,19 @@ def url_validator(key, data, errors, context):
import urlparse
import string

model = context['model']
session = context['session']

url = data.get(key, None)
if not url:
return

pieces = urlparse.urlparse(url)
if all([pieces.scheme, pieces.netloc]) and \
set(pieces.netloc) <= set(string.letters + string.digits + '-.') and \
pieces.scheme in ['http', 'https']:
return
try:
pieces = urlparse.urlparse(url)
if all([pieces.scheme, pieces.netloc]) and \
set(pieces.netloc) <= set(string.letters + string.digits + '-.') and \
pieces.scheme in ['http', 'https']:
return
except ValueError:
# url is invalid
pass

errors[key].append(_('Please provide a valid URL'))

Expand Down
2 changes: 1 addition & 1 deletion ckan/public/base/css/fuchsia.css
Expand Up @@ -9226,7 +9226,7 @@ iframe {
border: none;
}
.embedded-content h1 {
font-size: 1.4em;
font-size: 1.8em;
}
.embedded-content h2 {
font-size: 1.4em;
Expand Down
2 changes: 1 addition & 1 deletion ckan/public/base/css/fuchsia.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ckan/public/base/css/green.css
Expand Up @@ -9226,7 +9226,7 @@ iframe {
border: none;
}
.embedded-content h1 {
font-size: 1.4em;
font-size: 1.8em;
}
.embedded-content h2 {
font-size: 1.4em;
Expand Down
2 changes: 1 addition & 1 deletion ckan/public/base/css/green.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ckan/public/base/css/main.css
Expand Up @@ -9226,7 +9226,7 @@ iframe {
border: none;
}
.embedded-content h1 {
font-size: 1.4em;
font-size: 1.8em;
}
.embedded-content h2 {
font-size: 1.4em;
Expand Down
2 changes: 1 addition & 1 deletion ckan/public/base/css/main.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ckan/public/base/css/maroon.css
Expand Up @@ -9226,7 +9226,7 @@ iframe {
border: none;
}
.embedded-content h1 {
font-size: 1.4em;
font-size: 1.8em;
}
.embedded-content h2 {
font-size: 1.4em;
Expand Down
2 changes: 1 addition & 1 deletion ckan/public/base/css/maroon.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ckan/public/base/css/red.css
Expand Up @@ -9226,7 +9226,7 @@ iframe {
border: none;
}
.embedded-content h1 {
font-size: 1.4em;
font-size: 1.8em;
}
.embedded-content h2 {
font-size: 1.4em;
Expand Down
2 changes: 1 addition & 1 deletion ckan/public/base/css/red.min.css

Large diffs are not rendered by default.

218 changes: 218 additions & 0 deletions ckan/public/base/i18n/am.js
@@ -0,0 +1,218 @@
{
"": {
"domain": "ckan",
"lang": "am",
"plural-forms": "nplurals=2; plural=(n > 1);"
},
"%(color)s shirt": [
"%(color)s shirts",
"%(color)s ሸሚዝ",
"%(color)s ሸሚዞች"
],
"%(num)d item": [
"%(num)d items",
"%(num)d እቃ",
"%(num)d እቃዎች"
],
"%(num)d missing translation": [
"%(num)d missing translations",
"%(num)d ትርጉም የሌለው",
"%(num)d ትርጉም የሌላቸው"
],
"Add Filter": [
null,
"ማጣሪያ ጨምር"
],
"An Error Occurred": [
null,
"ስህተት ተፈጥሯል"
],
"Are you sure you want to perform this action?": [
null,
" ይህንን እርምጃ ማከናወን መፈለግዎን እርግጠኛ ነዎት?"
],
"Cancel": [
null,
"ሰርዝ"
],
"Confirm": [
null,
"አረጋግጥ"
],
"Could not load view": [
null,
"እይታን መጫን አልቻለም"
],
"DataProxy returned an error": [
null,
"የመረጃ ተኪው(DataProxy) ስህተት መልሷል"
],
"DataStore returned an error": [
null,
"የመረጃ ማከማቻው(DataStore) ስህተት መልሷል"
],
"Edit": [
null,
"አድስ"
],
"Failed to load data API information": [
null,
"የኤፒአይ መረጃ መጫን አልተሳካም"
],
"File": [
null,
"ፋይል"
],
"Filters": [
null,
"ማጣሪያዎች"
],
"Follow": [
null,
"ተከተል"
],
"Graph": [
null,
"ግራፍ"
],
"Grid": [
null,
"ፍርግርግ"
],
"Hide": [
null,
"ደብቅ"
],
"Image": [
null,
"ምስል"
],
"Input is too short, must be at least one character": [
"Input is too short, must be at least %(num)d characters",
"ግብዓቱ በጣም አጭር ነው ፤ ቢያንስ አንድ ቁምፊ(ትዕምርት) መሆን አለበት",
"ግብዓቱ በጣም አጭር ነው ፤ ቢያንስ %(num)d ቁምፊዎች(ትዕምርቶች) መሆን አለበት"
],
"Link": [
null,
"አገናኝ(ሊንክ)"
],
"Link to a URL on the internet (you can also link to an API)": [
null,
"በኢንተርኔት ላይ ወደ ዩአርኤል አገናኝ (ወደ ኤ.ፒ.አይ መገናኘት ይችላሉ)"
],
"Loading...": [
null,
"በመጫን ላይ"
],
"Map": [
null,
"ካርታ"
],
"No matches found": [
null,
"ምንም ተዛማጆች አልተገኙም"
],
"Please Confirm Action": [
null,
"እባክዎን እርምጃውን(ድርጊቱን) ያረጋግጡ"
],
"Remove": [
null,
"አስወግድ"
],
"Resource uploaded": [
null,
"የመረጃ ምንጩ ተቀምⶆል"
],
"Save order": [
null,
"ቅደም-ተከተሉን አስቀምጥ"
],
"Saving...": [
null,
"እያስቀመጠ..."
],
"Select a field": [
null,
"መስክ ምረጥ"
],
"Show more": [
null,
"ተጨማሪ አሳይ"
],
"Start typing…": [
null,
"መተየብ(መጻፍ) ይጀምሩ..."
],
"There are unsaved modifications to this form": [
null,
"በዚህ ቅጽ ላይ ያልተቀመጡ(ያልተያዙ) ለውጦች አሉ"
],
"There is no API data to load for this resource": [
null,
"ለዚህ የመረጃ-ምንጭ ምንም የሚጫን የኤፒአይ መረጃ የለም"
],
"URL": [
null,
"ዩአርኤል"
],
"Unable to authenticate upload": [
null,
"ማስቀመጡን ማረጋገጥ አልተቻለም"
],
"Unable to get data for uploaded file": [
null,
"ለተቀመጠው ፋይል መረጃ ለማግኘት አልተቻለም"
],
"Unable to upload file": [
null,
"ፋይል ማስቀመጥ አልተቻለም"
],
"Unfollow": [
null,
"አትከተል"
],
"Upload": [
null,
"አስቀምጥ"
],
"Upload a file": [
null,
"ፋይል አስቀምጥ"
],
"Upload a file on your computer": [
null,
"በኮምፒዩተርዎ ውስጥ ያለ ፋይል ያስቀምጡ"
],
"You are uploading a file. Are you sure you want to navigate away and stop this upload?": [
null,
"ፋይል እያስቀመጡ ነው ፤ ወደ ሌላ ቦታ መሄድ ማስቆም እንደሚፈልጉ እርግጠኛ ነዎት?"
],
"bar": [
"bars",
"ባር",
"ባሮች"
],
"error loading view": [
null,
"እይታን በመጫን ላይ የተፈጠረ ስህተት"
],
"foo": [
null,
"ፎ.."
],
"hello %(name)s!": [
null,
"ሰላም %(name)s!"
],
"no %(attr)s translation": [
"no %(attr)s translations",
"ምንም %(attr)s ትርጉም የለም",
"ምንም %(attr)s ትርጉሞች የሉም"
],
"no translation": [
"no translations",
"ምንም ትርጉም የለም",
"ምንም ትርጉሞች የሉም"
]
}
1 change: 1 addition & 0 deletions ckan/public/base/i18n/am.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ckan/public/base/i18n/ar.js
Expand Up @@ -2,7 +2,7 @@
"": {
"domain": "ckan",
"lang": "ar",
"plural-forms": "nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5"
"plural-forms": "nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;"
},
"Cancel": [
null,
Expand Down
2 changes: 1 addition & 1 deletion ckan/public/base/i18n/ar.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ckan/public/base/i18n/bg.js
Expand Up @@ -2,7 +2,7 @@
"": {
"domain": "ckan",
"lang": "bg",
"plural-forms": "nplurals=2; plural=(n != 1)"
"plural-forms": "nplurals=2; plural=(n != 1);"
},
"An Error Occurred": [
null,
Expand Down
2 changes: 1 addition & 1 deletion ckan/public/base/i18n/bg.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ckan/public/base/i18n/ca.js
Expand Up @@ -2,7 +2,7 @@
"": {
"domain": "ckan",
"lang": "ca",
"plural-forms": "nplurals=2; plural=(n != 1)"
"plural-forms": "nplurals=2; plural=(n != 1);"
},
"An Error Occurred": [
null,
Expand Down

0 comments on commit 8cd97fd

Please sign in to comment.