{"action":"created","issue":{"url":"https://api.github.com/repos/loechel/lmu.policy.base/issues/26","labels_url":"https://api.github.com/repos/loechel/lmu.policy.base/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/loechel/lmu.policy.base/issues/26/comments","events_url":"https://api.github.com/repos/loechel/lmu.policy.base/issues/26/events","html_url":"https://github.com/loechel/lmu.policy.base/issues/26","id":112324251,"number":26,"title":"Anpassen der Status Message mit sinnvolleren Texten","user":{"login":"loechel","id":1766708,"avatar_url":"https://avatars.githubusercontent.com/u/1766708?v=3","gravatar_id":"","url":"https://api.github.com/users/loechel","html_url":"https://github.com/loechel","followers_url":"https://api.github.com/users/loechel/followers","following_url":"https://api.github.com/users/loechel/following{/other_user}","gists_url":"https://api.github.com/users/loechel/gists{/gist_id}","starred_url":"https://api.github.com/users/loechel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loechel/subscriptions","organizations_url":"https://api.github.com/users/loechel/orgs","repos_url":"https://api.github.com/users/loechel/repos","events_url":"https://api.github.com/users/loechel/events{/privacy}","received_events_url":"https://api.github.com/users/loechel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/loechel/lmu.policy.base/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"reinhardt","id":202439,"avatar_url":"https://avatars.githubusercontent.com/u/202439?v=3","gravatar_id":"","url":"https://api.github.com/users/reinhardt","html_url":"https://github.com/reinhardt","followers_url":"https://api.github.com/users/reinhardt/followers","following_url":"https://api.github.com/users/reinhardt/following{/other_user}","gists_url":"https://api.github.com/users/reinhardt/gists{/gist_id}","starred_url":"https://api.github.com/users/reinhardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reinhardt/subscriptions","organizations_url":"https://api.github.com/users/reinhardt/orgs","repos_url":"https://api.github.com/users/reinhardt/repos","events_url":"https://api.github.com/users/reinhardt/events{/privacy}","received_events_url":"https://api.github.com/users/reinhardt/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/loechel/lmu.policy.base/milestones/1","html_url":"https://github.com/loechel/lmu.policy.base/milestones/1.0","labels_url":"https://api.github.com/repos/loechel/lmu.policy.base/milestones/1/labels","id":1338022,"number":1,"title":"1.0","description":"","creator":{"login":"loechel","id":1766708,"avatar_url":"https://avatars.githubusercontent.com/u/1766708?v=3","gravatar_id":"","url":"https://api.github.com/users/loechel","html_url":"https://github.com/loechel","followers_url":"https://api.github.com/users/loechel/followers","following_url":"https://api.github.com/users/loechel/following{/other_user}","gists_url":"https://api.github.com/users/loechel/gists{/gist_id}","starred_url":"https://api.github.com/users/loechel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loechel/subscriptions","organizations_url":"https://api.github.com/users/loechel/orgs","repos_url":"https://api.github.com/users/loechel/repos","events_url":"https://api.github.com/users/loechel/events{/privacy}","received_events_url":"https://api.github.com/users/loechel/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":2,"state":"open","created_at":"2015-10-05T11:39:26Z","updated_at":"2015-10-20T09:30:54Z","due_on":"2015-10-06T22:00:00Z","closed_at":null},"comments":1,"created_at":"2015-10-20T09:29:05Z","updated_at":"2015-10-20T15:21:58Z","closed_at":null,"body":"Die Status Message beim Speichern, aNlegen oder Workflow Änderen von Inhalten in Plone ist immer Identisch. Teilweise wäre es sinnvoll hier spezifischere Meldungen auszugeben.\r\n\r\nStatt: Workflowstatus geändert --> Blog-Beitrag veröffentlicht"},"comment":{"url":"https://api.github.com/repos/loechel/lmu.policy.base/issues/comments/149600629","html_url":"https://github.com/loechel/lmu.policy.base/issues/26#issuecomment-149600629","issue_url":"https://api.github.com/repos/loechel/lmu.policy.base/issues/26","id":149600629,"user":{"login":"reinhardt","id":202439,"avatar_url":"https://avatars.githubusercontent.com/u/202439?v=3","gravatar_id":"","url":"https://api.github.com/users/reinhardt","html_url":"https://github.com/reinhardt","followers_url":"https://api.github.com/users/reinhardt/followers","following_url":"https://api.github.com/users/reinhardt/following{/other_user}","gists_url":"https://api.github.com/users/reinhardt/gists{/gist_id}","starred_url":"https://api.github.com/users/reinhardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reinhardt/subscriptions","organizations_url":"https://api.github.com/users/reinhardt/orgs","repos_url":"https://api.github.com/users/reinhardt/repos","events_url":"https://api.github.com/users/reinhardt/events{/privacy}","received_events_url":"https://api.github.com/users/reinhardt/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T15:21:58Z","updated_at":"2015-10-20T15:21:58Z","body":"Dazu muss man wohl an mehreren Stellen angreifen. Habe gerade heraus gesucht, wo die jeweiligen Status Messages ausgegeben werden:\r\n\r\n* Anlegen: plone.dexterity.browser.add.DefaultAddForm.handleAdd()\r\n* Speichern: plone.dexterity.browser.edit.DefaultEditForm.handleApply()\r\n* Workflow: Products.CMFPlone:skins/plone_form_scripts/content_status_modify.py\r\n\r\ncontent_status_modify.py kann man auf jeden Fall anpassen. DefaultAddForm und DefaultEditForm sind etwas schwieriger zu ersetzen, außer man patcht sie einfach, was aber die Wartung hässlich macht. DefaultEditView und DefaultAddView (die Views, die die Forms einbinden) wiederum kann man per zcml für das eigene Browser Layer überschreiben. Das ist vielleicht der beste Ansatz.\r\n\r\nIch kann mich morgen mal an einer Implementation versuchen."}}