Doug Blank
676825cf52
Removes try/except and recursion in ancestor filters +/- N gens
...
This fix rewrites the Ancestor-of +/- N filters to remove the try/except
and removes the recursion. The recursion would only be a problem
on very deep trees, but the try/except was hiding a variety of
problems. Most directly, if a person did not have a main family
then it would exit out of the loop.
(I don't have a test database to break the code other than my
real data, so you'll have to do that part.)
I also made sure that the meaning of N is consistent in
both filters:
1 - root person
2 - root person's parents
3 - root person's grandparents
2017-06-16 00:55:31 +01:00
Doug Blank
0c03bb906e
9540: DBAPI: HandleError is not raised by the DBAPI interface
2016-09-26 11:03:37 -04:00
Doug Blank
68bd1e9038
DB-API: make autobackup configurable
...
Via command line:
gramps --config=database:autobackup:1 ## True
gramps --config=database:autobackup:0 ## True
Or by editing gramps.ini.
2016-09-24 06:55:41 -04:00
Doug Blank
0ce1a91dec
DB-API: ignore errors on secondary field lookups
2016-09-23 19:35:11 -04:00
Doug Blank
3b0e04fb78
9538: gramps.gen.dbstate.DbState.make_database doesn't handle 'else' branch
2016-09-23 17:07:12 -04:00
Doug Blank
9e5f899bbd
9710: dbapi pylint issues, adjustment
2016-09-23 10:39:15 -04:00
Doug Blank
ae06d046c5
9710: where documentation
2016-09-23 07:04:05 -04:00
Doug Blank
a9f1377529
9710: dbapi pylint issues
2016-09-23 06:30:51 -04:00
Doug Blank
5eb348f815
Merge pull request #239 from dsblank/master
...
DB-API: Getting a handle that doesn't exist now raises error, like BSDDB
2016-09-22 16:42:09 -04:00
Doug Blank
c6fa40d389
Protection from family_handle being None
2016-09-22 16:25:53 -04:00
Doug Blank
899765beb6
Revert "Take care of possibly missing family"
...
This reverts commit cb1a8e85b6 .
2016-09-22 13:58:46 -04:00
Doug Blank
cb1a8e85b6
Take care of possibly missing family
2016-09-22 12:22:03 -04:00
Doug Blank
140c02340c
DB-API: Getting a handle that doesn't exist now raises error, like BSDDB
2016-09-22 11:58:05 -04:00
Doug Blank
4b5e1e9702
Removed skip-check-xref and skip-import-additions from generic API
2016-08-25 07:00:04 -04:00
Doug Blank
ed4c9fa148
9632: Gramps 5.0.0 crashes when I select a report 'Open with default viewer'
2016-08-14 08:12:21 -04:00
Doug Blank
2f142e8966
9522: events gramplet in family view error: 'FamilyEvents' object has no attribute 'cached_start_date'
2016-08-12 21:45:48 -04:00
Doug Blank
2ecf517aba
Remove trailing whitespace
2016-08-10 17:56:48 -04: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
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
Doug Blank
ac211252bb
9554: import-to-export of example.gramps map has different value
2016-07-17 08:23:35 -04: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
Doug Blank
ceac20aafc
Merge pull request #201 from prculley/bug9501
...
Bug9501
2016-07-16 17:21:02 -04: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
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
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
Doug Blank
05bd51b425
Remove DB-API XML config; replace with settings.py/.ini
2016-07-12 13:21:09 -04: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
Doug Blank
1e102a36e4
DB-API: get_ITEM_handles() should return strings
2016-06-04 23:05:41 -04:00
Doug Blank
41b6abaa88
Added missing copyright and GPL
2016-06-04 22:34:42 -04:00
Doug Blank
7b60b140c0
Version 5.0.0-alpha1
2016-06-04 07:24:40 -04:00
Doug Blank
283ac0f8bb
Moved LRU to gramps.gen.utils
2016-06-02 16:41:00 -04:00
Doug Blank
4913762d70
Remove import test from reports
2016-06-02 15:56:50 -04:00
Doug Blank
c338aee30a
test imports: added a function for nosetests
2016-06-02 15:39:07 -04:00
Doug Blank
9935654a22
Merge pull request #167 from prculley/bug9123
...
bug 9123 GEDCOM import with media files that have no path fails
2016-06-02 15:36:17 -04:00
Doug Blank
063533ab1e
Merge pull request #166 from prculley/bug8729m
...
bug 8729 place names empty if Gedcom ADDR record contains no street
2016-06-02 15:35:00 -04:00
Doug Blank
f165e04436
Merge pull request #159 from prculley/test_imports
...
Test imports
2016-06-02 14:39:45 -04:00
Doug Blank
ef0b2b8aea
9450: LivingProxyDB leaves data in when back references followed
2016-05-27 09:10:50 -07:00
Doug Blank
93803fb519
Merge pull request #164 from prculley/bug9475
...
Bug9475 GEDCOM import creates inconsistent source gramps IDs
2016-05-26 22:00:49 -04:00
Doug Blank
5ef38e2a57
Merge pull request #163 from gramps-project/use-cacheproxydb
...
Use CacheProxyDb on reports with LivingProxyDb
2016-05-26 12:32:17 -04:00
Doug Blank
2596aba875
Use CacheProxyDb on reports with LivingProxyDb
2016-05-26 08:40:03 -04:00
Doug Blank
1611340dca
CacheProxyDb: use getattr()
2016-05-26 08:36:27 -04:00
Doug Blank
6454b87672
Merge pull request #160 from gramps-project/cacheproxydb
...
CacheProxyDb: adds LRU cache for handle lookups
2016-05-26 06:58:36 -04:00
Doug Blank
898bfb4eae
narrativeweb: proxies and filters may hide objects
2016-05-25 16:18:48 -04:00
Doug Blank
0820e70499
Additional fixes for narrativeweb
2016-05-25 15:43:01 -04:00
Doug Blank
3af7ff4e9b
Spelling error
2016-05-25 14:41:07 -04:00
Doug Blank
758d63c0fa
Remove trailing whitespace
2016-05-25 12:56:33 -04:00
Doug Blank
7649f03c70
CacheProxyDb: adds LRU cache for handle lookups
2016-05-25 12:39:48 -04:00
Doug Blank
5e89b0a417
NarrativeWebReport: media_ref handles need not be binary
2016-05-25 11:08:32 -04:00
Doug Blank
9a516b1058
Merge pull request #100 from SNoiraud/bug3068
...
3068: Wrong reference number for "same person as" in detdescendantreport
2016-05-24 12:20:40 -04:00
Doug Blank
f92c35d797
Merge pull request #157 from prculley/bug7949
...
Bug 7949, crash on GEDCOM import with empty _AKA lines
2016-05-24 12:16:05 -04:00
Doug Blank
e30f4e329b
Merge pull request #156 from prculley/bug9459
...
bug 9459 GEDCOM import in CLI mode with .ged file containing ANSEL en…
2016-05-24 10:53:00 -04:00
Doug Blank
7f6803f9f6
8466: [Performance] Handling many Events on a person
2016-05-23 15:36:52 -05:00
Doug Blank
7c45e78e95
8466: [Performance] Handling many Events on a person
2016-05-22 12:42:32 -04:00
Doug Blank
7ffb2403a2
2834: 'Complete Individual Report' is titled 'Summary of [name]'
2016-05-22 09:18:48 -04:00
Doug Blank
55d2141476
9465: DB-API: duplicate note ID
2016-05-22 07:25:23 -04:00
Doug Blank
dff65e6e91
9438: AttributeError: 'NoneType' object has no attribute 'db'
2016-05-13 13:03:01 -04:00
Doug Blank
fcddb03ef1
DB-API: don't emit if in batch mode
2016-05-13 12:43:06 -04:00
Doug Blank
3b3c2e5d34
DB-API: move emit signals to transaction commit
2016-05-13 12:35:11 -04:00
Doug Blank
3831a02ede
DB-API: updated obj.change date/time when editing
2016-05-13 09:09:37 -04:00
Doug Blank
471a6b42d0
Mysql: rename field 'long'
2016-05-12 23:43:43 -04:00
Doug Blank
aa9246dde4
DB-API: ensure that undo/redo operations are in a low-level db transaction
2016-05-12 16:33:52 -04:00
Doug Blank
636903bbc7
Merge pull request #141 from prculley/bug9414
...
Bug 9414 fix empty Place Alternate Names on import
2016-05-11 16:39:49 -04:00
Doug Blank
2763d925f0
Merge pull request #142 from prculley/bug9448
...
Bug 9448: Merge unit test for PlaceCheck not working correctly
2016-05-11 16:39:18 -04:00
Doug Blank
9424539930
Person: add aliases for field names
2016-05-10 12:26:46 -04:00
Doug Blank
5a72efc387
Merge pull request #140 from tecknicaltom/fix-EditMedia
...
make EditPrimary, empty_object abstract
2016-05-10 06:56:31 -04:00
Doug Blank
1a05aadca7
Date: add property year
2016-05-09 07:58:45 -04:00
Doug Blank
79362d7086
Merge pull request #136 from RossGammon/app2
...
Followup to PR 134
2016-05-08 13:50:15 -04:00
Doug Blank
3facab1e18
Merge pull request #134 from RossGammon/appstream
...
9443: Gramps not appearing in Gnome Software
2016-05-08 09:27:59 -04:00
Doug Blank
34c8cfdec4
Merge pull request #133 from RossGammon/gi_require_version
...
PyGIWarning: importing without specifiying a version first
2016-05-08 09:23:00 -04:00
Doug Blank
0455cb90ce
9442: Windows SQLite database has indexes that Linux SQLite can't read
2016-05-07 14:40:36 -04:00
Doug Blank
af487de69a
9441: DB-API with sqlite doesn't unlock the table when txn.batch = True
2016-05-07 13:46:29 -04:00
Doug Blank
ac0fbecc4b
Remove accidentally added code, 2
2016-05-07 13:09:47 -04:00
Doug Blank
f266ad2a99
Remove accidentally added code
2016-05-07 13:06:50 -04:00
Doug Blank
3ce8c12ae6
Place schema: wrong type for alt_names
2016-05-07 12:28:20 -04:00
Doug Blank
e2ae70a2dd
Add sqlite info to error report assistant
2016-05-07 09:50:43 -04:00
Doug Blank
3e827c230e
QuerySet: fix removing tag logic
2016-05-07 08:17:19 -04:00
Doug Blank
f00a355110
sqlite: add version number
2016-05-07 06:43:33 -04:00
Doug Blank
a2f40fbf67
Bash completetions: a little cleaning up
2016-05-06 16:02:09 -04:00
Doug Blank
6d95cd5dd3
Where: work with methods, ala Rules
2016-05-06 10:04:24 -04:00
Doug Blank
61c2ed3240
QuerySet tag(): remove batch; allow tag removal; test
2016-05-06 08:14:54 -04:00
Doug Blank
f3b57fda0a
9435: Attempting to export and empty BSDDB Family tree fails
2016-05-05 07:02:26 -04:00
Doug Blank
471aadc513
Family Tree Manager: reselect the default row
2016-05-04 20:34:33 -04:00
Doug Blank
a0d5485088
ViewManager: no longer need to delay showing window; causes transient window issues
2016-05-04 20:06:54 -04:00
Doug Blank
f83716b6bd
Drag and drop on Family Tree Manager fixes
2016-05-04 17:28:25 -04:00
Doug Blank
47cee7bb1e
DbPythonError: adjust message regarding Python
2016-05-04 16:31:37 -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
bd00f36ff1
9433: empty media path must be interpreted as /home/dblank in DB-API
2016-05-04 10:30:17 -04:00
Doug Blank
c3874bdaed
4442: Add a Button to close the current database; refresh gramplets when no db
2016-05-03 20:31:20 -04:00
Doug Blank
efe5323e1a
4442: Add a Button to close the current database; retitle main window
2016-05-03 20:15:18 -04:00
Doug Blank
ba6921c91d
CLI: command completions in bash, bash-like shells
2016-05-03 13:05:44 -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
Doug Blank
8350859c0c
Stats Gramplet: remove sequential scan through person
2016-05-03 10:43:53 -04:00
Doug Blank
59bad09650
Two errors on transient parents
2016-05-03 10:41:55 -04:00