{"action":"created","issue":{"url":"https://api.github.com/repos/robotframework/RIDE/issues/1538","labels_url":"https://api.github.com/repos/robotframework/RIDE/issues/1538/labels{/name}","comments_url":"https://api.github.com/repos/robotframework/RIDE/issues/1538/comments","events_url":"https://api.github.com/repos/robotframework/RIDE/issues/1538/events","html_url":"https://github.com/robotframework/RIDE/issues/1538","id":116281064,"number":1538,"title":"Add Dialog option to remove READ ONLY flag from a file.","user":{"login":"StefaniGit","id":15795837,"avatar_url":"https://avatars.githubusercontent.com/u/15795837?v=3","gravatar_id":"","url":"https://api.github.com/users/StefaniGit","html_url":"https://github.com/StefaniGit","followers_url":"https://api.github.com/users/StefaniGit/followers","following_url":"https://api.github.com/users/StefaniGit/following{/other_user}","gists_url":"https://api.github.com/users/StefaniGit/gists{/gist_id}","starred_url":"https://api.github.com/users/StefaniGit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefaniGit/subscriptions","organizations_url":"https://api.github.com/users/StefaniGit/orgs","repos_url":"https://api.github.com/users/StefaniGit/repos","events_url":"https://api.github.com/users/StefaniGit/events{/privacy}","received_events_url":"https://api.github.com/users/StefaniGit/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/robotframework/RIDE/labels/enhancement","name":"enhancement","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/robotframework/RIDE/milestones/81","html_url":"https://github.com/robotframework/RIDE/milestones/Future","labels_url":"https://api.github.com/repos/robotframework/RIDE/milestones/81/labels","id":1152827,"number":81,"title":"Future","description":"Valid issues that are not targeted for any upcoming release.","creator":{"login":"yanne","id":159146,"avatar_url":"https://avatars.githubusercontent.com/u/159146?v=3","gravatar_id":"","url":"https://api.github.com/users/yanne","html_url":"https://github.com/yanne","followers_url":"https://api.github.com/users/yanne/followers","following_url":"https://api.github.com/users/yanne/following{/other_user}","gists_url":"https://api.github.com/users/yanne/gists{/gist_id}","starred_url":"https://api.github.com/users/yanne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanne/subscriptions","organizations_url":"https://api.github.com/users/yanne/orgs","repos_url":"https://api.github.com/users/yanne/repos","events_url":"https://api.github.com/users/yanne/events{/privacy}","received_events_url":"https://api.github.com/users/yanne/received_events","type":"User","site_admin":false},"open_issues":105,"closed_issues":2,"state":"open","created_at":"2015-06-06T17:04:52Z","updated_at":"2015-11-18T16:53:56Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-11-11T07:23:31Z","updated_at":"2015-11-23T07:18:52Z","closed_at":null,"body":"We use SSCM and when you get files from the repository they have always the read only flag set.\r\nI think it has something do do with it's \"is  modified\" detection.\r\n\r\nIt would be nice when the current dialog box \"Modification prevented\" had the option to remove the read only flag, like a yes/no question, so I would not have to go to file explorer and do it per file.\r\n\r\nBasically it could work like in Notepad++ where you cannot edit until you remove the flag by context menu on the file tap.\r\nOr like in Eclipse where it pops up a dialog when you start editing it.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/robotframework/RIDE/issues/comments/158867541","html_url":"https://github.com/robotframework/RIDE/issues/1538#issuecomment-158867541","issue_url":"https://api.github.com/repos/robotframework/RIDE/issues/1538","id":158867541,"user":{"login":"StefaniGit","id":15795837,"avatar_url":"https://avatars.githubusercontent.com/u/15795837?v=3","gravatar_id":"","url":"https://api.github.com/users/StefaniGit","html_url":"https://github.com/StefaniGit","followers_url":"https://api.github.com/users/StefaniGit/followers","following_url":"https://api.github.com/users/StefaniGit/following{/other_user}","gists_url":"https://api.github.com/users/StefaniGit/gists{/gist_id}","starred_url":"https://api.github.com/users/StefaniGit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefaniGit/subscriptions","organizations_url":"https://api.github.com/users/StefaniGit/orgs","repos_url":"https://api.github.com/users/StefaniGit/repos","events_url":"https://api.github.com/users/StefaniGit/events{/privacy}","received_events_url":"https://api.github.com/users/StefaniGit/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T07:18:52Z","updated_at":"2015-11-23T07:18:52Z","body":"OK, how about an option in in the TestSuite(Case) context menu to remove/set the read only flag or at least an \"Open Folder\" in the file-exploer or how the thing in is called in windows. Is there a default thing for other OSs too?\r\nAs far as I understand with these I can check for read only and remove read only and it should be OS independed:\r\nif os.access(sDocu, os.W_OK):\r\n    os.chmod(sDocu, stat.S_IWRITE)\r\n"}}