{"action":"created","comment":{"url":"https://api.github.com/repos/gramps-project/gramps/pulls/comments/89648302","pull_request_review_id":10193831,"id":89648302,"diff_hunk":"@@ -176,6 +176,24 @@ def _setup_fields(self):\n         #force validation now with initial entry\n         self.top.get_object(\"lat_entry\").validate(force=True)\n \n+        self.latlon = MonitoredEntry(\n+            self.top.get_object(\"latlon_entry\"),\n+            self.set_latlongitude, self.get_latlongitude,\n+            self.db.readonly)\n+\n+    def set_latlongitude(self, value):\n+        try:\n+            coma = value.index(',')\n+            self.longitude.set_text(value[coma+1:])\n+            self.latitude.set_text(value[:coma])\n+            self.top.get_object(\"lat_entry\").validate(force=True)\n+            self.top.get_object(\"lon_entry\").validate(force=True)\n+        except:","path":"gramps/gui/editors/editplace.py","position":16,"original_position":16,"commit_id":"df596bc64e256e5f761e0e1e674effa6fba02e67","original_commit_id":"df596bc64e256e5f761e0e1e674effa6fba02e67","user":{"login":"SNoiraud","id":1883985,"avatar_url":"https://avatars.githubusercontent.com/u/1883985?v=3","gravatar_id":"","url":"https://api.github.com/users/SNoiraud","html_url":"https://github.com/SNoiraud","followers_url":"https://api.github.com/users/SNoiraud/followers","following_url":"https://api.github.com/users/SNoiraud/following{/other_user}","gists_url":"https://api.github.com/users/SNoiraud/gists{/gist_id}","starred_url":"https://api.github.com/users/SNoiraud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SNoiraud/subscriptions","organizations_url":"https://api.github.com/users/SNoiraud/orgs","repos_url":"https://api.github.com/users/SNoiraud/repos","events_url":"https://api.github.com/users/SNoiraud/events{/privacy}","received_events_url":"https://api.github.com/users/SNoiraud/received_events","type":"User","site_admin":false},"body":"I didn't want to reinvent the wheel. So I use what already exists.\r\nYou enter 1,2. Neither google, openstreetmap or other map services will give you these values.\r\nIt is written : **copy/paste**. You entered manually these values.\r\nIf you want to create a new widget, I don't like this : There are too many widgets in gramps. I think this is clear like that. I can add some controls if you want.","created_at":"2016-11-25T18:19:32Z","updated_at":"2016-11-25T18:19:32Z","html_url":"https://github.com/gramps-project/gramps/pull/255#discussion_r89648302","pull_request_url":"https://api.github.com/repos/gramps-project/gramps/pulls/255","_links":{"self":{"href":"https://api.github.com/repos/gramps-project/gramps/pulls/comments/89648302"},"html":{"href":"https://github.com/gramps-project/gramps/pull/255#discussion_r89648302"},"pull_request":{"href":"https://api.github.com/repos/gramps-project/gramps/pulls/255"}}},"pull_request":{"url":"https://api.github.com/repos/gramps-project/gramps/pulls/255","id":90477417,"html_url":"https://github.com/gramps-project/gramps/pull/255","diff_url":"https://github.com/gramps-project/gramps/pull/255.diff","patch_url":"https://github.com/gramps-project/gramps/pull/255.patch","issue_url":"https://api.github.com/repos/gramps-project/gramps/issues/255","number":255,"state":"open","locked":false,"title":"9373: Ability to be able to enter comma separated latitude/longitude …","user":{"login":"SNoiraud","id":1883985,"avatar_url":"https://avatars.githubusercontent.com/u/1883985?v=3","gravatar_id":"","url":"https://api.github.com/users/SNoiraud","html_url":"https://github.com/SNoiraud","followers_url":"https://api.github.com/users/SNoiraud/followers","following_url":"https://api.github.com/users/SNoiraud/following{/other_user}","gists_url":"https://api.github.com/users/SNoiraud/gists{/gist_id}","starred_url":"https://api.github.com/users/SNoiraud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SNoiraud/subscriptions","organizations_url":"https://api.github.com/users/SNoiraud/orgs","repos_url":"https://api.github.com/users/SNoiraud/repos","events_url":"https://api.github.com/users/SNoiraud/events{/privacy}","received_events_url":"https://api.github.com/users/SNoiraud/received_events","type":"User","site_admin":false},"body":"…pairs\n","created_at":"2016-10-22T10:15:24Z","updated_at":"2016-11-25T18:19:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ed54d0ee737335dea2e3d6d0c253d6df36cd0eb1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/gramps-project/gramps/pulls/255/commits","review_comments_url":"https://api.github.com/repos/gramps-project/gramps/pulls/255/comments","review_comment_url":"https://api.github.com/repos/gramps-project/gramps/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gramps-project/gramps/issues/255/comments","statuses_url":"https://api.github.com/repos/gramps-project/gramps/statuses/df596bc64e256e5f761e0e1e674effa6fba02e67","head":{"label":"SNoiraud:FR9373","ref":"FR9373","sha":"df596bc64e256e5f761e0e1e674effa6fba02e67","user":{"login":"SNoiraud","id":1883985,"avatar_url":"https://avatars.githubusercontent.com/u/1883985?v=3","gravatar_id":"","url":"https://api.github.com/users/SNoiraud","html_url":"https://github.com/SNoiraud","followers_url":"https://api.github.com/users/SNoiraud/followers","following_url":"https://api.github.com/users/SNoiraud/following{/other_user}","gists_url":"https://api.github.com/users/SNoiraud/gists{/gist_id}","starred_url":"https://api.github.com/users/SNoiraud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SNoiraud/subscriptions","organizations_url":"https://api.github.com/users/SNoiraud/orgs","repos_url":"https://api.github.com/users/SNoiraud/repos","events_url":"https://api.github.com/users/SNoiraud/events{/privacy}","received_events_url":"https://api.github.com/users/SNoiraud/received_events","type":"User","site_admin":false},"repo":{"id":52106258,"name":"gramps","full_name":"SNoiraud/gramps","owner":{"login":"SNoiraud","id":1883985,"avatar_url":"https://avatars.githubusercontent.com/u/1883985?v=3","gravatar_id":"","url":"https://api.github.com/users/SNoiraud","html_url":"https://github.com/SNoiraud","followers_url":"https://api.github.com/users/SNoiraud/followers","following_url":"https://api.github.com/users/SNoiraud/following{/other_user}","gists_url":"https://api.github.com/users/SNoiraud/gists{/gist_id}","starred_url":"https://api.github.com/users/SNoiraud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SNoiraud/subscriptions","organizations_url":"https://api.github.com/users/SNoiraud/orgs","repos_url":"https://api.github.com/users/SNoiraud/repos","events_url":"https://api.github.com/users/SNoiraud/events{/privacy}","received_events_url":"https://api.github.com/users/SNoiraud/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SNoiraud/gramps","description":"Source code for Gramps Genealogical program","fork":true,"url":"https://api.github.com/repos/SNoiraud/gramps","forks_url":"https://api.github.com/repos/SNoiraud/gramps/forks","keys_url":"https://api.github.com/repos/SNoiraud/gramps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SNoiraud/gramps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SNoiraud/gramps/teams","hooks_url":"https://api.github.com/repos/SNoiraud/gramps/hooks","issue_events_url":"https://api.github.com/repos/SNoiraud/gramps/issues/events{/number}","events_url":"https://api.github.com/repos/SNoiraud/gramps/events","assignees_url":"https://api.github.com/repos/SNoiraud/gramps/assignees{/user}","branches_url":"https://api.github.com/repos/SNoiraud/gramps/branches{/branch}","tags_url":"https://api.github.com/repos/SNoiraud/gramps/tags","blobs_url":"https://api.github.com/repos/SNoiraud/gramps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SNoiraud/gramps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SNoiraud/gramps/git/refs{/sha}","trees_url":"https://api.github.com/repos/SNoiraud/gramps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SNoiraud/gramps/statuses/{sha}","languages_url":"https://api.github.com/repos/SNoiraud/gramps/languages","stargazers_url":"https://api.github.com/repos/SNoiraud/gramps/stargazers","contributors_url":"https://api.github.com/repos/SNoiraud/gramps/contributors","subscribers_url":"https://api.github.com/repos/SNoiraud/gramps/subscribers","subscription_url":"https://api.github.com/repos/SNoiraud/gramps/subscription","commits_url":"https://api.github.com/repos/SNoiraud/gramps/commits{/sha}","git_commits_url":"https://api.github.com/repos/SNoiraud/gramps/git/commits{/sha}","comments_url":"https://api.github.com/repos/SNoiraud/gramps/comments{/number}","issue_comment_url":"https://api.github.com/repos/SNoiraud/gramps/issues/comments{/number}","contents_url":"https://api.github.com/repos/SNoiraud/gramps/contents/{+path}","compare_url":"https://api.github.com/repos/SNoiraud/gramps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SNoiraud/gramps/merges","archive_url":"https://api.github.com/repos/SNoiraud/gramps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SNoiraud/gramps/downloads","issues_url":"https://api.github.com/repos/SNoiraud/gramps/issues{/number}","pulls_url":"https://api.github.com/repos/SNoiraud/gramps/pulls{/number}","milestones_url":"https://api.github.com/repos/SNoiraud/gramps/milestones{/number}","notifications_url":"https://api.github.com/repos/SNoiraud/gramps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SNoiraud/gramps/labels{/name}","releases_url":"https://api.github.com/repos/SNoiraud/gramps/releases{/id}","deployments_url":"https://api.github.com/repos/SNoiraud/gramps/deployments","created_at":"2016-02-19T18:01:41Z","updated_at":"2016-02-19T18:01:48Z","pushed_at":"2016-11-22T19:15:12Z","git_url":"git://github.com/SNoiraud/gramps.git","ssh_url":"git@github.com:SNoiraud/gramps.git","clone_url":"https://github.com/SNoiraud/gramps.git","svn_url":"https://github.com/SNoiraud/gramps","homepage":"https://gramps-project.org/","size":266728,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gramps-project:master","ref":"master","sha":"d5c4a71ee2e3bce60fc9c06782a29eceb3e42686","user":{"login":"gramps-project","id":10428818,"avatar_url":"https://avatars.githubusercontent.com/u/10428818?v=3","gravatar_id":"","url":"https://api.github.com/users/gramps-project","html_url":"https://github.com/gramps-project","followers_url":"https://api.github.com/users/gramps-project/followers","following_url":"https://api.github.com/users/gramps-project/following{/other_user}","gists_url":"https://api.github.com/users/gramps-project/gists{/gist_id}","starred_url":"https://api.github.com/users/gramps-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gramps-project/subscriptions","organizations_url":"https://api.github.com/users/gramps-project/orgs","repos_url":"https://api.github.com/users/gramps-project/repos","events_url":"https://api.github.com/users/gramps-project/events{/privacy}","received_events_url":"https://api.github.com/users/gramps-project/received_events","type":"Organization","site_admin":false},"repo":{"id":28895195,"name":"gramps","full_name":"gramps-project/gramps","owner":{"login":"gramps-project","id":10428818,"avatar_url":"https://avatars.githubusercontent.com/u/10428818?v=3","gravatar_id":"","url":"https://api.github.com/users/gramps-project","html_url":"https://github.com/gramps-project","followers_url":"https://api.github.com/users/gramps-project/followers","following_url":"https://api.github.com/users/gramps-project/following{/other_user}","gists_url":"https://api.github.com/users/gramps-project/gists{/gist_id}","starred_url":"https://api.github.com/users/gramps-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gramps-project/subscriptions","organizations_url":"https://api.github.com/users/gramps-project/orgs","repos_url":"https://api.github.com/users/gramps-project/repos","events_url":"https://api.github.com/users/gramps-project/events{/privacy}","received_events_url":"https://api.github.com/users/gramps-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gramps-project/gramps","description":"Source code for Gramps Genealogical program","fork":false,"url":"https://api.github.com/repos/gramps-project/gramps","forks_url":"https://api.github.com/repos/gramps-project/gramps/forks","keys_url":"https://api.github.com/repos/gramps-project/gramps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gramps-project/gramps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gramps-project/gramps/teams","hooks_url":"https://api.github.com/repos/gramps-project/gramps/hooks","issue_events_url":"https://api.github.com/repos/gramps-project/gramps/issues/events{/number}","events_url":"https://api.github.com/repos/gramps-project/gramps/events","assignees_url":"https://api.github.com/repos/gramps-project/gramps/assignees{/user}","branches_url":"https://api.github.com/repos/gramps-project/gramps/branches{/branch}","tags_url":"https://api.github.com/repos/gramps-project/gramps/tags","blobs_url":"https://api.github.com/repos/gramps-project/gramps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gramps-project/gramps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gramps-project/gramps/git/refs{/sha}","trees_url":"https://api.github.com/repos/gramps-project/gramps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gramps-project/gramps/statuses/{sha}","languages_url":"https://api.github.com/repos/gramps-project/gramps/languages","stargazers_url":"https://api.github.com/repos/gramps-project/gramps/stargazers","contributors_url":"https://api.github.com/repos/gramps-project/gramps/contributors","subscribers_url":"https://api.github.com/repos/gramps-project/gramps/subscribers","subscription_url":"https://api.github.com/repos/gramps-project/gramps/subscription","commits_url":"https://api.github.com/repos/gramps-project/gramps/commits{/sha}","git_commits_url":"https://api.github.com/repos/gramps-project/gramps/git/commits{/sha}","comments_url":"https://api.github.com/repos/gramps-project/gramps/comments{/number}","issue_comment_url":"https://api.github.com/repos/gramps-project/gramps/issues/comments{/number}","contents_url":"https://api.github.com/repos/gramps-project/gramps/contents/{+path}","compare_url":"https://api.github.com/repos/gramps-project/gramps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gramps-project/gramps/merges","archive_url":"https://api.github.com/repos/gramps-project/gramps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gramps-project/gramps/downloads","issues_url":"https://api.github.com/repos/gramps-project/gramps/issues{/number}","pulls_url":"https://api.github.com/repos/gramps-project/gramps/pulls{/number}","milestones_url":"https://api.github.com/repos/gramps-project/gramps/milestones{/number}","notifications_url":"https://api.github.com/repos/gramps-project/gramps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gramps-project/gramps/labels{/name}","releases_url":"https://api.github.com/repos/gramps-project/gramps/releases{/id}","deployments_url":"https://api.github.com/repos/gramps-project/gramps/deployments","created_at":"2015-01-07T02:51:48Z","updated_at":"2016-11-22T17:44:40Z","pushed_at":"2016-11-25T16:48:28Z","git_url":"git://github.com/gramps-project/gramps.git","ssh_url":"git@github.com:gramps-project/gramps.git","clone_url":"https://github.com/gramps-project/gramps.git","svn_url":"https://github.com/gramps-project/gramps","homepage":"https://gramps-project.org/","size":285054,"stargazers_count":197,"watchers_count":197,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":76,"mirror_url":null,"open_issues_count":4,"forks":76,"open_issues":4,"watchers":197,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gramps-project/gramps/pulls/255"},"html":{"href":"https://github.com/gramps-project/gramps/pull/255"},"issue":{"href":"https://api.github.com/repos/gramps-project/gramps/issues/255"},"comments":{"href":"https://api.github.com/repos/gramps-project/gramps/issues/255/comments"},"review_comments":{"href":"https://api.github.com/repos/gramps-project/gramps/pulls/255/comments"},"review_comment":{"href":"https://api.github.com/repos/gramps-project/gramps/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gramps-project/gramps/pulls/255/commits"},"statuses":{"href":"https://api.github.com/repos/gramps-project/gramps/statuses/df596bc64e256e5f761e0e1e674effa6fba02e67"}}}}
{"actor":{"display_login":"SNoiraud"}}