{"action":"created","issue":{"url":"https://api.github.com/repos/collective/wildcard.media/issues/20","labels_url":"https://api.github.com/repos/collective/wildcard.media/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/collective/wildcard.media/issues/20/comments","events_url":"https://api.github.com/repos/collective/wildcard.media/issues/20/events","html_url":"https://github.com/collective/wildcard.media/issues/20","id":65578457,"number":20,"title":"Async convert process fails when object added","user":{"login":"displacedaussie","id":4721,"avatar_url":"https://avatars.githubusercontent.com/u/4721?v=3","gravatar_id":"","url":"https://api.github.com/users/displacedaussie","html_url":"https://github.com/displacedaussie","followers_url":"https://api.github.com/users/displacedaussie/followers","following_url":"https://api.github.com/users/displacedaussie/following{/other_user}","gists_url":"https://api.github.com/users/displacedaussie/gists{/gist_id}","starred_url":"https://api.github.com/users/displacedaussie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/displacedaussie/subscriptions","organizations_url":"https://api.github.com/users/displacedaussie/orgs","repos_url":"https://api.github.com/users/displacedaussie/repos","events_url":"https://api.github.com/users/displacedaussie/events{/privacy}","received_events_url":"https://api.github.com/users/displacedaussie/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-01T01:01:21Z","updated_at":"2015-04-01T01:38:27Z","closed_at":"2015-04-01T01:38:27Z","body":"Using the latest 1.2b5 release, I've noticed that the convert process fails when adding a Video while using plone.app.async.\r\n\r\nThis is because the job is queued in the video_file setter in the behavior, and at this point the Video object is still a temporary object. The context object passed to plone.app.async is therefore the parent object of the Video rather than the Video object itself, which results in an AttributeError (context.video_file) in convert/runProcess.\r\n\r\nI've added a fix, based on the 2.0 changes in master, that queues the job for the right object using Event subscribers.\r\n\r\nhttps://github.com/collective/wildcard.media/tree/fix_async_behavior"},"comment":{"url":"https://api.github.com/repos/collective/wildcard.media/issues/comments/88307148","html_url":"https://github.com/collective/wildcard.media/issues/20#issuecomment-88307148","issue_url":"https://api.github.com/repos/collective/wildcard.media/issues/20","id":88307148,"user":{"login":"vangheem","id":524413,"avatar_url":"https://avatars.githubusercontent.com/u/524413?v=3","gravatar_id":"","url":"https://api.github.com/users/vangheem","html_url":"https://github.com/vangheem","followers_url":"https://api.github.com/users/vangheem/followers","following_url":"https://api.github.com/users/vangheem/following{/other_user}","gists_url":"https://api.github.com/users/vangheem/gists{/gist_id}","starred_url":"https://api.github.com/users/vangheem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vangheem/subscriptions","organizations_url":"https://api.github.com/users/vangheem/orgs","repos_url":"https://api.github.com/users/vangheem/repos","events_url":"https://api.github.com/users/vangheem/events{/privacy}","received_events_url":"https://api.github.com/users/vangheem/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T01:38:27Z","updated_at":"2015-04-01T01:38:27Z","body":"Yes, I think this is fixed in master already. Thanks. I'll close the ticket. Please re-open if I'm incorrect. Thanks."}}