1168 Commits

Author SHA1 Message Date
Doug Blank
eafe35e4af DbManager: add database type column 2016-04-16 14:38:38 -04:00
Paul Franklin
269f9e7626 8128: GtkDialog mapped without a transient parent -- partial 2016-04-16 10:48:48 -07:00
Doug Blank
ac1ccfa2b4 9385: gramps -L changes Last Accessed time/date 2016-04-16 03:40:52 -04:00
Sam Manzi
4342b319e3 Merge pull request #102 from SNoiraud/bug5449
5449: Pedigree view crashes if you happen to choose a child as ancestor
2016-04-16 07:19:01 +10:00
Paul Franklin
29a5d9dbe7 add deferred translation to "living people" report option 2016-04-15 00:29:37 -07:00
Sam Manzi
8c1ebd8020 __all__, must contain only strings 2016-04-13 12:01:32 +10:00
Paul Franklin
7f41373f07 8649: Familygroup report: Add filter option 2016-04-11 19:22:37 -07:00
Doug Blank
0bab478da3 RelationshipCalc callback: not all signals pass handle_list 2016-04-08 07:38:39 -04:00
Doug Blank
324cea5dd3 9358: get_table_metadata(nav_type) anomaly 2016-04-08 07:30:02 -04:00
Doug Blank
dd0f0c6f3e 9358: get_table_metadata(nav_type) anomaly; revert 2016-04-08 07:15:30 -04:00
Doug Blank
d9ff7fede2 9358: get_table_metadata(nav_type) anomaly 2016-04-08 06:58:07 -04:00
Nick Hall
3d1643a84e Add some place rule unit tests 2016-04-07 20:48:19 +01:00
Nick Hall
ea60555a9b Add some event rule unit tests 2016-04-07 19:21:11 +01:00
Nick Hall
f3c9a86545 Add more family rule unit tests 2016-04-06 23:20:45 +01:00
Nick Hall
da3db4bc28 Remove deprecated locale flag
re.L is deprecated and re.U is now default.
2016-04-06 23:18:14 +01:00
Nick Hall
0dd79314b1 Check for missing father or mother in family rules 2016-04-06 23:17:10 +01:00
Nick Hall
9bd507d626 Add new family ancestor and descendant rules 2016-04-06 20:51:49 +01:00
=Matt Keenan
7f4bc4785f 7035: Request for new "Replace All Names" in Export Options dialog 2016-04-05 11:45:36 -07:00
Paul Franklin
80ec97baaa allow for more types in "living" proxy 2016-03-31 16:11:19 -07:00
Paul Franklin
2f608f67e6 fix "TypeError: 'tuple' object does not support item assignment" 2016-03-31 12:34:18 -07:00
Sam Manzi
361634ecaa Merge pull request #107 from tecknicaltom/test_filters1
Initial batch of tests of filter rules
2016-03-28 16:19:11 +11:00
Tom Samstag
ebbbe6b436 Initial batch of tests of filter rules
After finding a bug in a filter that caused it to return incomplete
results in master (not yet patched), I decided to develop tests for the
filter rules. This first batch is all listed person filter rules that
either take no parameters or take a single ID parameter. I originally
wanted to use the smaller data.gramps instead of example.gramps, but
there were more unrepresented edge cases that wouldn't allow for testing
all filters (e.g. disconnected individuals).

All test values are based on what Gramps currently returns, with some
efforts made to try to verify the results. If the example.gramps file
changes, these tests will likely have to be updated. I tried to
cross-version validate them with v4.1, but the implementation of
DictionaryDb is too incomplete and many tests fail for unrelated
reasons.
2016-03-27 14:11:49 -07:00
Doug Blank
162d26d4dc 9331: Empty handle, bsddb backend and place 2016-03-25 09:22:58 -04:00
Paul Franklin
17b2fe1cba 5176: Reports ignore "Private" flag and "Living People" 2016-03-24 09:37:47 -07:00
Paul Franklin
7b33bb1718 remove unneeded Icelandic directives 2016-03-22 11:58:19 -07:00
Paul Franklin
d2acfdf48e 9320: D.A.R. has ? for locations when [private data is excluded] 2016-03-21 16:52:50 -07:00
SNoiraud
0c67821171 8602: Age in the event family view column is wrong. better solution. 2016-03-20 13:38:39 +01:00
Tom Samstag
4b32841dd4 fix some crashes in export preview
These issues were all found while trying to use the "Calculate Previews"
feature of the export wizard.

