Commit Graph

3081 Commits

Author SHA1 Message Date
SNoiraud
675ae1a8d4 8128: GtkDialog mapped without a transient parent 2016-08-03 22:42:45 +02:00
Paul Franklin
2a7907c6c1 Merge pull request #215 from prculley/dialog
Bug 8128 for libgedcom; Ensure no popup under CLI for warning
2016-08-03 20:24:05 +00:00
prculley
ce93e0505f Ensure no popup under CLI for warning 2016-08-03 11:56:08 -05:00
SNoiraud
e7e46cb067 Geography: Avoid crash is OsmGps not initialized 2016-08-03 14:32:16 +02:00
SNoiraud
30050d403d 8128: GtkDialog mapped without a transient parent (Geography) 2016-08-03 14:23:32 +02:00
prculley
f43452e844 Bug 8128 for importgedcom and libgedcom; dialog parent= 2016-08-02 18:42:13 -05:00
Paul Franklin
eeaaac060e better handle an unlikely error in the Complete Individual report 2016-08-01 16:30:46 -07:00
kulath
c217eaae4d Replace %s with ? as requested by Doug Blank. 2016-08-01 23:29:46 +01:00
Paul Franklin
d9ec7d5e2a 8128: GtkDialog mapped without a transient parent 2016-08-01 12:16:58 -07:00
kulath
fcf1c1d13b Improve pylint to 10.0 2016-08-01 17:37:26 +01:00
kulath
3461316067 0009515: DBAPI:
gramps.plugins.database.dbapi_support.sqlite.Sqlite.try_execute ignores
errors Check if the table 'person' exists to determine whether the
database is new.
2016-08-01 16:34:46 +01:00
Paul Franklin
b40c92465a 8128: GtkDialog mapped without a transient parent
In the process of searching for uses of ErrorDialog which
did not have a "parent" argument, I stumbled on this module
-- and noticed something different in it.

Benny changed the original "ErrorDialog" calls to a
"ERROR = ErrorDialog" variant in
9a2fd50642
on 30 January 2011, "to allow a QML interface" (which by the
way has subsequently been removed from the mainline gramps
code).

In the same commit, in cli/clidbman.py, he added an
_errordialog function and an "ERROR = _errordialog" line,
evidently so all DB errors, no matter whether in GUI or CLI
code, could be changed to things like:

ERROR(_("Could not rename family tree"), str(msg))

But then in 16 February 2011 MDNauta, in
7c1b26d969
changed the generic ERROR to either DbManager.ERROR or else
CLIDbManager.ERROR, depending on whether it was in GUI code
or CLI code.

Which of course defeated the purpose of the change to the
generic call, so I have changed it back to the original
ErrorDialog call, directly.

The decision was made even easier by noticing lots of
more-recent error-handling code which used the ErrorDialog
form as opposed to Benny's variant.
2016-07-31 18:32:33 -07:00
Paul Franklin
ea82fc981d 8128: GtkDialog mapped without a transient parent 2016-07-30 17:01:34 -07:00
Paul Franklin
b17f9c343a slightly generalize the running-master warning message 2016-07-29 23:31:06 -07:00
prculley
069cf4c880 Gedcom import media improvements part 2 2016-07-27 10:33:56 -05:00
kulath
4f1eed7170 2092: Problems when no database is open. Partial fix. Inactivate
inappropriate main menu items when there is no database, ensure uniform
main window title and implement a close button on the Family Trees menu.
2016-07-26 19:23:01 +01:00
Nick Hall
85b0b654bf 9427: Add new argument to IsEnclosedByRule 2016-07-26 18:37:56 +01:00
SNoiraud
480819dde8 9598: Geography : Add a message to clarify things in geoplaces 2016-07-26 10:01:34 +02:00
SNoiraud
92f7631fe3 Narrativeweb : place title must agree the references.place-auto configuration 2016-07-26 09:37:41 +02:00
Paul Franklin
a512c9d5eb improve pylint score on some CLI files
cli/arghandler.py went from 8.30 to 9.52
cli/argparser.py went from 8.43 to 9.74
cli/grampscli.py went from 7.99 to 9.29
cli/plug/__init__.py went from 7.63 to 9.69
2016-07-25 12:56:56 -07:00
Paul Franklin
f1b5e5eb07 move comment lines higher, to keep out of gramps.pot
The problem is that "nearby" comments are put into the
gramps.pot template, to aid the translator, but these
comments are referring to an untranslated string, which
then confuses the translator, who wonders if the string
flagged for translation should be translated after all.

