{"action":"created","issue":{"url":"https://api.github.com/repos/Kotti/Kotti/issues/395","labels_url":"https://api.github.com/repos/Kotti/Kotti/issues/395/labels{/name}","comments_url":"https://api.github.com/repos/Kotti/Kotti/issues/395/comments","events_url":"https://api.github.com/repos/Kotti/Kotti/issues/395/events","html_url":"https://github.com/Kotti/Kotti/issues/395","id":56513135,"number":395,"title":"kotti.use_workflow","user":{"login":"davidemoro","id":608426,"avatar_url":"https://avatars.githubusercontent.com/u/608426?v=3","gravatar_id":"","url":"https://api.github.com/users/davidemoro","html_url":"https://github.com/davidemoro","followers_url":"https://api.github.com/users/davidemoro/followers","following_url":"https://api.github.com/users/davidemoro/following{/other_user}","gists_url":"https://api.github.com/users/davidemoro/gists{/gist_id}","starred_url":"https://api.github.com/users/davidemoro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidemoro/subscriptions","organizations_url":"https://api.github.com/users/davidemoro/orgs","repos_url":"https://api.github.com/users/davidemoro/repos","events_url":"https://api.github.com/users/davidemoro/events{/privacy}","received_events_url":"https://api.github.com/users/davidemoro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-04T11:09:12Z","updated_at":"2015-02-04T11:16:18Z","closed_at":null,"body":"If you override the custom workflow provided by Kotti:\r\n```\r\ndef kotti_configure(settings):\r\n    ...\r\n    settings['kotti.use_workflow'] = u'kotti_yourplugin:workflow.zcml',\r\n```\r\n\r\nyou'll get an error at startup time:\r\n```\r\n  File \".../python-dev/lib/python2.7/site-packages/kotti/__init__.py\", line 257, in includeme\r\n    if workflow.lower() not in FALSE_VALUES:\r\nAttributeError: 'tuple' object has no attribute 'lower'\r\n```\r\nwhere workflow is:\r\n```\r\n(Pdb) workflow\r\n(u'kotti_yourplugin:workflow.zcml',)\r\n```"},"comment":{"url":"https://api.github.com/repos/Kotti/Kotti/issues/comments/72838180","html_url":"https://github.com/Kotti/Kotti/issues/395#issuecomment-72838180","issue_url":"https://api.github.com/repos/Kotti/Kotti/issues/395","id":72838180,"user":{"login":"sverbois","id":1157755,"avatar_url":"https://avatars.githubusercontent.com/u/1157755?v=3","gravatar_id":"","url":"https://api.github.com/users/sverbois","html_url":"https://github.com/sverbois","followers_url":"https://api.github.com/users/sverbois/followers","following_url":"https://api.github.com/users/sverbois/following{/other_user}","gists_url":"https://api.github.com/users/sverbois/gists{/gist_id}","starred_url":"https://api.github.com/users/sverbois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sverbois/subscriptions","organizations_url":"https://api.github.com/users/sverbois/orgs","repos_url":"https://api.github.com/users/sverbois/repos","events_url":"https://api.github.com/users/sverbois/events{/privacy}","received_events_url":"https://api.github.com/users/sverbois/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T11:16:17Z","updated_at":"2015-02-04T11:16:17Z","body":"You have to remove the comma in your code\r\n\r\n    -    settings['kotti.use_workflow'] = u'kotti_yourplugin:workflow.zcml',\r\n    +   settings['kotti.use_workflow'] = u'kotti_yourplugin:workflow.zcml'"}}