Skip to content

Instantly share code, notes, and snippets.

View amercader's full-sized avatar
🦃

Adrià Mercader amercader

🦃
View GitHub Profile
{
"error-count": 76,
"errors": [],
"table-count": 10,
"tables": [
{
"error-count": 13,
"errors": [
{
"code": "duplicate-row",

Keybase proof

I hereby claim:

  • I am amercader on github.
  • I am amercader (https://keybase.io/amercader) on keybase.
  • I have a public key ASBdePajQIZ3LKa0i4vFYfq-_kpYVHeop-jvP1Bw5RL1Mgo

To claim this, I am signing this object:

diff --git a/ckan/controllers/admin.py b/ckan/controllers/admin.py
index ed295d5..d2895a4 100644
--- a/ckan/controllers/admin.py
+++ b/ckan/controllers/admin.py
@@ -50,7 +50,8 @@ class AdminController(base.BaseController):
{'name': 'ckan.site_title', 'control': 'input', 'label': _('Site Title'), 'placeholder': ''},
{'name': 'ckan.main_css', 'control': 'select', 'options': styles, 'label': _('Style'), 'placeholder': ''},
{'name': 'ckan.site_description', 'control': 'input', 'label': _('Site Tag Line'), 'placeholder': ''},
- {'name': 'ckan.site_logo', 'control': 'image_upload', 'label': _('Site Tag Logo'), 'placeholder': '', 'upload_enabled':h.uploads_enabled()},
+ {'name': 'ckan.site_logo', 'control': 'image_upload', 'label': _('Site Tag Logo'), 'placeholder': '', 'upload_enabled':h.uploads_enabled(),
Make resource name default to file name (#1372)
Invite to organization has hard-coded email text (#1527)
change solrpy library to pysolr (#2352)
cache sql query results using dogpile/beaker (#2353)
Tag Pagination Widget (#2399)
[#2482] Remove schema before creating views (#2484)
2478 licenses more specific (#2485)
more package controller tests (#2544)
Minimum Postgresql version increased to 9.2 (#2555)
File Upload UX issue (#2604)
val = callable(*args, **kw)
File "/home/adria/dev/pyenvs/ckan_newreqs/src/ckan/ckan/config/middleware.py", line 49, in make_app
pylons_app = make_pylons_stack(conf, full_stack, static_files, **app_conf)
File "/home/adria/dev/pyenvs/ckan_newreqs/src/ckan/ckan/config/middleware.py", line 145, in make_pylons_stack
who_parser.parse(open(app_conf['who.config_file']))
File "/home/adria/dev/pyenvs/ckan_newreqs/local/lib/python2.7/site-packages/repoze/who/config.py", line 87, in parse
obj = self._makePlugin(name, IPlugin, options)
File "/home/adria/dev/pyenvs/ckan_newreqs/local/lib/python2.7/site-packages/repoze/who/config.py", line 41, in _makePlugin
obj = _resolve(name)
File "/home/adria/dev/pyenvs/ckan_newreqs/local/lib/python2.7/site-packages/repoze/who/config.py", line 24, in _resolve
@amercader
amercader / gist:9447df4be83cd90f7e5d8561f1e9876f
Created June 16, 2016 10:31
g occurrences outside templates
ckan/ckan/controllers/group.py
313: for facet in g.facets:
359: g.facets_default_number))
ckan/ckan/lib/helpers.py
880: exclude = g.package_hide_extras
ckan/ckan/controllers/feed.py
295: 'updated datasets on %s' % g.site_title,
342: feed_title=u'%s - Custom query' % g.site_title,
@amercader
amercader / gist:ce218a4b9271cb6188f47162b5cf29c7
Created June 16, 2016 10:28
g occurrences in CKAN templates
ckan/ckan/templates/home/snippets/promoted.html
1:{% set intro = g.site_intro_text %}
ckan/ckan/templates/home/about.html
13: {% if g.site_about %}
ckan/ckan/templates/home/index.html
2:{% set homepage_style = ( g.homepage_style or '1' ) %}
ckan/ckan/templates/user/new_user_form.html
@amercader
amercader / e.py
Created May 12, 2016 12:06
Reference exceptions on ipdb
# Thanks to http://stackoverflow.com/questions/20797923/get-reference-to-the-current-exception
import sys
import traceback
!exc_type, exc_value, exc_traceback = sys.exc_info()
traceback.print_exception(exc_type, exc_value, exc_traceback)
@amercader
amercader / gist:77a14df30ea12ee6b67ba0bd0e662a22
Created April 28, 2016 11:21
i18n strings with %s i18n strings
msgid "Authorization function not found: %s"
"Cannot purge package %s as associated revision %s includes non-deleted "
"packages %s"
msgid "Problem purging revision %s: %s"
msgid "Action name not known: %s"
msgid "JSON Error: %s"
msgid "Bad request data: %s"
msgid "Cannot list entity of this type: %s"
msgid "Cannot read entity of this type: %s"
msgid "Cannot create new entity of this type: %s %s"
diff --git a/rtei/migrations/0011_blogpage_intro_multilingual.py b/rtei/migrations/0011_blogpage_intro_multilingual.py
new file mode 100644
index 0000000..c32ae8d
--- /dev/null
+++ b/rtei/migrations/0011_blogpage_intro_multilingual.py
@@ -0,0 +1,37 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.9.2 on 2016-03-04 12:00
+from __future__ import unicode_literals
+