{"action":"created","issue":{"url":"https://api.github.com/repos/collective/collective.cover/issues/517","labels_url":"https://api.github.com/repos/collective/collective.cover/issues/517/labels{/name}","comments_url":"https://api.github.com/repos/collective/collective.cover/issues/517/comments","events_url":"https://api.github.com/repos/collective/collective.cover/issues/517/events","html_url":"https://github.com/collective/collective.cover/pull/517","id":70903976,"number":517,"title":"Tweak/Fix #513 to allow finer grained overrides of CSS class vocabularies","user":{"login":"djowett","id":1470021,"avatar_url":"https://avatars.githubusercontent.com/u/1470021?v=3","gravatar_id":"","url":"https://api.github.com/users/djowett","html_url":"https://github.com/djowett","followers_url":"https://api.github.com/users/djowett/followers","following_url":"https://api.github.com/users/djowett/following{/other_user}","gists_url":"https://api.github.com/users/djowett/gists{/gist_id}","starred_url":"https://api.github.com/users/djowett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djowett/subscriptions","organizations_url":"https://api.github.com/users/djowett/orgs","repos_url":"https://api.github.com/users/djowett/repos","events_url":"https://api.github.com/users/djowett/events{/privacy}","received_events_url":"https://api.github.com/users/djowett/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/collective/collective.cover/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-25T12:35:42Z","updated_at":"2015-04-25T12:50:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/collective/collective.cover/pulls/517","html_url":"https://github.com/collective/collective.cover/pull/517","diff_url":"https://github.com/collective/collective.cover/pull/517.diff","patch_url":"https://github.com/collective/collective.cover/pull/517.patch"},"body":"This small change allows (for instance) people to override classes shown in the drop down list for Columns & Rows configurations.\r\n\r\nThe following demonstrates a simple override for Row & Column styles once this is in place:\r\n\r\nIn **overrides.zcml**:\r\n\r\n    <utility\r\n        factory=\".vocabularies.RowStylesVocabulary\"\r\n        provides=\"zope.schema.interfaces.IVocabularyFactory\"\r\n        name=\"collective.cover.RowColumnStyles\"\r\n        />\r\n\r\n**vocabularies.py**\r\n\r\n    from zope.schema.vocabulary import SimpleTerm\r\n    from zope.schema.vocabulary import SimpleVocabulary\r\n\r\n    class RowStylesVocabulary(object):\r\n\r\n        def __call__(self, context):\r\n            items = []\r\n            items.insert(0, SimpleTerm(value=u'row-default', title='Row Default'))\r\n            items.append(SimpleTerm(value=u'row-other', title='Row Other'))\r\n\r\n            return SimpleVocabulary(items)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/collective/collective.cover/issues/comments/96195554","html_url":"https://github.com/collective/collective.cover/pull/517#issuecomment-96195554","issue_url":"https://api.github.com/repos/collective/collective.cover/issues/517","id":96195554,"user":{"login":"djowett","id":1470021,"avatar_url":"https://avatars.githubusercontent.com/u/1470021?v=3","gravatar_id":"","url":"https://api.github.com/users/djowett","html_url":"https://github.com/djowett","followers_url":"https://api.github.com/users/djowett/followers","following_url":"https://api.github.com/users/djowett/following{/other_user}","gists_url":"https://api.github.com/users/djowett/gists{/gist_id}","starred_url":"https://api.github.com/users/djowett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djowett/subscriptions","organizations_url":"https://api.github.com/users/djowett/orgs","repos_url":"https://api.github.com/users/djowett/repos","events_url":"https://api.github.com/users/djowett/events{/privacy}","received_events_url":"https://api.github.com/users/djowett/received_events","type":"User","site_admin":false},"created_at":"2015-04-25T12:50:31Z","updated_at":"2015-04-25T12:50:31Z","body":"fix: we *should* look up vocab by name in cover.py\r\ntweak: multiple vocabs"}}