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

Implement place formats #368

Merged

Conversation

Nick-Hall
Copy link
Member

I'm not completely happy with this yet.

The editor has a new field called "levels". It allows users to select hierarchy levels in the place loosely based on the python string slicing syntax. A number of colon ranges can be specified in a comma-separated list. "0" represents the lowest level - typically a building or street. "-1" represents the highest level - typically a country. The populated place is represented as "p".

For example:
"p:" = Populated place upwards.
"p,-1" = Populated place and country.

@codecov-io
Copy link

codecov-io commented Mar 27, 2017

Codecov Report

Merging #368 into maintenance/gramps50 will decrease coverage by 0.01%.
The diff coverage is 28.51%.

Impacted file tree graph

@@                   Coverage Diff                    @@
##           maintenance/gramps50     #368      +/-   ##
========================================================
- Coverage                 42.35%   42.34%   -0.02%     
========================================================
  Files                      1064     1065       +1     
  Lines                    141991   142191     +200     
========================================================
+ Hits                      60144    60210      +66     
- Misses                    81847    81981     +134
Impacted Files Coverage Δ
gramps/gui/displaystate.py 0% <ø> (ø) ⬆️
gramps/gui/configure.py 0% <0%> (ø) ⬆️
gramps/plugins/view/relview.py 0% <0%> (ø) ⬆️
gramps/gui/editors/editplaceformat.py 0% <0%> (ø)
gramps/plugins/lib/libpersonview.py 0% <0%> (ø) ⬆️
gramps/plugins/view/eventview.py 0% <0%> (ø) ⬆️
gramps/plugins/gramplet/persondetails.py 0% <0%> (ø) ⬆️
gramps/plugins/view/pedigreeview.py 0% <0%> (ø) ⬆️
gramps/plugins/lib/libplaceview.py 0% <0%> (ø) ⬆️
gramps/plugins/textreport/placereport.py 0% <0%> (ø) ⬆️
... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3f368b2...cbac988. Read the comment docs.

@ghost
Copy link

ghost commented Mar 29, 2017

Only had a quick look and found it can be accessed from the Edit>Preferences>Display tab and that the Places tab has been removed.

Pictures for the rest of you:

01_pr368_display_tab_preferences_new_entry

Selecting the Edit button from above brings this up.

02_pr368_place_format_editor

Entries in the drop down list.
03_pr368_place_format_editor_drop_down_list_shown

Would it make sense to have the initial "Full" entry as a read only default that's common for all user?

@Nick-Hall Nick-Hall requested review from bmatherly and removed request for bmatherly March 29, 2017 18:02
@Nick-Hall
Copy link
Member Author

Would it make sense to have the initial "Full" entry as a read only default that's common for all user?

Yes. I'll make it read-only.

@uli22
Copy link

uli22 commented Mar 31, 2017

Hi
can anybody give me an advice how I could download all those files and apply the changes to my gramps AIO or development version in one go. Is that possible or do I have to exchange every single file?
thanks
Uli

@prculley
Copy link
Contributor

prculley commented Mar 31, 2017 via email

@uli22
Copy link

uli22 commented Apr 1, 2017

Thank you for this useful enhancement!
editor works very well in gramps master with formats ["p:" = Populated place upwards],["p,-1" = Populated place and country.],[:]. It breakes and gives unhandled errors with [1,p House and city],[p,1 City and house]. It lets you restrict long place descriptions in reports and views.
some suggestions:
It would be useful to have an example of full place description and resulting one in the editor
It would be useful to toggle between time related description and todays format
cheers
Uli

@daleathan
Copy link
Contributor

@Nick-Hall The travis build on this failed a while ago, should we wait to test this or is it ok?

@Nick-Hall
Copy link
Member Author

@daleathan Thanks. It probably just needs a rebase.

@ghost
Copy link

ghost commented Apr 30, 2017

@Nick-Hall Looks like a bunch of test failing all related to place.

@Nick-Hall Nick-Hall modified the milestone: 5.1 May 28, 2017
@Nick-Hall Nick-Hall changed the base branch from master to maintenance/gramps50 February 12, 2018 19:10
@Nick-Hall Nick-Hall removed this from the v5.1 milestone Feb 12, 2018
@Nick-Hall Nick-Hall changed the title Create experimental place format editor Implement place formats Feb 12, 2018
@Nick-Hall Nick-Hall merged commit cbac988 into gramps-project:maintenance/gramps50 Feb 13, 2018
@sam-m888
Copy link
Member

sam-m888 commented Feb 14, 2018

@Nick-Hall
Copy link
Member Author

@sam-m888 Thanks for adding the images. I have updated the text.

@sam-m888
Copy link
Member

sam-m888 commented Feb 15, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants