prculley
08c99f2929
Merge remote-tracking branch 'upstream/master' into test_imports
2016-05-26 14:02:18 -05:00
prculley
8cda91a377
moved test directory, tweaked tests, and fixes
2016-05-26 11:22:06 -05:00
Doug Blank
1611340dca
CacheProxyDb: use getattr()
2016-05-26 08:36:27 -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
Nick Hall
7ea7850331
Tidy up whitespace
2016-05-25 17:27:23 +01:00
prculley
7646d41774
Merge remote-tracking branch 'upstream/master' into test_imports
2016-05-24 14:44:08 -05:00
Nick Hall
4413c7c88b
Add extra unit test for IsEnclosedBy rule
2016-05-24 16:15:46 +01:00
prculley
7a33b08185
Prototype of test imports module and associated tests
2016-05-23 15:36:52 -05:00
Nick Hall
23a0a492d4
9427: Add inclusive option to IsEnclosedBy rule
2016-05-23 15:36:52 -05:00
Nick Hall
6c2eac9e05
9427: Add inclusive option to IsEnclosedBy rule
2016-05-23 15:20:37 +01:00
Doug Blank
55d2141476
9465: DB-API: duplicate note ID
2016-05-22 07:25:23 -04:00
Nick Hall
15fcf1ed85
Remove Django specific references from docstrings
2016-05-18 15:47:57 +01:00
Nick Hall
fe6c5895b2
Improve pylint score of some new files
...
The programming guidelines require that new files have a pylint
score of 9.0 or greater.
2016-05-17 22:36:40 +01:00
Nick Hall
7b22c6af1b
Remove trailing whitespace
2016-05-16 21:17:11 +01:00
Sam Manzi
7ade71945e
Merge pull request #145 from prculley/bug9415
...
Bug 9415 Place Alt Names gets duplicated entries
2016-05-13 08:57:37 +10: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
prculley
df18fdebea
Bug 9415 Place Alt Names gets duplicated entries
2016-05-12 09:36:28 -05: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
prculley
c7914367b7
Bug 9448: Merge unit test for PlaceCheck not working correctly
2016-05-11 10:18:27 -05:00
prculley
e2b781a221
Bug 9414 fix empty Place Alternate Names on import
2016-05-11 09:50:07 -05:00
Doug Blank
9424539930
Person: add aliases for field names
2016-05-10 12:26:46 -04: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
1a05aadca7
Date: add property year
2016-05-09 07:58:45 -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
3ce8c12ae6
Place schema: wrong type for alt_names
2016-05-07 12:28:20 -04:00
Doug Blank
3e827c230e
QuerySet: fix removing tag logic
2016-05-07 08:17:19 -04:00
Ondrej Krc-Jediny
d9154a75e1
7907 LDS ordinance statuses enhancement
2016-05-07 15:18:54 +10:00
SNoiraud
c0203ec342
4892: Add a Webcal link to Narrative pages
2016-05-06 22:53:07 +02: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
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
331e6d4668
Database: add reload method; re-expand fields before reindexing
2016-05-03 08:07:42 -04:00
Doug Blank
7e570b6724
Fixes for field-based schema and labels
...
* moved methods to TableObject from PrimaryObj (to include Tag)
* added missing scheme, labels to citation, place, repo, and source
* minor bug fixes
2016-05-02 14:32:50 -04:00
Doug Blank
c8f3c25d84
Fixed get_person_handles(sort_index=True)
...
Before did not include first_name in sorting (thanks Paul!)
Also added rebuilding all order_by fields when rebuilding
secondaries.
2016-05-01 16:47:58 -04:00
Doug Blank
db6cd7e318
Field name lookup: improve error message
2016-04-30 10:47:50 -04:00
Doug Blank
8f77d6db9f
1144: Auto backup at exit, but not when opening another database
2016-04-30 10:25:09 -04:00
Doug Blank
9690c20cbc
InMemoryDB: provide None for dbname
2016-04-30 10:05:17 -04:00
Doug Blank
cec4bd7a15
Merge pull request #124 from sam-m888/MissedWithOpen
...
Missed 'open' statements
2016-04-30 02:56:10 -04:00
Doug Blank
28e99008e0
9332: gramps_connect: Edit/Save Person
2016-04-29 17:20:19 -04:00
Doug Blank
33f8aa4d3d
2092: Problems when no database is open
2016-04-28 21:06:43 -04:00
Paul Franklin
af995ad48b
tweak "living people" option (change option report output)
2016-04-28 09:22:08 -07:00
Paul Franklin
674571f3e3
tweak "living people" option (change choice strings)
2016-04-28 06:29:12 -07:00
Paul Franklin
2ac7c5baa7
add deferred translation to "living people" option
2016-04-27 22:27:25 -07:00
Sam Manzi
b21eb6f693
Fix error Undefined variable name 'referenced' in __all__
2016-04-28 11:45:43 +10:00
Sam Manzi
eb4b4d083f
Fixes for Missed 'open' statements
2016-04-28 10:34:22 +10:00
Eno
59793536ed
Fixes for Missed 'open' statements
2016-04-28 08:23:21 +10:00
Paul Franklin
d40ce7f050
enable deferred translation for EnumeratedListOption items
2016-04-26 18:37:54 -07:00
Doug Blank
d4d0f5bdc2
Config: new database-backup-use-compression option
2016-04-26 07:52:47 -04:00
Dale Athanasias
a9685a64ff
Missed 'open' statements
...
From: Dale Athanasias <dalegrind@hotmail.com>
Mon, 25 Apr 2016 13:41:18 +1000
Subject: Missed 'open' statements
Hi Sam,
Here's a few files with missed 'open' statements:
gramps/gen/filters/_filterlist.py
gramps/plugins/export/exportftree.py
gramps/plugins/database/bsddb_support/write.py
And some older files which you probably left alone for a reason?
windows/nonAIO/builder/build_GrampsWin32.py
windows/nonAIO/check_gtk_install.py
windows/nonAIO/builder/make_launcher.py
windows/nonAIO/builder/check_gtk_install.py
windows/nonAIO/nsis/gcheck.py
Regards
-
Dale
Re: Prefer with to open files
https://github.com/gramps-project/gramps/pull/113
2016-04-26 14:29:40 +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
Dale Athanasias
489c8c9afe
Fix spelling devided > divided
2016-04-24 23:22:43 +10:00
Paul Franklin
52d414587f
add "living people" option to Statistics Chart report
2016-04-23 23:11:26 -07:00
Doug Blank
a925aa5cc8
DB-API: Show last backup time/date, and total backup counts
2016-04-23 15:54:42 -04:00
Doug Blank
cfd686ff59
Bring MySQL and Postgresql up to date
2016-04-23 11:46:22 -04:00
Doug Blank
048151f447
9383: the Family Tree Manager dialog should show the database type
2016-04-22 07:52:34 -04:00
Paul Franklin
f270163c78
typo
2016-04-21 08:54:40 -07:00
Paul Franklin
fd8c8f5948
add "living people" option to Database Summary report
2016-04-20 19:11:35 -07:00
Doug Blank
db7545ab89
Merge pull request #119 from sam-m888/renameMainInterfaceConfigKeys
...
Rename Main Interface Config keys[for PR-60]
2016-04-20 07:44:20 -04:00
Nick Hall
3c2503fc79
Enable REGEXP operator
2016-04-19 22:07:54 +01:00
Sam Manzi
919b91ba38
Rename Main Interface Config keys[for PR-60]
2016-04-19 10:15:05 +10:00
Sam Manzi
1d805510a7
Add back line as per QuLogic
2016-04-19 09:15:56 +10:00
Sam Manzi
3f86dd3e25
Editorial changes & Fixes from QuLogic
2016-04-19 09:15:05 +10:00
Sam Manzi
5dc5615bfd
Prefer with context manager to open files
2016-04-19 09:08:21 +10:00
Doug Blank
f093c8bd79
Remove Django-style WHERE; consider Python expressions
2016-04-17 16:54:55 -04:00
Doug Blank
4537895941
Add default_label to other implementations of prompt()
2016-04-17 14:27:50 -04:00
Doug Blank
6a47c04228
Database Differences Report: typo
2016-04-17 08:37:47 -04:00
Doug Blank
a605bf451f
Replace dictionarydb with inmemorydb, a sqlite :memory: db
2016-04-16 23:47:29 -04:00
Doug Blank
12655fc22e
9386: Slow exit of Gramps GUI
2016-04-16 21:00:31 -04:00
Doug Blank
f09c32181a
DB-API: fix version
2016-04-16 18:25:46 -04:00
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
Doug Blank
eec418c192
DB-API: allow handles as secondary fields
...
* mother_handle is now secondary field
* fixed issues in join in primaryobj._follow_chain
* added logging to dbapi loading
* optimize rebuild, only what is needed
2016-01-27 07:18:12 -05:00
SNoiraud
78be94481d
9200: "Find text in record" filter crash
2016-01-27 13:13:58 +01:00
Doug Blank
64a3b6570d
PrimaryObject.get_field(): ignore error on invalid list length
2016-01-26 14:14:12 -05:00
Doug Blank
84ed939e82
Object.get_field: two bugs, one in attr on list, and multiple results
2016-01-26 13:55:09 -05:00
Doug Blank
5e84b3b1d6
BSDDB: renamed filter to where; un hash result names
2016-01-25 21:58:01 -05:00
Doug Blank
c19f4b47a9
Rename database methods: _object to _media
2016-01-24 18:15:50 -05:00
Doug Blank
b472d6a8b1
Family: define extra secondary fields, and indexes
2016-01-24 09:55:11 -05:00
Doug Blank
1de7bb5ebc
iter_OBJECTS can take an order_by field list
2016-01-24 08:56:37 -05: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
Doug Blank
ee05e0b451
7335: Cleanup code, filenames, and documentation
...
First part of cleanup, changes:
MediaObject -> Media
mediaobj -> media
mediaobject -> media
2016-01-23 14:22:41 -05:00
Marek Szuba
186c2bcfef
Only consider the values of LC_ALL, LANG, and LANGUAGE, in that order, when choosing the default locale.
...
Default arguments of locale.getdefaultlocale() consider the value
of LC_CTYPE in addition to the three aforementioned all-category
variables, which under certain conditions (LC_CTYPE set, LC_ALL and
the rest of LC_FOO unset) would result in the locale set in LC_CTYPE
(which should only affect interpretation of byte sequences as
characters) spilling over to other locale categories handled by the
GrampsLocale object. The most visible effect of that spill was that
with LC_ALL, LANG, LANGUAGE and LC_MESSAGES unset but LC_CTYPE set,
Gramps would start using the wrong UI language.
2016-01-22 13:42:50 -08:00
John Ralls
dbdec516b9
Fix err undefined exception.
2016-01-18 09:16:44 -08:00
Doug Blank
b7444dd9b0
DB-API: Cut database access by 50% when iter by handles
2016-01-18 09:21:18 -05:00
Doug Blank
82d02c5c1b
Fix error in NOT in select
2016-01-17 13:21:16 -05:00
Doug Blank
dfc0808167
Add tests for Object.get_field
...
* tests for get_field, with and without join
* fix bug in Handle
* fix issues in get_field
2016-01-17 12:07:31 -05:00
Doug Blank
f9930c1bcf
Revised db.select to be completely general
2016-01-13 08:20:50 -05:00
Doug Blank
dc698782b9
db.select does a recursive compare when multi-values
2016-01-12 10:09:51 -05:00
Doug Blank
0c90679515
Added missing get_schema() to some objects
2016-01-11 21:46:10 -05:00
Doug Blank
2195c2e885
db.select(): added [NOT filter]
2016-01-11 17:43:53 -05:00
Doug Blank
f45c75988c
db.select: updated doc strings for filter format
2016-01-11 17:36:37 -05:00
Doug Blank
9d6d791e21
Made select use proper recursive expressions; some optimizations
2016-01-11 17:19:14 -05:00
Doug Blank
8902d8f5de
Add Family field aliases
2016-01-11 07:28:28 -05:00
Doug Blank
a3c0ff5c18
Add missing EventRef.get_schema()
2016-01-10 18:37:13 -05:00