{"action":"created","comment":{"url":"https://api.github.com/repos/open-data/ckanext-stcndm/pulls/comments/45904017","id":45904017,"diff_hunk":"@@ -13,6 +13,29 @@\n import ckan.lib.navl.dictization_functions as df\n import ckanapi\n \n+from ckanext.scheming.validation import (\n+        scheming_validator, validators_from_string)\n+from ckanext.fluent.validators import fluent_text_output\n+\n+LANG_SUFFIX = '_translated'\n+\n+@scheming_validator\n+def fluent_core_translated_transitional_output(field, schema):\n+    assert field['field_name'].endswith(LANG_SUFFIX), 'Output validator \"fluent_core_translated\" must only used on a field that ends with \"_translated\"'","path":"ckanext/stcndm/validators.py","position":12,"original_position":12,"commit_id":"9066e1168ae790d0c7ebd873ae5f92011501746e","original_commit_id":"9066e1168ae790d0c7ebd873ae5f92011501746e","user":{"login":"LaurentGoderre","id":1090826,"avatar_url":"https://avatars.githubusercontent.com/u/1090826?v=3","gravatar_id":"","url":"https://api.github.com/users/LaurentGoderre","html_url":"https://github.com/LaurentGoderre","followers_url":"https://api.github.com/users/LaurentGoderre/followers","following_url":"https://api.github.com/users/LaurentGoderre/following{/other_user}","gists_url":"https://api.github.com/users/LaurentGoderre/gists{/gist_id}","starred_url":"https://api.github.com/users/LaurentGoderre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaurentGoderre/subscriptions","organizations_url":"https://api.github.com/users/LaurentGoderre/orgs","repos_url":"https://api.github.com/users/LaurentGoderre/repos","events_url":"https://api.github.com/users/LaurentGoderre/events{/privacy}","received_events_url":"https://api.github.com/users/LaurentGoderre/received_events","type":"User","site_admin":false},"body":"How? THe line of text doesn't fit....","created_at":"2015-11-25T18:43:14Z","updated_at":"2015-11-25T18:43:14Z","html_url":"https://github.com/open-data/ckanext-stcndm/pull/169#discussion_r45904017","pull_request_url":"https://api.github.com/repos/open-data/ckanext-stcndm/pulls/169","_links":{"self":{"href":"https://api.github.com/repos/open-data/ckanext-stcndm/pulls/comments/45904017"},"html":{"href":"https://github.com/open-data/ckanext-stcndm/pull/169#discussion_r45904017"},"pull_request":{"href":"https://api.github.com/repos/open-data/ckanext-stcndm/pulls/169"}}},"pull_request":{"url":"https://api.github.com/repos/open-data/ckanext-stcndm/pulls/169","id":49568808,"html_url":"https://github.com/open-data/ckanext-stcndm/pull/169","diff_url":"https://github.com/open-data/ckanext-stcndm/pull/169.diff","patch_url":"https://github.com/open-data/ckanext-stcndm/pull/169.patch","issue_url":"https://api.github.com/repos/open-data/ckanext-stcndm/issues/169","number":169,"state":"open","locked":false,"title":"Aligned core fields using fluent to the new CKAN i18n model - Part 1","user":{"login":"LaurentGoderre","id":1090826,"avatar_url":"https://avatars.githubusercontent.com/u/1090826?v=3","gravatar_id":"","url":"https://api.github.com/users/LaurentGoderre","html_url":"https://github.com/LaurentGoderre","followers_url":"https://api.github.com/users/LaurentGoderre/followers","following_url":"https://api.github.com/users/LaurentGoderre/following{/other_user}","gists_url":"https://api.github.com/users/LaurentGoderre/gists{/gist_id}","starred_url":"https://api.github.com/users/LaurentGoderre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaurentGoderre/subscriptions","organizations_url":"https://api.github.com/users/LaurentGoderre/orgs","repos_url":"https://api.github.com/users/LaurentGoderre/repos","events_url":"https://api.github.com/users/LaurentGoderre/events{/privacy}","received_events_url":"https://api.github.com/users/LaurentGoderre/received_events","type":"User","site_admin":false},"body":"Depends on https://github.com/open-data/ckanext-fluent/pull/20","created_at":"2015-11-03T15:27:04Z","updated_at":"2015-11-25T18:43:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"838c5f6588783d6c290f547ab87d1efce121d26e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/open-data/ckanext-stcndm/pulls/169/commits","review_comments_url":"https://api.github.com/repos/open-data/ckanext-stcndm/pulls/169/comments","review_comment_url":"https://api.github.com/repos/open-data/ckanext-stcndm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/open-data/ckanext-stcndm/issues/169/comments","statuses_url":"https://api.github.com/repos/open-data/ckanext-stcndm/statuses/9066e1168ae790d0c7ebd873ae5f92011501746e","head":{"label":"LaurentGoderre:fluent-core-fields","ref":"fluent-core-fields","sha":"9066e1168ae790d0c7ebd873ae5f92011501746e","user":{"login":"LaurentGoderre","id":1090826,"avatar_url":"https://avatars.githubusercontent.com/u/1090826?v=3","gravatar_id":"","url":"https://api.github.com/users/LaurentGoderre","html_url":"https://github.com/LaurentGoderre","followers_url":"https://api.github.com/users/LaurentGoderre/followers","following_url":"https://api.github.com/users/LaurentGoderre/following{/other_user}","gists_url":"https://api.github.com/users/LaurentGoderre/gists{/gist_id}","starred_url":"https://api.github.com/users/LaurentGoderre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaurentGoderre/subscriptions","organizations_url":"https://api.github.com/users/LaurentGoderre/orgs","repos_url":"https://api.github.com/users/LaurentGoderre/repos","events_url":"https://api.github.com/users/LaurentGoderre/events{/privacy}","received_events_url":"https://api.github.com/users/LaurentGoderre/received_events","type":"User","site_admin":false},"repo":{"id":39523300,"name":"ckanext-stcndm","full_name":"LaurentGoderre/ckanext-stcndm","owner":{"login":"LaurentGoderre","id":1090826,"avatar_url":"https://avatars.githubusercontent.com/u/1090826?v=3","gravatar_id":"","url":"https://api.github.com/users/LaurentGoderre","html_url":"https://github.com/LaurentGoderre","followers_url":"https://api.github.com/users/LaurentGoderre/followers","following_url":"https://api.github.com/users/LaurentGoderre/following{/other_user}","gists_url":"https://api.github.com/users/LaurentGoderre/gists{/gist_id}","starred_url":"https://api.github.com/users/LaurentGoderre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaurentGoderre/subscriptions","organizations_url":"https://api.github.com/users/LaurentGoderre/orgs","repos_url":"https://api.github.com/users/LaurentGoderre/repos","events_url":"https://api.github.com/users/LaurentGoderre/events{/privacy}","received_events_url":"https://api.github.com/users/LaurentGoderre/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LaurentGoderre/ckanext-stcndm","description":"","fork":true,"url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm","forks_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/forks","keys_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/teams","hooks_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/hooks","issue_events_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/issues/events{/number}","events_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/events","assignees_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/assignees{/user}","branches_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/branches{/branch}","tags_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/tags","blobs_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/git/refs{/sha}","trees_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/statuses/{sha}","languages_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/languages","stargazers_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/stargazers","contributors_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/contributors","subscribers_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/subscribers","subscription_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/subscription","commits_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/commits{/sha}","git_commits_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/git/commits{/sha}","comments_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/comments{/number}","issue_comment_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/issues/comments{/number}","contents_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/contents/{+path}","compare_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/merges","archive_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/downloads","issues_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/issues{/number}","pulls_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/pulls{/number}","milestones_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/milestones{/number}","notifications_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/labels{/name}","releases_url":"https://api.github.com/repos/LaurentGoderre/ckanext-stcndm/releases{/id}","created_at":"2015-07-22T18:30:53Z","updated_at":"2015-07-22T18:30:53Z","pushed_at":"2015-11-25T15:36:15Z","git_url":"git://github.com/LaurentGoderre/ckanext-stcndm.git","ssh_url":"git@github.com:LaurentGoderre/ckanext-stcndm.git","clone_url":"https://github.com/LaurentGoderre/ckanext-stcndm.git","svn_url":"https://github.com/LaurentGoderre/ckanext-stcndm","homepage":null,"size":1484,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"open-data:master","ref":"master","sha":"9296050e8aaeec5d808e27469ec0773f99677ba2","user":{"login":"open-data","id":2651841,"avatar_url":"https://avatars.githubusercontent.com/u/2651841?v=3","gravatar_id":"","url":"https://api.github.com/users/open-data","html_url":"https://github.com/open-data","followers_url":"https://api.github.com/users/open-data/followers","following_url":"https://api.github.com/users/open-data/following{/other_user}","gists_url":"https://api.github.com/users/open-data/gists{/gist_id}","starred_url":"https://api.github.com/users/open-data/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-data/subscriptions","organizations_url":"https://api.github.com/users/open-data/orgs","repos_url":"https://api.github.com/users/open-data/repos","events_url":"https://api.github.com/users/open-data/events{/privacy}","received_events_url":"https://api.github.com/users/open-data/received_events","type":"Organization","site_admin":false},"repo":{"id":38455327,"name":"ckanext-stcndm","full_name":"open-data/ckanext-stcndm","owner":{"login":"open-data","id":2651841,"avatar_url":"https://avatars.githubusercontent.com/u/2651841?v=3","gravatar_id":"","url":"https://api.github.com/users/open-data","html_url":"https://github.com/open-data","followers_url":"https://api.github.com/users/open-data/followers","following_url":"https://api.github.com/users/open-data/following{/other_user}","gists_url":"https://api.github.com/users/open-data/gists{/gist_id}","starred_url":"https://api.github.com/users/open-data/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-data/subscriptions","organizations_url":"https://api.github.com/users/open-data/orgs","repos_url":"https://api.github.com/users/open-data/repos","events_url":"https://api.github.com/users/open-data/events{/privacy}","received_events_url":"https://api.github.com/users/open-data/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/open-data/ckanext-stcndm","description":"","fork":false,"url":"https://api.github.com/repos/open-data/ckanext-stcndm","forks_url":"https://api.github.com/repos/open-data/ckanext-stcndm/forks","keys_url":"https://api.github.com/repos/open-data/ckanext-stcndm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-data/ckanext-stcndm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-data/ckanext-stcndm/teams","hooks_url":"https://api.github.com/repos/open-data/ckanext-stcndm/hooks","issue_events_url":"https://api.github.com/repos/open-data/ckanext-stcndm/issues/events{/number}","events_url":"https://api.github.com/repos/open-data/ckanext-stcndm/events","assignees_url":"https://api.github.com/repos/open-data/ckanext-stcndm/assignees{/user}","branches_url":"https://api.github.com/repos/open-data/ckanext-stcndm/branches{/branch}","tags_url":"https://api.github.com/repos/open-data/ckanext-stcndm/tags","blobs_url":"https://api.github.com/repos/open-data/ckanext-stcndm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-data/ckanext-stcndm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-data/ckanext-stcndm/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-data/ckanext-stcndm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-data/ckanext-stcndm/statuses/{sha}","languages_url":"https://api.github.com/repos/open-data/ckanext-stcndm/languages","stargazers_url":"https://api.github.com/repos/open-data/ckanext-stcndm/stargazers","contributors_url":"https://api.github.com/repos/open-data/ckanext-stcndm/contributors","subscribers_url":"https://api.github.com/repos/open-data/ckanext-stcndm/subscribers","subscription_url":"https://api.github.com/repos/open-data/ckanext-stcndm/subscription","commits_url":"https://api.github.com/repos/open-data/ckanext-stcndm/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-data/ckanext-stcndm/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-data/ckanext-stcndm/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-data/ckanext-stcndm/issues/comments{/number}","contents_url":"https://api.github.com/repos/open-data/ckanext-stcndm/contents/{+path}","compare_url":"https://api.github.com/repos/open-data/ckanext-stcndm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-data/ckanext-stcndm/merges","archive_url":"https://api.github.com/repos/open-data/ckanext-stcndm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-data/ckanext-stcndm/downloads","issues_url":"https://api.github.com/repos/open-data/ckanext-stcndm/issues{/number}","pulls_url":"https://api.github.com/repos/open-data/ckanext-stcndm/pulls{/number}","milestones_url":"https://api.github.com/repos/open-data/ckanext-stcndm/milestones{/number}","notifications_url":"https://api.github.com/repos/open-data/ckanext-stcndm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-data/ckanext-stcndm/labels{/name}","releases_url":"https://api.github.com/repos/open-data/ckanext-stcndm/releases{/id}","created_at":"2015-07-02T20:27:39Z","updated_at":"2015-07-02T20:27:51Z","pushed_at":"2015-11-25T15:36:16Z","git_url":"git://github.com/open-data/ckanext-stcndm.git","ssh_url":"git@github.com:open-data/ckanext-stcndm.git","clone_url":"https://github.com/open-data/ckanext-stcndm.git","svn_url":"https://github.com/open-data/ckanext-stcndm","homepage":null,"size":1473,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":6,"forks":8,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/open-data/ckanext-stcndm/pulls/169"},"html":{"href":"https://github.com/open-data/ckanext-stcndm/pull/169"},"issue":{"href":"https://api.github.com/repos/open-data/ckanext-stcndm/issues/169"},"comments":{"href":"https://api.github.com/repos/open-data/ckanext-stcndm/issues/169/comments"},"review_comments":{"href":"https://api.github.com/repos/open-data/ckanext-stcndm/pulls/169/comments"},"review_comment":{"href":"https://api.github.com/repos/open-data/ckanext-stcndm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/open-data/ckanext-stcndm/pulls/169/commits"},"statuses":{"href":"https://api.github.com/repos/open-data/ckanext-stcndm/statuses/9066e1168ae790d0c7ebd873ae5f92011501746e"}}}}