{"action":"opened","issue":{"url":"https://api.github.com/repos/viewflow/viewflow/issues/148","repository_url":"https://api.github.com/repos/viewflow/viewflow","labels_url":"https://api.github.com/repos/viewflow/viewflow/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/viewflow/viewflow/issues/148/comments","events_url":"https://api.github.com/repos/viewflow/viewflow/issues/148/events","html_url":"https://github.com/viewflow/viewflow/issues/148","id":155614204,"number":148,"title":"bug in processing of process_title","user":{"login":"boakley","id":1123938,"avatar_url":"https://avatars.githubusercontent.com/u/1123938?v=3","gravatar_id":"","url":"https://api.github.com/users/boakley","html_url":"https://github.com/boakley","followers_url":"https://api.github.com/users/boakley/followers","following_url":"https://api.github.com/users/boakley/following{/other_user}","gists_url":"https://api.github.com/users/boakley/gists{/gist_id}","starred_url":"https://api.github.com/users/boakley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boakley/subscriptions","organizations_url":"https://api.github.com/users/boakley/orgs","repos_url":"https://api.github.com/users/boakley/repos","events_url":"https://api.github.com/users/boakley/events{/privacy}","received_events_url":"https://api.github.com/users/boakley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-18T22:16:06Z","updated_at":"2016-05-18T22:16:06Z","closed_at":null,"body":"I discovered some bugs in how process_title is handled.\r\n\r\nin base.py:FlowMetaClass:__new__ there is this line of code:\r\n\r\n    new_class.process_title = re.sub('([a-z0-9])([A-Z])', r'\\1 \\2',\r\n                                             re.sub('(.)([A-Z][a-z]+)', r'\\1 \\2', class_name)) \\\r\n                .rstrip('Flow')\r\n\r\nI'm assuming you intend to strip the word \"Flow\" from the title, but rstrip removes characters rather than words, so any title that ends with the letters \"F\", \"l\", \"o\" or \"w\" will get mangled. For example, when I create a flow named \"FlowTwo\", the name becomes \"flow t\". \r\n\r\nAlso, if I do _not_ have a docstring, but _do_ define process_title, my custom process_title is replaced. I think you should only be resetting process_title if one isn't already defined.\r\n\r\n\r\n"}}