Open KatiRG opened 2 years ago
Adjustments to do:
Replacing ResourceUpload
library with ResourceCloudStorage
in plugin.py
throws a few things off:
add a check in get_translated()
in helpers.py
because sometimes the dictionary element is contained in a string for some fields:
def get_translated(data_dict, field):
language = i18n.get_lang()
try:
return eval(data_dict[field + u'_translated'])[language] if isinstance(data_dict[field + u'_translated'], str) else data_dict[field + u'_translated'][language]
except KeyError:
val = data_dict.get(field, '')
return _(val) if val and isinstance(val, string_types) else val
get_date_range()
in plugin.py()
no longer properly handles null dates, so checks need to be added
Cloudstorage installed out of the box works with vanilla ckan but not ontario_theme.
Some issues:
openssl
and withmkcert
:uwsgi.ERR
)