The solution is to move the comment futher away, so it
is no longer "nearby" the translated string.

http://gramps.1791082.n4.nabble.com/Fw-Translation-question-td4676138.html
2016-07-23 14:56:44 -07:00
Paul Franklin
c6d4eee407 increase pylint score by 2.11 2016-07-22 19:27:57 -07:00
Paul Franklin
b6d8223192 8128: GtkDialog mapped without a transient parent 2016-07-22 19:26:24 -07:00
Doug Blank
64ece7f978 Removed unused dbapi.rebuild_gender_stats()
Thanks to Paul F. for finding this.
2016-07-22 07:18:01 -04:00
Doug Blank
22afe47966 DB-API: remove duplicate indexing calls 2016-07-21 07:46:55 -04:00
Paul Franklin
7fe4b6a079 his name is spelled "d'Aboville" and not "D'Aboville" 2016-07-20 22:33:10 -07:00
Doug Blank
c817554dbf 9588: DB-API import loses researcher and bookmarks 2016-07-21 00:07:51 -04:00
Doug Blank
894e74d127 9554: example.gramps map has different value, and should return correct type 2016-07-19 21:11:18 -04:00
Paul Franklin
919f127aed add some docstrings to the DDR, to make pylint slightly happier 2016-07-19 15:16:01 -07:00
Craig J. Anderson
72daa89abc Enhance the Descendant Report and Detailed Descendant Report
This fulfills both feature request 5902 and feature request 8297.

It adds the D'Aboville numbering system and the Henry
numbering system to the Descendant Report, as requested.

