Skip to content

Commit

Permalink
Merge pull request #1291 from okfn/1274-multilingual-organizations
Browse files Browse the repository at this point in the history
Multilingual organizations
  • Loading branch information
johnglover committed Oct 28, 2013
2 parents e4fc2fa + 3be621a commit d52345b
Show file tree
Hide file tree
Showing 3 changed files with 194 additions and 139 deletions.
1 change: 0 additions & 1 deletion ckan/tests/test_coding_standards.py
Expand Up @@ -828,7 +828,6 @@ class TestPep8(object):
'ckanext/example_idatasetform/plugin.py',
'ckanext/example_itemplatehelpers/plugin.py',
'ckanext/multilingual/plugin.py',
'ckanext/multilingual/tests/test_multilingual_plugin.py',
'ckanext/reclinepreview/plugin.py',
'ckanext/reclinepreview/tests/test_preview.py',
'ckanext/resourceproxy/plugin.py',
Expand Down
3 changes: 2 additions & 1 deletion ckanext/multilingual/plugin.py
@@ -1,7 +1,7 @@
import sets
import ckan
from ckan.plugins import SingletonPlugin, implements, IPackageController
from ckan.plugins import IGroupController, ITagController
from ckan.plugins import IGroupController, IOrganizationController, ITagController
import pylons
import ckan.logic.action.get as action_get
from pylons import config
Expand Down Expand Up @@ -253,6 +253,7 @@ class MultilingualGroup(SingletonPlugin):
'''
implements(IGroupController, inherit=True)
implements(IOrganizationController, inherit=True)

def before_view(self, data_dict):
translated_data_dict = translate_data_dict(data_dict)
Expand Down

0 comments on commit d52345b

Please sign in to comment.