178 Commits

Author SHA1 Message Date
Jérôme Rapinat
85e437d291 7276: translate some currently-untranslated punctuation marks 2016-12-23 12:59:06 -08:00
Paul Franklin
66260871dc give GUI User an optional parent, for when None would otherwise be used 2016-12-21 15:35:45 -08:00
Paul Franklin
6a6fe9b48d 7276: translate some currently-untranslated punctuation marks 2016-12-18 14:20:36 -08:00
Nick Hall
76cb80f17f Remove --databases command line option 2016-12-16 22:18:33 +00:00
Nick Hall
61da801fa1 Remove is_empty database method
The existing get_total method can be used instead.
2016-12-06 17:48:34 +00:00
Nick Hall
a4a3c55c09 Update comments 2016-11-30 15:57:23 +00:00
Nick Hall
2365a72d98 Fix User class unit tests 2016-11-30 15:51:03 +00:00
Nick Hall
382987f366 Create module for database utilities 2016-11-24 17:57:18 +00:00
Paul Franklin
2bbb555797 fix "gramps --databases" 2016-09-15 19:34:58 -07:00
Paul Franklin
2ffe1d141f remove temporary debugging flags 2016-09-10 15:44:07 -07:00
Paul Franklin
7b3d7f263a make it clear that consistency is needed 2016-08-12 18:49:13 -07:00
Paul Franklin
f9dbfd9dbd 8128: GtkDialog mapped without a transient parent 2016-08-03 18:16:48 -07:00
Paul Franklin
eeaaac060e better handle an unlikely error in the Complete Individual report 2016-08-01 16:30:46 -07: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
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
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
4eb27dfcfa Create new database section in configuration file 2016-07-03 16:15:38 +01:00
Paul Franklin
1c66a85246 move the right paren in, so the string gets translated 2016-07-02 20:53:07 -07:00
Nick Hall
ab50490617 pylint improvements 2016-05-27 23:53:08 +01:00
Nick Hall
75ffd7c41b Fix another file left open 2016-05-27 23:31:59 +01:00
Nick Hall
c4cab2e007 Ensure files are not left open 2016-05-27 22:50:05 +01:00
Nick Hall
e76a27ddd3 Remove trailing whitespace 2016-05-10 16:52:57 +01:00
Nick Hall
f688a96e9a Tidy up class definitions
All python3 classes are new-style classes.  It is no longer
necessary to inherit from object.
2016-05-10 16:06:49 +01:00
Doug Blank
f83716b6bd Drag and drop on Family Tree Manager fixes 2016-05-04 17:28:25 -04:00
Doug Blank
bfe900f7cf 9429: Text metadata (i.e. *.txt files) implemented for DBAPI backends.
This saves and tests python and schema versions so that this code
won't load future versions of either.
2016-05-04 12:23:26 -04:00
Doug Blank
8a6d766b06 CLI: -l, -L, -t should match names with re patterns in them 2016-05-03 13:04:24 -04:00
Douglas Blank
9d5322103e Allow --database to work without installed bsddb3/sqlite3 2016-05-01 07:38:31 -04:00
Doug Blank
8f77d6db9f 1144: Auto backup at exit, but not when opening another database 2016-04-30 10:25:09 -04:00
Eno
59793536ed Fixes for Missed 'open' statements 2016-04-28 08:23:21 +10:00
Doug Blank
b526a41af1 Merge pull request #113 from sam-m888/useWithOpen
Prefer with to open files
2016-04-25 21:35:23 -04:00
Doug Blank
f0e89ef9d3 CLI: require exact re.match for -t 2016-04-23 20:35:37 -04:00
Doug Blank
7e58e2254d CLI: make re match exactly for -l, -L 2016-04-23 18:34:10 -04:00
Doug Blank
048151f447 9383: the Family Tree Manager dialog should show the database type 2016-04-22 07:52:34 -04:00
Sam Manzi
5dc5615bfd
Prefer with context manager to open files 2016-04-19 09:08:21 +10:00
Doug Blank
42a14b6aae CLI prompt: don't default to yes for truly dangerous 2016-04-17 08:26:46 -04:00
Doug Blank
f09c32181a DB-API: fix version 2016-04-16 18:25:46 -04:00
Doug Blank
1e228b2193 clidbman: restore accidently deleted code 2016-04-16 17:38:01 -04:00
Doug Blank
eafe35e4af DbManager: add database type column 2016-04-16 14:38:38 -04:00
Doug Blank
ac1ccfa2b4 9385: gramps -L changes Last Accessed time/date 2016-04-16 03:40:52 -04:00
Doug Blank
516bba4180 CLI: add regular expression patterns to -t, -l, and -L 2016-04-16 03:03:57 -04:00
Doug Blank
67a6e0cf79 gramps -r PATTERN: make no be the default 2016-04-16 02:53:36 -04:00
Doug Blank
67b7805de3 Updated docstring for -t, -l, and -L 2016-04-14 21:03:38 -04:00
Doug Blank
dd55b367ce Add optional list of trees to command-line args: -t -l -L 2016-04-14 20:42:40 -04:00
Doug Blank
157604b40e Rename *_media_object methods to *_media 2016-01-23 21:53:14 -05:00
Doug Blank
2eeda93617 Renamed get_object_from to get_media_from 2016-01-23 19:00:13 -05:00
John Ralls
65442c2da8 Bug 9191: Unable to select Unicode UTF-8 encoding on command line
Make the option descriptions line up when the value is shorter than 10
characters. Also make the value and description headings line up with the
list and put "Available values are:" first.
2016-01-22 13:39:37 -08:00
Doug Blank
27e79a3e76 CLI: if database is opened at end, then close it 2016-01-05 13:01:48 -05:00
Doug Blank
d44673c260 Don't exit from arghandler, just return 2016-01-05 13:00:30 -05:00
Doug Blank
4d5c28ad3a CLI -r/--remove asks firsts, uses reg exp 2015-12-18 17:10:11 -05:00
Doug Blank
01ef775491 Use CLI test framework; fix bug in fake exit
* uses new Gramps() test framework in cli_test.py
* test_util.Gramps allows default exit code
2015-12-18 08:46:35 -05:00