It also adds the Modified Henry numbering system to both reports.
2016-07-19 15:12:33 -07:00
Doug Blank
ac211252bb 9554: import-to-export of example.gramps map has different value 2016-07-17 08:23:35 -04:00
Jérôme Rapinat
b3d9cfaac5 9578: Some strings in tools and report dialogs will not translate 2016-07-16 16:58:11 -07:00
Doug Blank
e257403b7d Merge pull request #202 from prculley/bug9552
Bug9552 Export to '.wft' file crashes if Unicode characters are present on Windows
2016-07-16 17:42:53 -04:00
prculley
a879d0e485 bug 9552 Export to '.wft' file crashes if Unicode characters are present on Windows 2016-07-16 16:22:43 -05:00
Doug Blank
ceac20aafc Merge pull request #201 from prculley/bug9501
Bug9501
2016-07-16 17:21:02 -04:00
prculley
f7f708225f Bug 9552 Web Family tree export should be utf-8 2016-07-16 16:14:43 -05:00
prculley
ccaad576a2 enable export test 2016-07-16 16:02:01 -05:00
prculley
d524bdd512 bug 9501 CSV import/export messes up places 2016-07-16 15:49:17 -05:00
Doug Blank
f419dc9a8b Removed some executable settings on sources files (prevented tests from running) 2016-07-16 16:44:08 -04:00
Doug Blank
6f5e2a4e70 Merge pull request #198 from prculley/FTM_LINK
bug 9581 Gedcom import of FTM .ged file containing _LINK tags not supported
2016-07-16 16:02:37 -04:00
Nick Hall
3c219d545e Restrict DBAPI selection to power users 2016-07-16 19:41:53 +01:00
prculley
aa92fa55a9 bug 9581 Gedcom import of FTM .ged file containing _LINK tags not supported 2016-07-16 11:51:00 -05:00
Doug Blank
61f6015aba Merge pull request #191 from prculley/bug9479
Bug 9479 Gedcom import loses spaces in text fields from FTM
2016-07-16 12:03:37 -04:00
prculley
e6923620ea Typo 2016-07-16 10:48:26 -05:00
Doug Blank
523abbf722 Merge pull request #196 from prculley/FTM_photo
Bug (Feature) 9580 Gedcom import of FTM file containing _PHOTO tags
2016-07-16 11:23:03 -04:00
Doug Blank
ea2c36b100 Merge pull request #194 from prculley/bug9579m
bug 9579 Gedcom import of FTM file with OCCU record crashes import
2016-07-16 11:22:08 -04:00
Doug Blank
227821b234 Merge pull request #193 from prculley/Ged1
Bug 9575, Gedcom import improvements in media area to support v5.5.1 and FTM
2016-07-16 11:20:36 -04:00
Doug Blank
6792eb88d7 Merge pull request #185 from prculley/bug9561
Bug 9561, fix for intermittent plugin recognition via CLI
2016-07-16 11:16:51 -04:00
Doug Blank
52a7918dba Merge pull request #180 from prculley/export
Export test module
2016-07-16 11:13:09 -04:00
Paul Franklin
6975e30861 increase pylint score from 7.17 to 9.02 2016-07-15 11:53:24 -07:00
SNoiraud
86b52ed60b 2016: Website reports should accept any StyleSheet 2016-07-15 16:18:30 +02:00
prculley
43d284b166 Bug 9580 Gedcom import of FTM file containing _PHOTO tags 2016-07-15 08:06:51 -05:00
SNoiraud
925e413683 9362: Attempting to select an "Available item" for the Book Report gives an error 2016-07-15 12:16:29 +02:00
Nick Hall
620d43a544 Convert gui.views to use abstract base classes 2016-07-14 21:46:16 +01:00
Nick Hall
534eafef83 Fix incorrectly renamed method 2016-07-14 21:44:28 +01:00
Nick Hall
00dba4727b Convert gen.User into an abstract base class 2016-07-14 18:55:34 +01:00
prculley
06fcf29136 Fix for either valid or invalid FTM Gedcom 2016-07-14 10:02:50 -05:00
prculley
ffda171914 bug 9579 Gedcom import of FTM file with OCCU record crashes import 2016-07-13 10:45:34 -05:00
Doug Blank
05bd51b425 Remove DB-API XML config; replace with settings.py/.ini 2016-07-12 13:21:09 -04:00
SNoiraud
b43808c9d5 Narrativeweb : 9560 added a trailing space. 2016-07-12 16:15:29 +02:00
vantu5z
1d89fa9288 revert debug tools translation
it was not a good idea to translate them  (commit 1bb2dfc1cd)
2016-07-12 14:04:47 +03:00
SNoiraud
006cd7a186 9560: Family Page maps are non-functional in Narrative Web report. 2016-07-12 11:14:43 +02:00
Paul Franklin
f73821eabf Enhance Book Report
The main change is that now output-related options will also
be saved to (and restored from) the books.xml file.  If the
user has three books for instance, each will keep the last
filename it was written to, and present that filename to the
user in the final dialog, for acceptance or modification.
Similarly for things like paper size and orientation.

Also, the error reporting mechanism was enhanced, so that
now if a report inside a book has a ReportError the user
will be told gracefully (instead of gramps crashing).  The
(translated) name of the report will also be shown.

A few more dialogs were given a "parent" also.
2016-07-11 12:16:58 -07:00
prculley
98004c4e87 Bug 9575, Gedcom import improvements in media areato support v5.5.1 and FTM 2016-07-11 11:36:45 -05:00
vantu5z
1bb2dfc1cd Make translatable debuger tools 2016-07-11 14:55:26 +03:00
prculley
617569a234 Bug 9479 Gedcom import loses spaces in text fields from FTM 2016-07-08 11:47:18 -05:00
Paul Franklin
4e3706072e enhance Book class (to allow non-identical Book copies to be made)
Historically, a new Book made from an old Book argument would
contain the exact same BookItem objects as the original Book.
That behavior is retained (even though I can't see that it is
ever used), but now copies are possible where the BookItems
are of the same number and type as the original, but not the
exact same BookItem objects.  (No "paper" options are copied.)

