{"action":"opened","issue":{"url":"https://api.github.com/repos/tyarkoni/transitions/issues/38","labels_url":"https://api.github.com/repos/tyarkoni/transitions/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/tyarkoni/transitions/issues/38/comments","events_url":"https://api.github.com/repos/tyarkoni/transitions/issues/38/events","html_url":"https://github.com/tyarkoni/transitions/issues/38","id":116161438,"number":38,"title":"State Callback defined in model class does not run","user":{"login":"zrgravity","id":3514955,"avatar_url":"https://avatars.githubusercontent.com/u/3514955?v=3","gravatar_id":"","url":"https://api.github.com/users/zrgravity","html_url":"https://github.com/zrgravity","followers_url":"https://api.github.com/users/zrgravity/followers","following_url":"https://api.github.com/users/zrgravity/following{/other_user}","gists_url":"https://api.github.com/users/zrgravity/gists{/gist_id}","starred_url":"https://api.github.com/users/zrgravity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zrgravity/subscriptions","organizations_url":"https://api.github.com/users/zrgravity/orgs","repos_url":"https://api.github.com/users/zrgravity/repos","events_url":"https://api.github.com/users/zrgravity/events{/privacy}","received_events_url":"https://api.github.com/users/zrgravity/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-10T17:40:57Z","updated_at":"2015-11-10T17:40:57Z","closed_at":null,"body":"I've created a model class that inherits Machine which contains several on_enter_ callbacks for several states (methods defined/named on_enter_stateName(self)). None of the callbacks are executed when the state is entered. In core.py (lines 369-374) it looks like this method of adding callbacks only works if the model class is not \"self\"."}}