The Open Source platform for Open Data: https://ckan.org | *NOT* related to Kerbal Space Program | Come to our dev meetings: https://hack.allmende.io/ckan-meeting
smotornyuk on typing
Update type_checks task (compare)
smotornyuk on drop-rjsmin-rcssmin
Remove rjsmin and jrcssmin beca… (compare)
smotornyuk on typing
Remove paster template of ckane… Merge pull request #6011 from c… Merge remote-tracking branch 'o… and 3 more (compare)
toolkit.add_resource('public', 'ka')
{% block styles %}
{{ super() }}
{% asset 'ka/ka.css' %}
{% endblock %}
All the static CSS/JS files must be bundled via a webassets.yml file, as opposed to the previously used, optional resource.config file. Check the Assets documentation for more details. (#4614)
It is important to note that these assets will be added to the page as defined by the assets configuration, not in the location of the {% asset %} tag. Duplicate assets will not be added and any dependencies will be included as well as the assets, all in the correct order (see below for details).
interesting
Exception on /job/52ac3647-4930-4b0f-b837-3d597d2df456 [GET]
Traceback (most recent call last):
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/ckanserviceprovider/web.py", line 442, in job_status
job_dict = db.get_job(job_id, limit=limit)
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/ckanserviceprovider/db.py", line 158, in get_job
JOBS_TABLE.select().where(JOBS_TABLE.c.job_id == job_id)).first()
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2235, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1011, in execute
return meth(self, multiparams, params)
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/sql/elements.py", line 298, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1130, in _execute_clauseelement
distilled_params,
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1317, in _execute_context
e, statement, parameters, cursor, context
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1511, in _handle_dbapi_exception
sqlalchemy_exception, with_traceback=exc_info[2], from_=e
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1277, in _execute_context
cursor, statement, parameters, context
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 608, in do_execute
cursor.execute(statement, parameters)
OperationalError: (sqlite3.OperationalError) no such table: jobs
[SQL: SELECT jobs.job_id, jobs.job_type, jobs.status, jobs.data, jobs.error, jobs.requested_timestamp, jobs.finished_timestamp, jobs.sent_data, jobs.result_url, jobs.api_key, jobs.job_key
FROM jobs
WHERE jobs.job_id = ?]
[parameters: ('52ac3647-4930-4b0f-b837-3d597d2df456',)]
(Background on this error at: http://sqlalche.me/e/13/e3q8)
Process completed but unable to post to result_url
curl localhost:8800
{"help":"\n Get help at:\n http://ckan-service-provider.readthedocs.org/."}
[pid: 28521|app: 0|req: 9/9] 127.0.0.1 () {36 vars in 540 bytes} [Mon Apr 12 12:48:29 2021] GET /job/52ac3647-4930-4b0f-b837-3d597d2df456 => generated 29 bytes in 1 msecs (HTTP/1.1 404) 2 headers in 78 bytes (1 switches on core 0)
`
the request hits datapusher