In the process of doing that, the "save" method was slightly
tweaked, so its recently-changed (for pylint reasons) strings
have their XML terminator on the same (Python) line as the
XML-start of the keyword, for more clarity.  In the process of
checking that a pathological case was noticed where the metric
paper option could be Boolean in some cases (instead of the
expected zero/one), so that was coped with also.
2016-07-08 09:21:39 -07:00
prculley
3bcfdcff60 fix vcf filter and tweak test_imports for better pythonic 2016-07-07 13:50:26 -05:00
prculley
3302fd388f update for fixed up vcard 2016-07-07 13:50:26 -05:00
prculley
a82d5b8609 Export test module and some tests 2016-07-07 13:50:26 -05:00
Paul Franklin
ed1fa65569 Merge pull request #190 from prculley/bug9569
Fix Bug 9569 Vcard export order is not consistent
2016-07-07 18:32:25 +00:00
Paul Franklin
d837e40307 remove trailing whitespace 2016-07-07 11:17:14 -07:00
prculley
a016457f5a Fix Bug 9569 Vcard export order is not consistent 2016-07-07 12:06:44 -05:00
Brian Matherly
337f6d9c7a 5580: some Book Report subjects are missing or misleading 2016-07-07 09:39:14 -07:00
prculley
81dd1bb6a2 Bug 9561, fix for intermittent plugin recognition via CLI 2016-07-06 08:22:46 -05:00
Paul Franklin
de382fdb0c fix typos ("log.warn" => "LOG.warning" => "log.warning") 2016-07-05 23:06:01 -07:00
SNoiraud
ec8d141525 9566: String not translated in geoplaces 2016-07-06 00:10:59 +02:00
Paul Franklin
b1b960db0a Merge pull request #189 from prculley/whitespace
fix trailing whitespace
2016-07-05 21:47:36 +00:00
prculley
39720eca3a fix trailing whitespace 2016-07-05 16:35:47 -05:00
prculley
afc7cbc645 Missed the place filter rule when updating for changed example.gramps 2016-07-05 16:18:22 -05:00
Paul Franklin
ab52cc5156 Merge pull request #187 from prculley/filterrules
Fix filter tests for changed sample.gramps
2016-07-05 21:06:19 +00:00
prculley
2fa56879c3 Fix filter tests for changed sample.gramps 2016-07-05 15:48:07 -05:00
prculley
9a5d3466cb Rename test files so that unrelated tests don't conflict with import tests 2016-07-05 14:10:50 -05:00
kulath
6e8df15dcb 2092: Problems when no database is open. Partial fix. Make checks on the
database consistently check that the database exists and is open. Add a
few missing checks. Remove redundant load and direct close of dummy
database on closure.
2016-07-05 11:19:02 +01:00
Nick Hall
0719e04858 Update directory structure for database plugins 2016-07-03 18:37:30 +01:00
Nick Hall
746cf0ee1e Move DBAPI default settings into an XML file 2016-07-03 17:42:08 +01:00
Nick Hall
4eb27dfcfa Create new database section in configuration file 2016-07-03 16:15:38 +01:00
SNoiraud
bb8e587572 9557: Translated text will not be printed (bad copy/paste 2) 2016-07-03 13:55:07 +02:00
Paul Franklin
1c66a85246 move the right paren in, so the string gets translated 2016-07-02 20:53:07 -07:00
Paul Franklin
62d8487f14 change some "place_displayer" strings to the shorter "_pd" 2016-07-02 20:50:31 -07:00
Paul Franklin
8bfa3d13a3 9556: Descendant Report does not recognise auto. place title generation 2016-07-02 20:43:33 -07:00
SNoiraud
78edbafb56 9557: Translated text will not be printed (bad copy/paste) 2016-07-02 22:53:06 +02:00
SNoiraud
be5722ee0b 9557: Translated text will not be printed (better solution) 2016-07-02 22:30:54 +02:00
SNoiraud
3d9159d9d3 Geography : 9557 : Translated text will not be printed in the program 2016-07-02 11:11:44 +02:00
prculley
495e7801d7 9499: Fix CSV import of utf-8 encoded files exported by Gramps 2016-06-29 22:23:03 +01:00
prculley
d77f0562e8 A few Deprecation warnings handled 2016-06-29 22:12:44 +01:00
prculley
55c99fe718 Gdk.Cursor.new() deprecation fixes 2016-06-29 22:06:39 +01:00
Paul Franklin
1abc0ad1fa Merge pull request #182 from prculley/logwarn
fix LOG.warn() deprecation warning
2016-06-29 18:54:37 +00:00
kulath
2886583689 2092: Problems when no database is open. Partial fix. Fix tags menu when
there is no database and stop accessing database for tags filter
dropdown when there is no database.
2016-06-29 16:22:13 +01:00
prculley
342bdac02c fix LOG.warn() deprecation warning 2016-06-29 09:44:18 -05:00