Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reflect changes when mapset/location is created from menu #916

Conversation

lindakarlovska
Copy link
Contributor

There are several actions that need to be synced in GUI and datacatalog. This PR solves the case when the mapset/location is created from menu.

@lindakarlovska lindakarlovska added bug Something isn't working gsoc Reserved for Google Summer of Code student(s) GUI wxGUI related labels Aug 19, 2020
@lindakarlovska lindakarlovska self-assigned this Aug 19, 2020
@lindakarlovska lindakarlovska marked this pull request as draft August 19, 2020 13:36
@lindakarlovska lindakarlovska marked this pull request as ready for review August 19, 2020 13:37
@petrasovaa petrasovaa added this to PRs in progress in New GUI Startup via automation Aug 20, 2020
Comment on lines 1065 to 1066
db_node, loc_node, mapset_node = self.datacatalog.tree.GetCurrentDbLocationMapsetNode()
self.datacatalog.tree.CreateMapset(db_node, loc_node)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should call create_mapset_interactively directly, not through datacatalog. As for the reloading of datacatalog, for now just call self.datacatalog.tree.ReloadTreeItems() and we will later change this using signals.

GError(parent=self,
message=_("No mapset provided. Operation canceled."))
return
db_node, loc_node, mapset_node = self.datacatalog.tree.GetCurrentDbLocationMapsetNode()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just get the current location and db from gisenv

lindakarlovska and others added 3 commits August 21, 2020 14:08
Co-authored-by: Anna Petrasova <kratochanna@gmail.com>
Co-authored-by: Anna Petrasova <kratochanna@gmail.com>
@petrasovaa
Copy link
Contributor

#994 incorporated the changes here.

@petrasovaa petrasovaa closed this Nov 22, 2020
@neteler neteler added this to the 8.0.0 milestone Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working gsoc Reserved for Google Summer of Code student(s) GUI wxGUI related
Projects
No open projects
New GUI Startup
  
PRs in progress
Development

Successfully merging this pull request may close these issues.

None yet

3 participants