ThrawnCA

Results 345 comments of ThrawnCA

Would it be feasible for an extension to support both old and new CKAN versions with a snippet like this? {% if csrf_token is defined %} {{ csrf_token() }} {%...

The lint checker objects to the non-unicode literal string...is there a way to mark that line as an exception? Alternatively, the documentation for the datetime library indicates that `str(datetime)` is...

https://github.com/qld-gov-au/ckan/pull/47/commits/c2f5fa4e5934e89ac1469fb2516896e53ec19ecf fixes it on our fork.

The field is specifically called *metadata* modified, so I don't think it should be updated if eg a new version of a file is uploaded. Our primary interest is to...

> @ThrawnCA maybe those signals could be used on extension level using the [`ISignal`](https://github.com/ckan/ckan/blob/master/ckan/plugins/interfaces.py#L2073) interface to check if you need to modify the field I'm not sure how that would...

In case it's relevant to anyone, serving `robots.txt` from the templates directory can be re-enabled with a blueprint rule similar to: blueprint.add_url_rule(u'/robots.txt', 'robots', view_func=lambda: render('robots.txt')) (Also, if the `robots.txt` file...

Is there anything that the DataPusher does better than XLoader? Offhand I couldn't cite anything.

Further investigation has revealed that CKAN uses "Cache-Control: private" whenever a user is logged in, meaning that pages will be cached in the browser but not publicly. This ensures that...

> @ThrawnCA If this is a concern for your site one fix could be to use response headers to disable caching for all pages when a user is logged in....

@pdelboca I have devised a workaround to detect the major stale caching problem. When rendering the login link, it includes JavaScript that sends a HEAD request to the dashboard, to...