Commit Graph

4686 Commits

Author SHA1 Message Date
Serge Noiraud
66680851f2
Narweb: add php session_start (#1169)
* Narweb: add php session_start

Fixes #12135

- remove php3
- remove duplicate code

* libhtml: better pylint score
2021-02-13 17:39:03 +01:00
Serge Noiraud
0bc546cb72
Calendar: Use the death symbol defined in pref (#1167) 2021-01-12 11:08:35 +01:00
Serge Noiraud
3d4ec8382d
Narweb: in cms mode, some inconsistent image links (#1157) 2020-12-29 10:01:25 +01:00
André Apitzsch
4b964b12dc Test: No need to check for mock support with Python 3.3+ 2020-11-15 21:28:19 +00:00
André Apitzsch
5d78b7aec3 Simplify code 2020-11-15 21:28:19 +00:00
André Apitzsch
adc50f7a08 Bump required Python version to 3.5 2020-11-15 21:28:19 +00:00
Serge Noiraud
31b80da797
Multiple languages ​​for the narrative web and optional other additions (#1051)
* Navweb: multi-language configuration.
* Navweb: multi-language exec, navigation menu, css
* Navweb: make css responsive for multi-language
* Language menu must work with a non english lang
* Avoid to copy common files for each language
* Use cms and archive in multi-languages
* Add the default index.
* Some cleanup.
* Images: performances improvement with image_size

Need to use the magic library (python-magic, python3-magic, ...)
If this library don't exist on the system, continue to use the Gdk method.

- force archive if we use CMS
- remove some unused code
- some strings are not translatable
- stay on the same page when you change language
- add image in the ancestor tree for all levels and not for the first 5

performances:
- copy images and thumbs only for the first language
* Some minor corrections and performances test
* Update comments for methods and functions
* Narweb: add show tags option
* Try to translate tags and suppress the colon (:)
* Narweb: integrate of webcal for multilang use
For each lang, we use the related calendar if it exists
* Death string only translated for the locale lang
* set correct url for extrapage.
* Add optional toggle for html sections
* show birth and death date if close option selected
* No background in references section with Mainz css
* Remove photo from list incompatible with multilang
* Add the first photo to the place page marker
* Add associated persons.
* Solves 'undefined' in map popup.
* Calendar: Set the background for the current day
* Thumbnail align problem with long description.
* Set the contact page date to the note date
* Add a scroll to top button.
* Increase the nb of generations since we can scroll
* Difficult to see the "go to top" icon.
* Better management for the toggle switch
2020-11-09 12:10:25 +01:00
Nick Hall
cc7ca7ff99 Support msgctxt in po files instead of a vertical bar in the msgid
For developers, an extra optional context parameter has been
added to the gettext functions. For example, _('point size|pt')
should now be written as _('pt', 'point size').

For translators this would appear in the message catalog as:

msgctxt "point size"
msgid "pt"
msgstr "pt"

Implements #3416.
2020-09-21 22:03:43 +01:00
Nick Hall
01403a0d03 Remove version qualifier 2020-09-16 22:50:58 +01:00
Nick Hall
b95b4258ef Another PyPI test release 2020-09-16 21:37:57 +01:00
Nick Hall
f15263e754 Create a development release for PyPI testing 2020-09-16 18:54:35 +01:00
Nick Hall
8408cea4b5 Move beta warning into the status bar 2020-09-16 17:45:30 +01:00
Nick Hall
bb1c784d04 Bump all version numbers to 5.2 2020-09-15 16:59:43 +01:00
bokfink
c7a4d287f0
Fix error in Birthday and Anniversary report (#1113)
Fixes an error triggered when the first person_handle in the list
has a death event, but no birth event (get_birth_ref() == None)
and does not have family relationships (spouse_handle == None).
These conditions lead to the local variable short_name not being
declared before it comes time to process death events.

Fixes #11766
2020-09-14 11:13:08 -05:00
Paul Culley
9938c71a1c
Fix EditEventRef, EditPlaceRef, EditMediaRef, EditRepoRef for improperly (#1112)
saving objects in their object lists.

Fixes #11917, #11933
2020-09-14 11:12:12 -05:00
Paul Culley
bd6e7c1007
Check & Repair: search and fix bad "links" in StyledTextTags (#1093)
Issue #11855
2020-09-14 11:11:14 -05:00
Paul Culley
c0d622c16a
Fix graphdoc to properly escape characters in ids for Graphviz (#1111)
Fixes #11741
2020-09-14 11:10:20 -05:00
John Ralls
b38f77f2aa
Replace inspect.stack() with inspect.currentframe() (#1104)
* Replace inspect.stack() with inspect.currentframe()

Fixes #11874

Works around https://bugs.python.org/issue12920 which causes every
call to inspect.trace() to fail because __main__ is always the
starting point.

* Fix a few Codecov complaints from files touched by previous commit.

Ignoring the "duplicate code" issue caused by the empty comment line
at the beginning of every file.
2020-09-14 11:08:58 -05:00
Paul Culley
198602be61
Fix crash sorting on columns in Selectors with TreeModels (#1099)
Fixes #11750
2020-09-14 11:04:12 -05:00
Paul Culley
3f9f3215ee
Fix progress bar freeze due to changes in Gtk (#1103)
Fixes #11642
2020-09-14 11:02:48 -05:00
Paul Culley
beb388a30d
Fix svgdrawdoc for text containing XML invalid characters (#1110)
Fixes #11929
2020-09-14 11:00:43 -05:00
Nick Hall
3ca82e2ebc Remove the resource-path file
Attempt to derive the resource path from the package path assuming that
one of the three main installation schemes has been used.

The package path will be one of the following:

  <prefix>/lib/pythonX.Y/site-packages
  <prefix>\Lib\site-packages

  <home>/lib/python

  <userbase>/lib/pythonX.Y/site-packages
  <userbase>\PythonXY\site-packages

  Where <prefix>, <home> and <userbase> are the resource paths used in the
  Prefix, Home and User installation schemes.

The use of the command line option "--install-data" in the setup script
is no longer supported.

This change is intended to allow a Gramps core package to be created
as a wheel and installed via pip.
2020-09-02 21:07:22 +01:00
prculley
e3b6076eef Merge branch 'gramps51' 2020-08-23 09:38:15 -05:00
Paul Culley
8000eaca2f
Add tooltips to sidebar filter 'Find' and 'Reset' buttons. (#1091)
Issue #11783
2020-08-21 09:50:15 -05:00
Paul Culley
8654c50594
Bug10853m (#1096)
* autobackup; add delay after wake from sleep/hibernate to allow time
for system to settle.

Fixes #10953

* Autobackup only if new commits since last autobackup in session
2020-08-21 09:46:18 -05:00
Alan Crosswell
261a3d8965
Fix GEDCOM import/export DATE/TIME creep by UTC offset. (#1089) 2020-08-21 09:38:06 -05:00
prculley
c59278ef20 Bump to 5.1.4 2020-08-12 12:05:25 -05:00
prculley
767557be61 Release Gramps 5.1.3 2020-08-12 11:28:29 -05:00
Serge Noiraud
04c1dc8503
Events View: "Main Participants" column does not (#1075)
show the full list of participants when expanded.

Fixes #11805
2020-08-10 15:08:51 -05:00
prculley
13d83919b9 Fix XML export when 'Group-as" name contains XML invalid chars
Fixes #11834
2020-07-25 10:15:39 -05:00
SNoiraud
62d5a136a4 NarWeb: Province place-type is not displayed 2020-07-25 10:15:07 -05:00
prculley
b57061d7c9 Fix ManagedWindow so that new windows don't appear offscreen
when system 'screen' sizes change in part time multi-monitor setups.

Fixes #11831
2020-07-25 10:13:57 -05:00
prculley
f7be7ab63f Fix menus when db fails to open due to upgrade/downgrade etc.
Fixes #11604
2020-07-25 10:10:56 -05:00
prculley
97923e7530 Fix issue with attach source tool, results panel
Fixes #11780
2020-07-25 10:09:52 -05:00
prculley
75aabf570d Fix GEDCOM export; don't include ADDR when address is missing
Fixes #11825
2020-07-25 10:08:58 -05:00
SNoiraud
41f1e91600 Coordinates containing a comma instead of a period
Fixes #11823
2020-07-25 10:08:22 -05:00
Stanislav Bolshakov
95776f8e84 AgeOnDate: fix position ob input field and button
On small screen (as notebook) input field and button are placed on screen's
bottom. After this fix this control have top position.
2020-07-09 10:26:10 -05:00
Stanislav Bolshakov
17a136d2d8 Fix: fix 2 comments (only) 2020-07-09 10:24:56 -05:00
Stanislav Bolshakov
d55775edd7 Pluginmanager: fix Pytho3 syntaksis
1. Run
python3 -m unittest discover -p 'date*test.py'
from
https://gramps-project.org/wiki/index.php/Date_Handler#Calendars
2. See errors,
3. Fix this errors.
2020-07-09 10:24:54 -05:00
Stanislav Bolshakov
97a88be39f Add missing file
After run
python3 setup.py build
I receive this error:

"package init file 'gramps/plugins/db/bsddb/__init__.py' not found (or not a
regular file)"

I copy file .../gramps/plugins/db/dbapi/__init__.py in /bsddb/.
Error not displayed.
2020-07-09 10:24:53 -05:00
Stanislav Bolshakov
715b93d109 NarrativeWeb: fix letters in comment
1. Insert missing letters in comments.
2. Termns to upper case (gregorian, javascript).
2020-07-09 10:24:44 -05:00
Stanislav Bolshakov
272f2feafa Fix comment: "translaed" to "translated"
My first commit: fix missing letter "t" in comment.
2020-07-09 10:24:41 -05:00
CWSchulze
319a36b2b8 replace obsolete file() -> open() 2020-07-09 09:17:10 -05:00
Bruno Cornec
a265f1fd38 Remove non-existent old attribute personal for an event 2020-07-09 08:56:07 -05:00
Sven Wehner
3f217aeed1 EditLink: When changing the link type choose the active object as default. 2020-07-09 08:55:00 -05:00
Sven Wehner
6f18918b9c EditLink: When creating a link, prefer linking persons over places, events, ..., and images. 2020-07-09 08:55:00 -05:00
Serge Noiraud
e8eb5bf0a1
NarrativeWeb should show patronymic in individuals (#1048)
In the individuals and in surnames pages, we should show the complete name
like defined in the display tab from the narrative web configuration.

Fixes #04404
2020-07-08 16:07:37 -05:00
Serge Noiraud
b523530fb0
Narrated Website Google Maps Output JS Warning (#1038)
SensorNotRequired:
The sensor parameter is no longer required for the Maps JavaScript API.
It won't prevent the Maps JavaScript API from working correctly, but we
recommend that you remove the sensor parameter from the script element.

Fixes #011654
2020-07-08 16:00:15 -05:00
pmraps
e66aa0d501
pt_PT Translations updated (#1029)
* po/pt_PT.po

Complete revision

* gramps/plugins/rel/rel_pt.py

Corrected a few relationships

* --all

pt Translations Update

* --all

pt Translations Update
2020-07-08 15:55:15 -05:00
giansalvo
0d698c13cc Fix bug 0011078: 'Default person' instead of 'Home person'
- modified button hints
- modified filter rules names and descriptions
- modified .pot and .po files
- substituted 'home person' with 'Home Person'
2020-07-07 15:40:47 -05:00
Nick Hall
c26d6902d1 Use event attribute types in the event reference editor
In the event reference editor, custom event attribute types
should be used rather than the default person attribute types.

Fixes #11576.
2020-06-30 15:55:11 -05:00
SNoiraud
b00b1f37f1 Fix typo in gui/configure.py and translation files
Fixes #11665
2020-06-30 15:48:26 -05:00
prculley
9230de61be Fix Verify tool bug caused by bad change in GObject introspection
Fixes: #11708
2020-06-30 15:27:19 -05:00
Nick Hall
513b27531d Remove Japanese from the incomplete translations
Japanese now has a coverage of 83.2% which is above the 70%
threshold.
2020-06-20 18:27:12 +01:00
Serge Noiraud
e375df1e2a
Navweb: incorrect link type for osm css files (#1071)
Fixes #011787
2020-06-07 20:10:01 +02:00
prculley
fa53805534 Merge branch 'maintenance/gramps51' of https://github.com/gramps-project/gramps into maintenance/gramps51 2020-06-07 09:59:37 -05:00
vantu5z
e614a79cef update Russian translation 2020-06-03 10:23:56 +03:00
prculley
343633a189 Fix some reports for CLI where warning message about Value not found
Fixes #11621
2020-05-15 15:03:15 -05:00
prculley
eb14abbf3e Fix Genealogy Tree reports for crash in CLI
Fixes #11621
2020-05-15 15:03:15 -05:00
prculley
47a83a82d7 Allow filter rules to access Family filters 2020-05-15 15:01:38 -05:00
prculley
5154d0c016 Add uistate to tree views filter initialization
Fixes #11657
2020-05-15 15:00:05 -05:00
prculley
a2c6641774 Fix GEDCOM import for bad source title when sources precede references.
Fixes #11610
2020-05-15 14:59:13 -05:00
prculley
924d82a7c4 Fix RemoveUnused tool for crash caused by Gtk introspection bug
Fixes #11634
2020-05-15 14:58:20 -05:00
prculley
f1f8847a86 Fix some Python syntax errors that appear in v3.8.x
Fixes #11641
2020-05-15 14:56:59 -05:00
SNoiraud
748fbd0949 Age: test if the death is the same day as birth 2020-05-15 14:55:15 -05:00
SNoiraud
e2e659dc94 Suppress age = 0 days in events list
If the reference event date is equal to the event date, don't show the age
except if the date is estimated, calculated, ...

Fixes #0007745
2020-05-15 14:55:15 -05:00
prculley
6cbc2b896d Fix Dashboard Gramplets to update during db close when not shown
Fixes #11632
2020-05-15 14:53:43 -05:00
prculley
d210275a4e Fix Windows GUI mode startup for crash with some languages
Fixes: #11612. #11490, #11518, #9179, #9201, #9266
2020-05-15 14:50:54 -05:00
prculley
0a3a65ffb0 Fix dbapi to support "Abandon Changes & Quit" feature
Fixes #11599
2020-05-15 14:49:55 -05:00
prculley
e34b98033e Fix GrampsType for comparison bug with empty string as one value
Fixes #11563
2020-05-15 14:47:06 -05:00
prculley
96de0ceb4e Fix Verify tool bug caused by bad change in GObject introspection
Fixes: #11708
2020-05-07 09:39:09 -05:00
Serge Noiraud
6d3505af62
Narweb: incorrect place index if alternate names (#1037)
* Narweb: incorrect place index if alternate names

The places page index doesn't show the alternate names used.

In the narrative web, the first phase is to select all places.
For each object, if we have a place, we memorize that depending on date.
When we create the place pages, we start from these information in the place
table. At this moment, we have no date.
So the sort by primary names gives an incorrect index list and the alternate
place names are missing.

Fixes #11645

* some cleanup
2020-05-05 23:27:11 +02:00
Serge Noiraud
0f88753a72
Narweb: Description message is not translatable (#1036) 2020-05-05 23:22:22 +02:00
prculley
a21cb546f7 Speed up Event displaytab and gramplet 2020-04-15 10:37:52 -05:00
Steve Youngs
490fb1ea3b Use the callback parameter passed to EditEvent.__init__ by passing it to EditPrimary.__init__.
This ensures self.callback is initialised as the calling code expects
2020-04-15 10:35:31 -05:00
Steve Youngs
a5b5910f7f For all types of EditPrimary window, consistently call self._do_close() before self.callback(), during save()
EditFamily, EditPerson, EditPlace, EditRepository and EditSource already call self._do_close() before self.callback().
2020-04-15 10:34:23 -05:00
Steve Youngs
2a17f8d99f EditRepository now stores the callback passed to __init__ and calls it during save().
This is for consistency with other types of EditPrimary.
2020-04-15 10:34:23 -05:00
Timo
349edca738 Use shorter name to reduce line length. 2020-04-13 12:04:51 -05:00
Timo
32230d673e Add option that allows to use the name of the individual as title. 2020-04-13 12:04:51 -05:00
prculley
67b83794ef Speed up Event, Media, and Repo reference editors 2020-04-13 12:01:34 -05:00
prculley
7d6113cf38 Speed up Place Reference Editor and Listview for enclose place
Fixes #11531
2020-04-13 12:01:34 -05:00
Mattkmmr
cc7c0a3f13 Update tag.py
- translation for menu strings added
- escape illegal characters in tag_name
2020-04-13 11:55:01 -05:00
prculley
dd63d479cd Faster Multiple Event delete 2020-04-13 11:53:16 -05:00
prculley
31bf3edf17 Faster Multiple Person Delete 2020-04-13 11:53:16 -05:00
prculley
1ce63261c3 Fix StatusBar for potential HandleError 2020-04-13 11:53:16 -05:00
prculley
06732b1b5d Fix Date Display so that it uses LC_TIME if defined
Fixes #11230
2020-04-13 11:51:23 -05:00
prculley
26b78c17af Fix StyledText so serialize will match for style list order changes
Fixes #11529
2020-04-13 11:45:15 -05:00
prculley
d83fff3b62 Try to fix exceptions on ManagedWindow close
Issues #10252, #10642, #10821, #11163, #11440, #11476, #11482, #11508
2020-04-13 11:36:24 -05:00
John Ralls
823bcaac0d Merge John Ralls's 'bug11639' into maintenance/gramps51 2020-04-08 13:09:17 -07:00
Serge Noiraud
3601877a63
Narweb: possibility to have more than 2 downloads (#1024)
* Narweb: possibility to have more than 2 downloads

By default, I set this to 3 downloads.
If you want to have more than 3 downloads, you have only the variable
self.__max_download to change in the narrativeweb.py.

* better pylint score.
* Narweb: add md5 checksum for each file
* Display a message if the file doesn't exist

Fixes #11626
2020-04-05 10:18:39 +02:00
Serge Noiraud
2ce32d8c6b
Narweb: Add family map to family pages (#1021)
* Narweb: Add family map to family pages
* Narweb: adapt css files to have a better look.

Fixes #011614
2020-04-05 10:17:42 +02:00
Serge Noiraud
23d2c8e694
Same date of birth and death gives an error. (#1011)
Fixes #011553
2020-04-04 09:52:50 +02:00
Serge Noiraud
28dc2e5158
Geography: add a popup for a bad tiles path (#1025) 2020-04-04 09:49:41 +02:00
Serge Noiraud
2baa6f5e40
Narweb: image size limit doesn't match tooltip (#1004)
Fixes #011536
2020-04-04 09:45:54 +02:00
John Ralls
eb1b4c1eb5 Protect SQLite3 locale from old-style Unicode locale characters.
PySQLite3 requires that collation names have only ascii alphanumerics
and _. ICU locales use old-style Unicode specifiers and passing them to
create_locale will raise an exception. Translate those characters into
underscores.

Fixes #11639
2020-04-01 09:01:37 -07:00
prculley
690e8b308e Smoother progress for Rebuid reference maps/secondary indices 2020-02-18 16:06:13 -06:00
prculley
aeed7edd46 Prevent bsddb from being selected/used 2020-02-18 16:06:13 -06:00
prculley
ae66ada99c Stop using bsddb in tests 2020-02-18 16:06:13 -06:00
prculley
b52c118673 Deprecate BSDDB, but allow to be loaded with convert to sqlite 2020-02-18 16:06:13 -06:00
prculley
7ae77abead Fix GEDCOM export of estimated/calculated dates with modifers
Fixes #11513
2020-02-04 15:57:40 +00:00
Serge Noiraud
763f2738dd
NAVWEB and WEBCAL: some minor corrections (#980)
* NAVWEB: set unused media to False by default

Fixes #11496

* Navweb: Center correctly the map in the web page

* Webcal: Dropmenu doesn't work if only one year.

* Navweb: Add notes to updates and delete empty rows

* Navweb: some code cleanup.

* Navweb: remove unused variable

* Narweb: references enhancement on place pages.

* Navweb: convert the years in gregorian cal.

* Narweb: remove unused argument

* Narweb: really solves the pyICU problem

* WEBCAL: missing death symbol
2020-01-17 11:46:40 +01:00
prculley
5624fb1490 Bump to v5.1.3 2020-01-10 11:43:58 -06:00
prculley
32c700c6bf Release Gramps 5.1.2 2020-01-10 11:29:07 -06:00
Serge Noiraud
a2ae7b93fc
Geography: Add custom tiles provider (#976)
* Geography: Add custom tiles provider

Fixes #11416

* Geography: some cleanup
2020-01-10 17:40:33 +01:00
Serge Noiraud
675dfdbc70
Narrated Web: bad event links on media pages (#983)
* Navweb: Don't use media regions in some case:

- If we don't show families
- If we don't show events

Fixes #011500

* Navweb: side effect between event and media pages

When a media is processed in the media display section for an event
page, it's remove from the media_list, so when we try to create the
media regions in the media page, the media list is empty and we
can't display the regions.

* Narweb: Don't show the regions for a thumbnail
2020-01-10 17:38:41 +01:00
Serge Noiraud
8184f1b603
Narweb: enclosed places not correctly sorted. (#977)
* Narweb: enclosed places nor correctly sorted.

Fixes #11487

* Narweb: some cleanup
2020-01-10 17:32:58 +01:00
Nick Hall
34beeaad70 Revert pull request #965
This reverts commit 801be84465.
2020-01-09 19:35:47 +00:00
Sam Manzi
50d8b110ae Add context menu entries for Gramplet Bar (#937)
Link to help for Gramplets and the Gramplet Bar Menu

Issue #10919
2020-01-09 12:16:14 -06:00
Sam Manzi
539a443639 Pedigree View - Add Help context menu (#938)
* Add [About Pedigree View]

Fixes #10919
2020-01-09 12:15:10 -06:00
Serge Noiraud
06cb9d7ea6 Narweb: Private notes for home, intro and contact (#953)
If the notes are private, we can't use them in these pages.
2020-01-09 12:09:25 -06:00
Moorob
0264dbbe43 Update _pythonmime.py (#972)
When editing a Media image, Unknown is displayed if the image is a Tiff or Png.  This changes this to display TIFF image or PNG image instead.  Just a cosmetic change.
2020-01-09 12:06:49 -06:00
Paul Culley
d693881b98
Update LDS Temple list (#984) 2020-01-09 12:04:15 -06:00
Paul Culley
801be84465
Fix Lat/Long translated NSEW display and entry in rtl language;Store Lat/Long in place objects with NSEW always in English (#965)
* Fix Lat/Long translated NSEW display and entry in rtl language

* Store Lat/Long in place objects with NSEW always in English

Issue #11335
2020-01-09 12:03:20 -06:00
Paul Culley
f46e5479a7
Improve CSV import to allow places that are not in enclosed order (#942)
* Improve CSV import to allow places that are not in enclosed order

Fixes #11407

* Add LOG.debug report of new places to CSV import
2020-01-09 12:01:56 -06:00
Paul Culley
7807ff8a6d
Make GuiDestinationOption Folder Icon start in users directory (#979)
Fixes #10917
2020-01-09 12:00:29 -06:00
Paul Culley
672603c8ae
Fix import file chooser filter to accept upper case extensions (#962)
* Fix import file chooser filter to accept upper case extensions

Fixes #11463

* Allow import file filter to accept case insensitive extensions

Co-authored-by: Nick Hall <nick-h@gramps-project.org>
2020-01-09 11:56:07 -06:00
Paul Culley
c30dfc6343
Fix db to warn/prevent opening newer schema versions (#945) 2020-01-09 11:38:16 -06:00
Paul Culley
e6ed0612e3
Fix Progen import to correctly handle AKA surnames (#959)
* Fix Progen import dialog and progress meter for correct parent window

* Fix Progen import to correctly handle AKA surnames

Fixes #11462
2020-01-09 11:37:31 -06:00
Paul Culley
9b0cf1b976
Fix ExportPkg so errors are not lost, and has progress bar for media (#957)
* Fix Export Assistant so error messages get correct parent window

* Fix ExportPkg so errors are not lost, and has progress bar for media

Fixes #11457
2020-01-09 11:36:38 -06:00
Paul Culley
ddb29b1628
Fix GEDCOM import when family is missing; import created a missing note (#971)
Fixes #11472
2020-01-09 11:35:28 -06:00
Paul Culley
1a8406e2e4
Fix Dashboard for adding Gramplet crash in Slovenian (#978)
Fixes #11491
2020-01-09 11:34:15 -06:00
Jiří Vejda
1916383a28 Update date parsing for czech locale (#968)
* Fixes bug ID 0011470: some date variants in CS language are not consider valid
2019-12-15 13:03:30 +01:00
Serge Noiraud
3938fac0d4
Narrative web: New features (#842)
* Narrative: Don't use event links if no event pages

+ some pylint changes

* map popup links must be visible for all stylesheet

* Narrative web: add scrollbar in popup content

* Narweb: Some improvement in popup

* Narweb: remove unused variable.
2019-12-15 09:59:58 +01:00
Serge Noiraud
ac37f11b87
Add tooltips for places in clean input data tool (#905)
* Add tooltips for places in clean input data

* Better pylint score for clean input data
2019-12-14 13:40:49 +01:00
Serge Noiraud
fd072528d2
Narrative web: Some improvements (#931)
* Narrative web: Some improvements

- Event type, Date and place in bold
- Family events shifted one column on the left
- ancestortree css file before narrative-screen to allow modification
- Adaptation for all themes

Fixes #11393

* Narrative web: forgot a comma during last merge

* Allow scrolling if the ancestor tree is too large

* Translation of alternate stylesheets name

* Crash when using the family map

* Translate only the css title, not the file name

* Some minor corrections to css files

* Narrative web: open layers optimizations

* Narrative web: open layers and link in popup

* Narrative web: some events missing in popup

* Narrative web: Reference date column too large.

Allow the place title to use the maximum of width

* NarrativeWeb: shift children from one column

- adapt the css files to the new table
- some inconsistencies between the source and the css

* Make the drop down menu button size usable

* NarrativeWeb: Incorrect rendering when use of

alternate place name

* NarWeb: removing the unused image heigth option

* Click on image link gives a not found URL.

If the image used in home, introduction or contact page
is not already associated by a filtered object, we have a 404 error

* NarWeb: Index images and thumbnails pages optional

* Narweb: Improper Notes subtitle in web pages

* Narweb: List index truncated after 999

* Narweb: NarrativeWeb usage enhancements

* Narweb: avoid duplicate files in archive.

* Narweb: Add an optional news and updates page:

When you have a big database and you make intensive updates, it's
useful to have a list of the last modified objects.
you can select the period to show and how many records to see per object type.

* Narweb: forgot to add the module updates.py

* Narweb: some minor changes (pylint, img index bug)

* Popups don't work with the last openlayers version

It only needs to move the scripts at the end of the html body.
Use addEventListener instead of onload in the html body statement.

* Narweb: some popup problems

* Narweb: better score for pylint
2019-12-14 11:55:16 +01:00
romjerome
7b45bbf72e
fix tagref support (#956)
Add missing code for event, repository, source, citation and place
2019-12-13 10:59:42 +01:00
romjerome
aea9ef3645
[Tree doc Tex] fix "-" char on place name (#961)
* fix "-" char on place name

"-" can lead to confusion, 
generating text out of the box
with PDF file format
2019-12-13 10:55:15 +01:00
Serge Noiraud
5157700da3
WEBCAL: Trying to have a better web calendar (#917)
* WEBCAL: Have config files for multiple databases.

* WEBCAL: best management for the narrative web link

* WEBCAL: use arrows, compress monthname and arrows

adapt the css files accordingly

* WEBCAL: use arrows in one day within a year

compress monthname and arrows
adapt the css files accordingly

* WEBCAL: index go now to the current month.

before this patch, the default month for the year calendar
was the month found at the web calendar generation.
Now, even if you create this report 8 months ago, the current
index will point to the current month.

* WEBCAL: trailing space.

* WEBCAL: year glance + some pylint improvements

* WEBCAL: incorrect width size with Mainz css.

* WEBCAL: problem with Visually css file

* WEBCAL: The table cell is highlighted when hover.

* WEBCAL: better pylint score.

* WEBCAL: Better rendering for full yer at a glance

* WEBCAL: better rendering on small devices

* WEBCAL: better quality code
2019-12-12 18:10:25 +01:00
romjerome
05f7744cba
typo on custom size (#963) 2019-12-09 20:25:07 +01:00
prculley
e3eedb2219 Merge branch 'gramps51' 2019-11-08 11:46:40 -06:00
Paul Culley
b7487330a7 Fix up Event Editors Place display for bidi text with Gramps ID (#924)
Fixes #10124

Fix up Event Editors Place display for bidi text with Gramps ID (PR 924)

Some versions of Gtk/Pango have trouble with text containing both LTR and RTL characters. The bug notes this shows up in our Event Editor on the 'Place" field, where we have the place displayer title and the Gramps ID concatenated into the same string.

In older versions of Gtk (3.18.9 tested) the bracket around the Gramps ID would get mangled to the beginning of the string:
<images>

In newer versions of Gtk (3.24.3 tested) it was better to start with:
<images>

The older version of Gtk/Pango doesn't seem to properly interpret all of the potential Unicode bidi control characters, so the fix shown is the best I can do. The fixed version of the newer Gtk version is what is desired.

I note that the Place displayer should be fixed up to use more appropriate separators than just commas for RTL text, but that is another issue.
2019-11-05 13:00:48 +11:00
Paul Culley
1025a38caa Fix issues with RTL languages and LAT/LONG (#922)
* Fix display of GPS coordinates in Places view for RTL languages

Issue #11335

* Fix place editor lat/long entry for RTL languages

Fixes #11335
2019-11-05 12:42:09 +11:00
Paul Culley
2054c467db Fix GEDCOM export to avoid translated GrampsType strings (#947)
Fixes #11410

The bug submitter noticed that the GEDCOM export contained translated strings in the MEDI lines of his export. GEDCOM should contain English values for most such cases where 'types' are exported.

I scanned the export code for other potential cases, and found:

* Certain unexpected event types on individuals (Marriage)
* Certain unexpected event types on families (Immigration, Residence, etc.)
* Pedigree types that were not standardized on PEDI,_FREL,_MREL (Sponsored, Unknown)
* Family Attributes other than Number if children (Caste, Description, National etc.)
* Personal Attributes other than Caste, Description, ID, National, number of children, SSN (Occupation etc.)
* The MEDI types of this bug report...
2019-11-05 12:22:26 +11:00
Serge Noiraud
789b72289c Narrativeweb: Referenced regions problems (#946)
When image width > 800, the referenced regions are incorrectly placed

Fixes #11414
2019-11-05 12:06:06 +11:00
Paul Culley
2e1132bec0 Allow Tools with Notbook tabs to expand to fill the window (#944)
Fixes #10762

User "petpil" (Gramps Bugtracker) noted that the Calculate Estimated Dates addon would not expand the size of its window content when the window was stretched. That addon used the ToolManagedWindowBatch which uses a Gtk Notebook to support several tabs. He also submitted a patch which fixes the problem.

The Gtk.Container.add method originally used apparently did not have expand/fill settings to allow the expansion. The Gtk.Box.pack_start used instead does.

I tested this with all the users of ToolManagedWindowBatch and ToolManagedWindow which inherit from ToolManagedWindowBase, and did not see any bad/unexpected side effects. The Calculate Estimated Dates addon was the only one that really could use this, as it was the only one which I spotted using a potentially large widget in the notebook tab.
2019-11-05 11:44:23 +11:00
Nick Hall
e69e6ca338 Limit Age Stats gramplet settings to appropriate values (#936)
* Max ages should be divisible by 5 to avoid out of range
  errors.
* The chart width should be greater than 45 to look right and
  avoid division by zero errors.
2019-10-30 09:35:32 +11:00
Paul Culley
fb29a77f83 Fix the Preferences 'Age display precision' value getting lost (#940)
Fixes #11384

It turns out the changes was actually changing the wrong config setting...

I had to look this one up. Using a lambda like this is called a 'closure' by some; what is happening is that the value 'constant' is being evaluated at the time the lambda is called, not when it is assigned. So in this particular bit of code the preference setting was actually changing 'preferences.family-relation-type' (the value of the variable 'constant' set a bit after the lambda definition.

I reverted this particular bit of code, as I think this kind of Python knowledge is pretty obscure (I could have just used a different unique name for the 'constant' variable).
2019-10-30 09:17:06 +11:00
Paul Culley
73d19851ef Fix Window family tree title for non-ASCII chars on Windows (#932)
Fixes #11390

As it says, if Family Tree name contained non-ASCII characters, the titlebar on Windows would display it wrong. Turned out to be reading of a utf8 file without the 'encoding' set. On Windows this results in using the default encoding which is one of the code pages, NOT utf8.
2019-10-24 10:24:04 +11:00
Paul Culley
16c8e61944 Fix Preferences/Genealogical Symbols when only one font is present (#930)
that passes

If user has only a single font available that passes check for the Genealogical Symbols being all present, the original code crashed. Apparently never tested... #598 

Fixes #11395
2019-10-24 10:07:52 +11:00
Paul Culley
79c54aaedc Fix various Entry fields so Undo/Redo works (#920)
Fixes #11380, #11339

In prior versions of Gramps you could use the undo/redo keys to edit items in the text entries. This no longer works.

This is related to the changes to suppress odd characters and leading/trailing spaces. The Gtk.Entry.set_text() call is effectively clearing the undo/redo list at every keystroke or when you leave the field.

In this PR I move the odd characters cleanup into UndoableEntry.do_insert_text instead of MonitoredEntry.

I scanned the users of MonitoredEntry and they all appeared to use Glade files, I scanned the glade files for anyone using just plain Entry (none found), they all appeared to use UndoableEntry or ValidatableMaskedEntry, so this should cover everyone.
2019-10-17 13:15:39 +11:00
Serge Noiraud
ee1d9be898 Narrative web: Ancestor's tree Fix display looks weird (#929)
* Narrative web: Ancestor's tree display looks weird

Solves the following:
- Person boxes overlap
- Some person boxes partially visible or hidden

Fixes #11382

* Narrative web: some cleanup in ancestortree.css

* Narrative web : ancestor tree and long names.

* Adapt ancestor tree css file for all themes
2019-10-17 11:17:31 +11:00
romjerome
75b0b66269 Fix tag colors on PedigreeView (#915)
Fixes #11363

* Handle long and short hex format black color

* Fix hex_to_rgb_float utility function
2019-10-17 10:57:36 +11:00
Paul Culley
c54f381737 Fix Gramps -v error when Gtk is not present (#923)
Via email a user noted a bug when "Gramps -v" was used with Gtk not installed (and gi was).
When the "gi.require_version('Gtk', '3.0')" was added during Gramps 5.0.0 timeframe, a corresponding exception was not.
2019-10-17 10:23:21 +11:00
Serge Noiraud
2aa6b54de4 NarrativeWeb: dates not localised in place pages (#916)
* NarrativeWeb: dates not localised in place pages

Fixes #11357

* WEBCAL: home link translated to lowercase

Fixes #11358
2019-10-17 10:07:59 +11:00
Baizley
49bad564ae Patch for PedigreeView not reflecting changes to birthday or death (#921)
Fixes #11366

* Make PedigreeView listen on event update signals.

The PedigreeView was not listening for updates on events, so changes to a birthday or death would not be reflected in the view.

* Remove comment about signal side-effects.
2019-10-17 09:23:02 +11:00
Paul Culley
03ab64c4d5 Fix improper escaping in odt output for TOC/Bookmark etc. (#928)
Fixes #11378

For the index, toc, bookmark etc. normal XML escape is correct, the original code also added sub-tags for line break and tab which was NOT correct.
2019-10-17 09:03:29 +11:00
Paul Culley
f7bd062bdb Fix CLI parser to accept negative integers as valid (#927)
Fixes #11381
2019-10-17 08:47:55 +11:00
Paul Culley
c312c96987 Fix Descendant Tree report for HandleError when no parents on family (#925)
Fixes #11365
2019-10-17 08:33:39 +11:00
prculley
0095a07f12 Fix Reorder ID tool to avoid scrambling the order IDs are assigned
Fixes #10641
2019-10-08 18:43:42 +01:00
prculley
bb5b03dd78 Fix Reorder ID tool so subsequent db additions used next possible ID
Fixes #11346
2019-10-08 18:43:42 +01:00
SNoiraud
4e2f98da02 Better score for pylint 2019-10-05 18:05:21 +01:00
SNoiraud
95a0216287 Duplicate marriage 2019-10-05 18:05:21 +01:00
SNoiraud
03fb2ff1c2 Incorrect results when divorce event 2019-10-05 18:05:15 +01:00
SNoiraud
17141a0536 Add alternate stylesheets 2019-10-05 18:03:03 +01:00
SNoiraud
528852b9b3 Allow alternate stylesheets in pages
Useful when you create a site web, you don't need to create a new
web when you are testing the stylesheets. The final user can change
the stylesheet for the current page.

i.e. on Firefox: View -> Page style -> The stylesheet
2019-10-05 18:02:51 +01:00
SNoiraud
0de286e7a8 Allow urls for images in user css files 2019-10-05 17:59:17 +01:00
SNoiraud
7979bf79fd Better code quality for within area rule 2019-10-05 17:28:21 +01:00
prculley
57f7502105 Fix deprecation of Gtk positional arguments 2019-10-05 17:17:54 +01:00
prculley
0f925a86f5 Fix Gtk deprecation Menu.set_title 2019-10-05 17:17:54 +01:00
prculley
17f4d93363 Fix Gtk deprecatioon ScrolledWindow.add_with_viewport 2019-10-05 17:17:54 +01:00
prculley
cea48b618f Fix GObject.PARAM_READWRITE deprecation 2019-10-05 17:17:54 +01:00
prculley
290d6f7287 Fix deprecation GObject.GError -> GLib.GError 2019-10-05 17:17:54 +01:00
prculley
4d0e86a2e8 Fix Gtk deprecation Widget.reparent 2019-10-05 17:17:54 +01:00
prculley
831c7f9c66 Fix Gtk deprecation Widget.set_padding 2019-10-05 17:17:54 +01:00
prculley
702e51dd47 Fix deprecation on Gtk.Widget.override_font and modify_font 2019-10-05 17:17:54 +01:00
Jonas Hahnfeld
f3555d0168 Add new graph output format to the tree document generator
The "graph" is the data part for genealogytree without the boilerplate
code around it that makes up a full LaTeX file. This format is useful
for people who have their own (more sophisticated) LaTeX file with
custom styles and so on.
The implementation is pretty straight-forward: Just don't output the
LaTeX code.
2019-10-05 17:05:38 +01:00
Matthias Kemmer
bedc4b8e74 Add a new person filter rule 'HasAddressText' 2019-10-04 21:07:52 +01:00
Matthias Kemmer
8a8a21f85d Add date format option for 'numeric date with leading zeros' 2019-10-04 19:59:54 +01:00
Nick Hall
c7350c53e2 Remove irrelevant comment 2019-10-04 19:54:00 +01:00
Fredrik Lindseth
52e76b506a Add descriptions to decendant tree report styles 2019-10-04 19:18:16 +01:00
Matthias Kemmer
ab52d0988e Remove tag from selected rows 2019-10-03 21:28:33 +01:00
Matthias Kemmer
5935a315b2 Add 'HasAttribute' filter rule to repositories, sources and citations
Fixes #9845
2019-10-03 21:05:14 +01:00
prculley
a07aae2e30 Fix export tests to actually test most files, and run for both dbs 2019-10-03 19:56:27 +01:00
prculley
8f5daac4a7 Fix exports to have consistent results 2019-10-03 19:56:27 +01:00
prculley
0cd6394b72 Upgrade export VCalendar to v2.0, so can export utf8
Fixes #11316
2019-10-03 19:56:27 +01:00
SNoiraud
57d8dcd574 WEBCAL: Wrong web calendar title on home page
Fixes #11354

This PR solves the possibility to have ">", "<" in the title
2019-10-03 19:50:04 +01:00
prculley
d5bb4da5a1 Fix Preferences so <ctrl>PageUp/PageDn doesn't stick on Dates tab
Fixes #11351
2019-10-03 19:41:05 +01:00
ailintom
5c44d925e1 Escape for name, dates and places in graph reports
Currently dates and places contain XML special characters (example: birth date
= "1867 <?>"), the item is rendered incorrectly in the report, when images are
included. Escaping special characters with html.escape solves the problem.

Also fixes the & sign in the name, which earlier caused the report to fail.
2019-10-03 19:08:57 +01:00
Paul Culley
c7e2e09b42 Fix 'Go' menu direct object selection, goes to wrong place (#907)
Fixes #11341

Fixes up the scrambled 'Go' menu, got messed up in the UIManager upgrade.
2019-09-25 11:39:58 +10:00
prculley
1eaa609058 Get BetaWarning correct for master 2019-09-16 11:13:08 -05:00
prculley
5f0c2c1c54 Set Beta warning to True 2019-09-16 11:02:03 -05:00
prculley
6d39920e6f Merge branch 'gramps51' 2019-09-16 10:54:55 -05:00
Nick Hall
710e40425f Bump to 5.1.2 2019-09-14 23:40:42 +01:00
Nick Hall
bb3eecb365 Release Gramps 5.1.1 2019-09-14 23:32:29 +01:00
SNoiraud
4379a09fd3 Fix deprecation warning in withinarea rule 2019-09-14 22:36:06 +01:00
Nick Hall
0dc2be6dd5 Disable development warning message 2019-09-14 19:25:22 +01:00
Jonas Hahnfeld
daa845492d Add options to sandclock in tree document generator
This works and is actually needed to style the root node.
2019-09-14 19:03:18 +01:00
SNoiraud
cc28935b15 Using regex in the sidebar gives different result
from previous gramps release.

Fixes #11321
2019-09-14 18:45:09 +01:00
prculley
c3206121df Fix odt output when db owner has XML unfriendly chars ('&')
Fixes #11327
2019-09-14 18:37:30 +01:00
SNoiraud
82cd211d29 Remove reload_custom_filters to conform to PR894 2019-09-13 15:48:50 +01:00
prculley
4244d70312 Fix CLI crash when generating reports
Fixes #11318, #11213
2019-09-13 15:45:12 +01:00
prculley
98cc9b3740 Fix Statusbar HandleError on merge families
Fixes #11320, #11294, #11279
2019-09-13 15:43:26 +01:00
prculley
846a4d1a32 Fix missing tooltip translations in the Note editor toolbar
Fixes #11289
2019-09-09 19:23:07 +01:00
SNoiraud
5767b9c3c8 Avoid bad coordinates in the ref place 2019-09-09 19:12:35 +01:00
SNoiraud
d397b83dc8 Avoid alphabetic characters in filter rules 2019-09-09 19:12:23 +01:00
SNoiraud
7617891faf Could not convert string to float
by using withinarea filter rule
+ difference between sidebar filter and filter rule
+ some pylint improvements
2019-09-09 19:11:59 +01:00
prculley
d096d269c7 Fix Graph outputs for multiple page PDF Postscript
Fixes #11305
2019-09-07 19:49:57 +01:00
prculley
e983578fff Fix to make Gtk 'action names' always valid
Fixes #11291
2019-09-07 19:40:45 +01:00
prculley
e10df9eb6d Fix missing menus/buttons when operating in non-English languages
Fixes #11292
2019-09-07 19:33:01 +01:00
SNoiraud
14acaca0b5 Cursor position error in lat and long fields
Fixes #11310
2019-09-07 19:16:00 +01:00