gen/proxy/referencedbyselection.py: ProxyDbBase need not define the
writable functions (add_*, commit_*, del_*) in its __tables. ProxyDbBase
doesn't have methods for add_person, etc, so this was causing an
AttributeError

gen/proxy/referencedbyselection.py: Add some handle checks to prevent
lookups on None handles

gen/proxy/proxybase.py: remove redundant test
2016-03-03 00:11:17 -08:00
Doug Blank
ad3dcb8d13 Hide db._select(); Refactor db._tables; QuerySet; tests and bug fixes
db.select() has become db._select()

This commit refactors database._tables so that they can work properly
after a proxy or filter has been removed.

It adds abstract API called QuerySet which allows a variety of
selections and ordering of data.

Logging was added to sqlite to better see db access.

Additional fixes:

* clearing GenericDB._directory
* test_util_test off-by-one error
2016-02-28 15:40:16 -05:00
SNoiraud
0650bd8643 5449: Convert list to set 2016-02-25 11:01:11 +01:00
SNoiraud
9bc91af2de 5449: Pedigree view crashes if you happen to choose a child as ancestor 2016-02-22 15:27:33 +01:00
Sveinn í Felli
cfd2c3f5a8 Add dates and relationships handlers for Icelandic 2016-02-21 14:29:07 +01:00
SNoiraud
e14cb98d66 8602: Age in the event family view column is wrong 2016-02-19 18:47:46 +01:00
Paul Franklin
b22de39a25 correct indentation in books.xml 2016-02-19 03:10:55 -08:00
Paul Franklin
69eeca4c47 remove dead code 2016-02-19 02:57:33 -08:00
John Ralls
c11fbe8bfc Bug 9159: Date format does not match system.
Make US English a special-case locale with en_GB the default if the locale
is en_XX where XX != US.

Note that untranslated languages will still end up using the 'C' locale.
2016-02-08 13:13:16 -08:00
Doug Blank
202e1f5594 Protection from null objects 2016-02-07 11:58:59 -05:00
Doug Blank
429b91d357 IsAncestorOf bug hidden by looking up null handle 2016-02-06 21:43:03 -05:00
Doug Blank
72e897b44b Database.select(where=('','LIKE','')) in Python matches across lines 2016-01-31 21:47:37 -05:00
Doug Blank
18ac940566 Add labels to SytledText and Note 2016-01-31 09:17:35 -05:00
Doug Blank
403c87b887 DB-API and DbDictionary both use same binary handles as BSDDB 2016-01-31 09:15:52 -05:00
Doug Blank
abd69fbebd Added schema to Tag 2016-01-30 14:44:39 -05:00
Doug Blank
3b1ff1e30f Added schema to Note and StyledText 2016-01-30 14:25:51 -05:00
Doug Blank
3b6a621635 Database selects/iters can order by any field 2016-01-29 09:53:51 -05:00
Doug Blank
c28c49ba67 A version of touch() for Python3.2; use now as time 2016-01-28 16:57:06 -05:00
Doug Blank
de07b9d4f1 A version of touch() for Python3.2 2016-01-28 16:53:06 -05:00
Doug Blank
80d710da48 Attempt to make Python 3.2 work with fd; typo 2016-01-28 07:59:50 -05:00
Doug Blank
d1af8a615f Attempt to make Python 3.2 work with fd 2016-01-28 07:54:47 -05:00
Doug Blank
4b565fe7bc Attempt to make Python 3.2 work with fd 2016-01-28 07:50:49 -05:00
Doug Blank
7b0b23c6f1 Added database testing; fixed bugs in select
* WIP: Tests BSDDB and DBAPI databases
* testing select and get_field
* fixed a bug in primaryobj
2016-01-28 06:44:41 -05:00