2970 Commits

Author SHA1 Message Date
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
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 1bb2dfc1cd2515ca5b227f8744a91a1f0462b4b6)
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
vantu5z
1bb2dfc1cd Make translatable debuger tools 2016-07-11 14:55:26 +03: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
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
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
SNoiraud
721cfa1a1c Geography : add parent to WarningDialog 2016-06-29 08:36:32 +02:00
Nick Hall
230d7b0dac Remove trailing whitespace 2016-06-28 23:05:23 +01:00
Paul Franklin
be76d63ef6 some tweaks to the book report
Formerly, the books.xml file was read in multiple times,
even if it hadn't changed at all.  And since books.xml can
contain multiple books, each of which potentially contains
multiple reports, each with multiple options, all of which
get parsed every time the books.xml file gets read in, the
process potentially can take a while.

Similarly the books.xml file was written out every time a
book was added or deleted, even if the book report continued
to be run, with potentially more changes being made.

So it's changed so that the books.xml file is only read in
once, and written out once, and only then if it needs it.
2016-06-28 11:38:53 -07:00
kulath
8e4c7234a4 2092: Problems when no database is open. Partial fix. Fix bookmarks
display when there is no database and stop accessing the database for
bookmarks when there is no database.
2016-06-28 18:39:49 +01:00
kulath
c817b0dedc Pylint improvements: bookmarks.py 2016-06-28 15:36:15 +01:00
SNoiraud
32a8151751 8452: Geography : Attempting to print crashes(core dumps python) 2016-06-28 10:52:02 +02:00
prculley
66bf311168 9124: GEDCOM doesn't accept CR as a line terminator
Original code used readline() when file was in binary mode; this works
only if file contains '\n', true only for CRLF and LF line endings.
Switched to file text mode with correct encoding and universal newline
support.
2016-06-27 21:11:31 +01:00
Doug Blank
871955a559 9514: DBAPI: duplicated signature for gramps.gen.db.generic.DbGeneric.get_media_from_gramps_id 2016-06-26 07:55:05 -04:00
Nick Hall
b74fa4eef7 Improve pylint score of dummy database 2016-06-26 00:07:53 +01:00
Nick Hall
095e0e529f 9547: Rename non-API database upgrade methods 2016-06-25 22:09:05 +01:00
Nick Hall
535ce58f17 9547: Rename more non-API database methods 2016-06-25 21:55:55 +01:00