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
Doug Blank
22fa6ed63a
Refinements in db.select; allow joins
2016-01-10 10:55:45 -05:00
Nick Hall
177e30ee62
Improve pylint score of gen modules to above 9
2016-01-10 15:40:52 +00:00
Nick Hall
b8a38cd5e5
Improve pylint score to above 9 for most gen.lib objects
2016-01-09 15:34:59 +00:00
Josip
73b3ccbd0e
9122: Complete Report about person (whole database) - PDF - crash
2016-01-08 20:55:20 -08:00
Nick Hall
76d8c70b91
Remove redundant ignore list from attribute types
2016-01-09 00:50:49 +00:00
Nick Hall
c3eab4e6e3
Further pylint improvements
2016-01-09 00:27:42 +00:00
Doug Blank
f26c9f7055
Added missing get_labels, get_schema
2016-01-08 18:44:38 -05:00
Nick Hall
e64fa65552
Remove redundant objects
...
These were needed for database upgrades but are no longer
referenced anywhere.
2016-01-08 22:58:25 +00:00
Nick Hall
80f05956b4
Gramps type pylint improvements
2016-01-08 21:57:04 +00:00
Doug Blank
1654757c22
db.select() can now use filter; returns total count, and selection
2016-01-08 14:07:43 -05:00
Nick Hall
e85af204dd
More pylint improvements
2016-01-07 19:52:05 +00:00
Nick Hall
72d0d46535
Date object pylint improvements
2016-01-07 19:52:05 +00:00
Doug Blank
eaf1649ef3
Remove remaining mentions of webapp
2016-01-07 13:05:53 -05:00
Doug Blank
b39fd5b634
Added missing schema
2016-01-06 10:07:25 -05:00
Doug Blank
640e834c22
Refactor of labels/fields/schema
2016-01-06 10:06:47 -05:00
Doug Blank
5a8264f70e
db.select/get_rows now returns a dictionary
2016-01-06 10:06:05 -05:00
Doug Blank
3cb64cdca8
Need to rebuild reference map if making changes in batch mode
2016-01-05 13:44:43 -05:00
Doug Blank
5130269f31
Use db_is_open properly
2016-01-05 13:08:53 -05:00
Nick Hall
c9b5830a37
Fix bug introduced in pylint tidy up
2016-01-05 18:03:33 +00:00
Nick Hall
8717839809
Add validation to gender field
2016-01-01 19:22:53 +00:00
Nick Hall
307f236771
Primary object pylint improvements
2015-12-31 23:06:16 +00:00
Nick Hall
e82148677d
Replace tabs with spaces
2015-12-31 21:17:49 +00:00
Nick Hall
e67832d384
Merge pull request #86 from tecknicaltom/various_python_issues
...
Various python issues
2015-12-31 21:15:46 +00:00
Doug Blank
cc6b54c5d9
Object.get_label() now a class method. Fixed error in Name schema
2015-12-31 08:47:48 -05:00
romjerome
b77aeb39e7
Year 2016
2015-12-31 11:19:10 +01:00
Tom Samstag
92c2ddc33e
remove unnecessary pass statements
2015-12-31 00:24:07 -08:00