Commit Graph

1194 Commits

Author SHA1 Message Date
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
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
Tom Samstag
e9eedee5c6 change tabs to spaces 2015-12-31 00:08:42 -08:00
Tom Samstag
602ad1bc53 not x is None -> x is not None 2015-12-31 00:03:22 -08:00
Tom Samstag
de8d8370e3 fixing else clauses on loops 2015-12-30 22:46:57 -08:00
Doug Blank
85e4a29af4 Allow struct API to work on missing data 2015-12-30 15:11:27 -05:00
Doug Blank
0bfee44e9b Selection method added to database 2015-12-30 14:03:46 -05:00
Doug Blank
41f9e3cccc PrimaryObject.get_field can call methods 2015-12-30 11:06:11 -05:00
Doug Blank
895531c2e3 Having a method used by instance or class is a bad idea 2015-12-30 11:03:40 -05:00
Nick Hall
be7e9ace36 Update docstrings for database get methods 2015-12-29 23:47:42 +00:00
Doug Blank
f4af5277e6 Struct.from_struct is also a classmethod 2015-12-29 13:09:49 -05:00
Doug Blank
e0c6468c77 Moved translation funtion to get_label/get_labels 2015-12-27 09:37:01 -05:00
Doug Blank
84e484bb64 Struct moved to gen.lib 2015-12-27 07:46:05 -05:00
Doug Blank
84fc198a6d Move struct-based API to gen.lib.struct 2015-12-26 21:00:37 -05:00
Doug Blank
b793b9d068 Add labels to gen.lib object fields 2015-12-24 23:16:57 -05:00
Doug Blank
72662bcf06 Adds -r, --remove FAMILY_TREE_NAME to command-line
* gives error if doesn't exist
* currently requires exact match
* doesn't ask for permission (yet)
2015-12-18 07:30:03 -05:00
Nick Hall
cff726a4bb More empty handle checks in proxies 2015-12-12 22:00:11 +00:00
Nick Hall
ded6869a2a Check for empty handle in private proxy 2015-12-11 18:29:54 +00:00
Paul Franklin
252aacee41 disambiguate "none" (for French)
from po/fr.po:
The same "none" is used for name, surname and date.
However, in French we say "aucun" for name and surname,
but we say "aucune" for date...
2015-12-05 21:03:34 -08:00
Paul Franklin
aaca511c75 7276: translate some currently-untranslated punctuation marks
slightly alter the comment near the translated punctuation
2015-12-05 19:50:43 -08:00
Nick Hall
5c958bd7fb Raise HandleError exception for bad handles 2015-12-05 21:17:56 +00:00
Nick Hall
5d7343f10a Remove handle2internal function 2015-12-05 18:14:16 +00:00
Nick Hall
e813e1c5c2 Remove conv_dbstr_to_unicode function 2015-12-05 17:50:51 +00:00
Nick Hall
8dffe6639b Remove remaining conv_to_unicode calls 2015-12-05 16:57:05 +00:00
Paul Franklin
c5bbe7b04e 9041: remove temorary _DATAMAP entries (from [8fac92d])
not needed after [4c22713]
2015-12-02 08:52:19 -08:00
Paul Franklin
4c22713a1a 9041: Father/mother's age attributes are not translated on reports 2015-11-30 21:49:34 -08:00
Paul Franklin
20601749e2 improve Russian date handler, and R. d.h. unittests 2015-11-29 20:13:35 -08:00
romjerome
6a0182456b 9058: ReferencedBySelectionProxy can forget some referenced tags
Tag records list forgot tags linked with some primary objects

was on Gramps XML file format, not related to backup or tags on Person
2015-11-29 11:30:56 +01:00
romjerome
8fac92d170 9041: Add missing 'Father/mother age' translation strings
temp workaround for mapping them via translation dict
2015-11-29 11:05:18 +01:00
Nick Hall
452fbfac80 Remove redundant unicode conversion of __file__ variable 2015-11-28 22:34:38 +00:00
Nick Hall
d770c8a236 Remove unused constfunc imports 2015-11-28 22:00:51 +00:00
Alan Strohm
3a39dfc81f Bug 9077: Don't check SSL certs on Mac when fetching addons. 2015-11-27 13:05:27 -08:00
John Ralls
388aef3a92 Catch urlopen TypeError when context arg isn't supported.
Python changed the behavior and args for urllib.urlopen; the context
arg is needed to avoid cert checking in 3.4.3 and later, but isn't
supported before, where the default is to not check certs.
2015-11-14 12:19:28 -08:00
John Ralls
1acd60d7f2 Fix undefined variable error. 2015-10-26 14:04:01 -07:00
John Ralls
93e3c62b99 Bug 8897 - Can not download new or updated add-ons
Apple provides a hacked OpenSSL that checks Keychain for certs after failing
to find them elsewhere (and normally there is no elsewhere). The versions
provided for OS X versions < 10.8 are obsolete, preventing building
osm-gps-maps's dependencies, so we provide our own but it can't be similarly
hacked to use Keychain because that is a private API to which Apple doesn't
provide headers.

This is at root a Python problem, see https://bugs.python.org/issue17128

To work around it, disable certificate verification for this one URL for
macs only. This does create the small security risk of a MITM attack injecting
malicious add-ons, but since the URL is user-editable a phishing attack is
more likely and there's nothing that SSL can do about that.
2015-10-25 15:06:27 -07:00
John Ralls
d4c7950cc5 Bug 8929 - Installation from DMG (binary) file and port file fail.
Cause was a stray bytes qualifier in the split character.
2015-10-25 15:06:15 -07:00
Tom Hughes
289b2df9a1 Handle citation objects in glocale.trans_objclass
Without this right clicking on a citation in the clipboard
gives options like "Make See Details active" which don't make
an awful lot of sense.
2015-10-18 19:25:50 +01:00
Paul Franklin
a2f2659ab1 8888: Gramps Help button User Manual wiki-links 2015-10-09 13:38:34 -07:00
Nick Hall
a86890002f Remove redundant io imports 2015-10-05 19:20:08 +01:00
Nick Hall
41c17c3190 Tidy up xml parser file handling 2015-10-05 18:30:56 +01:00
Doug Blank
463ea1fe7e if s_tagvalue is None: 2015-09-30 06:39:00 -04:00
Sam Manzi
6aadb54c9f Revert "Usability:Update initial [interface] startup defaults for (height/width)"
This reverts commit c89ae3241b.
2015-09-28 10:24:43 +10:00
Sam Manzi
c89ae3241b Usability:Update initial [interface] startup defaults for (height/width)
- Fully show each Category sidebar filter without having to resize initially. eg:Citation Category sidebar filter is the largest!
2015-09-26 15:03:48 +10:00
Nick Hall
3cf0e7885f Remove trailing whitespace from new date handler 2015-09-24 15:38:36 +01:00
Lajos Nemeséri
96efa177ba 5505: Need a date handler for Hungarian locale 2015-09-15 14:05:53 -07:00
Paul Franklin
0d098f1901 8930: allow hyphenated gramps-id in Graphviz reports 2015-09-14 16:43:13 -07:00
SNoiraud
f63381fed3 NarrativeWeb and cms : best approach for use of css files and relative links. 2015-09-09 10:26:29 +02:00
Nick Hall
2d92101438 Replace GRAMPS with Gramps in comments 2015-09-07 21:58:52 +01:00
Sam Manzi
8fd1fab200 Update docstrings - spelling 2015-09-07 14:52:49 +10:00
Nick Hall
ec9371d3b1 Revert workaround for bug #8833
This reverts commit 20a57037f7.
2015-09-05 17:26:44 +01:00
romjerome
20a57037f7 8833: Workaround for displaying more lines on Text box via label's height 2015-09-05 10:43:58 +02:00
Enno Borgsteede
8e341f96b7 7595 Custom filters for note text repaired 2015-08-24 08:48:15 +10:00
Nick Hall
cdee00aca2 Remove trailing whitespace 2015-08-23 18:42:07 +01:00
Doug Blank
719fdfe2ae Revert "Use DbTxn from database backend"
This reverts commit 92ca9d7571.
2015-08-22 21:44:52 -04:00
Doug Blank
0601324851 Revert "DbTxn: use no_magic explicitly"
This reverts commit ecc078b891.
2015-08-22 21:44:37 -04:00
Doug Blank
1f42fe835f Revert "DbTxn: pass db to generic DbTxn"
This reverts commit 8e89ceb395.
2015-08-22 21:44:17 -04:00
Doug Blank
fa053d2754 Revert "DbTxn: pass db to generic DbTxn"
This reverts commit 6f5c7f7da7.
2015-08-22 21:44:02 -04:00
Doug Blank
6f5c7f7da7 DbTxn: pass db to generic DbTxn 2015-08-22 20:21:58 -04:00
Doug Blank
8e89ceb395 DbTxn: pass db to generic DbTxn 2015-08-22 20:17:24 -04:00
Doug Blank
ecc078b891 DbTxn: use no_magic explicitly 2015-08-22 20:06:14 -04:00
Doug Blank
92ca9d7571 Use DbTxn from database backend 2015-08-22 18:17:22 -04:00
Doug Blank
e5d6be61f8 Return None if Object.create(None); white space cleanup 2015-08-21 08:14:22 -04:00
Doug Blank
ccbed9cb95 Don't repeatedly check for existing records; whitespace cleanup 2015-08-21 08:14:11 -04:00
belissent
82eb6e17ac Create a GRAMPS environment ENV for variables substitutions in paths 2015-08-20 14:04:21 +02:00
Pierre Bélissent
4bbae0e46a Fix for "Environment variables in mediapath" 2015-08-19 20:24:40 +02:00
belissent
5d654d402a Environment variables in mediapath
The mediapath could now be a relative path from database location,
or use variables ($GRAMPSHOME, $GRAMPS_RESOURCES, etc.)
2015-08-19 16:26:59 +02:00
Doug Blank
c1afa6513c Removed duplicate 'database-changed' signal, which was loading data in GUI twice 2015-08-18 07:55:44 -04:00
Nick Hall
d76757ddb4 8775: Avoid using person-centric date matching for places 2015-08-17 19:25:33 +01:00
Doug Blank
6980bb62d6 DB: New method, db.remove_instance(instance, transaction)
Delete an instance of a primary object from the database.
2015-08-17 13:42:14 -04:00
Doug Blank
269a1ab6f5 Added config value interface.treemodel-cache-size to control size of cache
Default size set to 1k for paths and other items.
2015-08-17 08:02:53 -04:00
Nick Hall
38a8c3e3b1 8842: Fix proxy to include all referenced place objects
The referenced by selection proxy needs to include places that
enclose referenced places.
2015-08-15 19:06:48 +01:00
Doug Blank
cc83bbbfb9 FanChart: moved constants to const.py for reuse without GUI 2015-08-13 18:50:23 -04:00
Doug Blank
134ba5bf2e Moved gui.thumbnails to gen.utils: useful without gui 2015-08-13 17:57:19 -04:00
Doug Blank
e45dc665c9 GenericDb: assign a temporary gramps_id, for those dbs that need a non-null value 2015-08-12 12:17:09 -04:00
Doug Blank
f7d357e8fc GenericDb: need to force gramps_ids another way for Django 2015-08-12 12:04:49 -04:00
Doug Blank
3a64dd25f4 Databases: deal with TAG_KEY; assign gramps_id, if necessary 2015-08-12 11:21:37 -04:00
Doug Blank
32bbce8ccd Databases: removed prepare_import/commit_import; updated Django places 2015-08-12 07:42:19 -04:00
Doug Blank
e5a77a60f6 OpenOrStdin/out: add encoding 2015-08-11 15:03:27 -04:00
Doug Blank
dbb1644136 8823: New items in generic databases don't not get next gramps_id, but start from 0 2015-08-11 12:24:46 -04:00
Doug Blank
a76fa8d0c7 DbManager and -L: show counts of all primary objects 2015-08-11 11:22:01 -04:00
Doug Blank
46229b2e27 gen.db.base: protection from missing parent 2015-08-09 15:16:26 -04:00
Doug Blank
ea591bfb17 GenericDB: fixed error in order_by_tag_key 2015-08-09 14:29:25 -04:00
Doug Blank
fe73500545 Database API: add common count_func to _tables 2015-08-08 09:51:31 -04:00
Doug Blank
044307661b 8112: Common means nick, call, or otherwise first of given 2015-08-08 00:27:07 -04:00
Doug Blank
2d217e17e6 Error in loading addon will now show in debug log 2015-08-07 00:37:28 -04:00
Doug Blank
975572e858 Removed private methods in GenericDb; fixed errors in DictionaryDb 2015-08-06 23:29:37 -04:00
Doug Blank
8bedb03d1d 6767: WIP, allow opening of database without using filesystem 2015-08-06 13:22:44 -04:00
Doug Blank
90bf38e3c6 Added gramps.gen.db.generic for common non-bsddb database implementations 2015-08-06 09:25:10 -04:00
Doug Blank
ee1c98b8a0 8765: Incorrect date used for date arithmetic 2015-07-31 14:12:22 -04:00
Doug Blank
f1cc01eb1a 8768: Gramps throws fatal error when trying to delete a family 2015-07-31 07:08:51 -04:00
Doug Blank
32f6024520 8772: Copy values from previous gramps.ini when upgrading; fixed typo 2015-07-30 12:32:50 -04:00
Doug Blank
03f890f4ad 8772: Copy values from previous gramps.ini when upgrading 2015-07-29 21:23:55 -04:00
Josip
a6712e151a 8764: [Compare Individual Events :Tool ]
Selecting "Save" causes a UnicodeEncodeError error
2015-07-29 04:35:41 +02:00
Doug Blank
00bd848ab4 Merge pull request #48 from sam-m888/7553GraphviznotGraphViz
7553 Change GraphViz to Graphviz
2015-07-25 09:33:20 -04:00
Doug Blank
9ddc1cb487 7261: Import GEDCOM file from MyHeritage, added __str__ to Attribute 2015-07-21 10:18:25 -04:00
Doug Blank
cb82d9f3f4 docbackend: protect from sytledtexttag with value is None 2015-07-20 07:18:24 -04:00
Sam Manzi
d3b7efa0a6 7553 Change GraphViz to Graphviz 2015-07-19 14:24:33 +10:00
Sam Manzi
a40c865c1a 8352 Change lesser than to less than 2015-07-19 11:38:07 +10:00
Chris Mayo
0725bfe33d Stop using concatenation to create docstring
Fixes gramps failing to start if file is byte-compiled and optimized
which sets __doc__ to None.
2015-07-18 20:43:43 +01:00
Doug Blank
ed2a5bcdff Merge pull request #41 from ennoborg/maintenance/gramps41
8663: add exception for UnicodeEncodeError.
2015-07-13 23:14:35 -04:00
Doug Blank
ad55a28e08 Dbstate: update docstring example on apply_proxy 2015-07-13 18:08:59 -04:00
Doug Blank
ff36ddaa00 ProxyDb: return bytes(handle) like actual database 2015-07-13 17:18:18 -04:00
Paul Franklin
667afeb861 4089: fix Lithuanian date parser (another y-m-d one) 2015-07-09 23:21:20 -07:00
Paul Franklin
a65a35f011 fix date parser for y-m-d locales (e.g. Hungarian) 2015-07-08 10:12:08 -07:00
Nick Hall
741d192f1f Fix IsEnclosedBy rule for non-existent places 2015-06-28 19:11:42 +01:00
Paul Franklin
640101c13a 8666: statistics report does not run (filter?) 2015-06-27 12:48:46 -07:00
Nick Hall
16870116e6 Remove executable permission from python code 2015-06-18 14:12:37 +01:00
Doug Blank
5950c7711a SimpleAccess: sort by surname; fixes crash in python3 2015-06-14 22:02:40 -04:00
Doug Blank
4c47a396a8 8634: DB-API Database backend doesn't compute inverse filters correctly 2015-06-14 09:56:58 -04:00
Doug Blank
8b4c5c4ebe undoredo: added missing item 2015-06-13 21:35:56 -04:00
Doug Blank
9eef80afb0 undoredo: changes to work with general backend 2015-06-13 19:33:57 -04:00
Doug Blank
156006567a DbState: added import_from_filename 2015-06-10 06:49:50 -04:00
Zdeněk Hataš
47cdc1e54d date handler fix 2015-06-07 10:54:21 +02:00
Zdeněk Hataš
bfb7f1536b translation and dateparser fix 2015-06-07 10:39:50 +02:00
Doug Blank
2f0496d0a3 8621: Recursion Filter error 2015-06-06 19:56:34 -04:00
Doug Blank
af7348a987 Added config 'database-backend' preference; removed backend dialog 2015-06-06 10:23:27 -04:00
Zdeněk Hataš
b13c731aa5 czech translation fixes
inflection fixes
2015-06-06 11:04:50 +02:00
Sam Manzi
45673e847d Merge pull request #26 from gramps-project/geps/gep-032-database-backend
Geps/gep 032 database backend
2015-06-06 14:40:57 +10:00
Sam Manzi
e34993ce31 Correct spelling & stop duplicate key 2015-06-05 12:24:33 +10:00
Sam Manzi
bee797007d spelling correction to stop duplicate key
country > county
2015-06-04 19:52:15 +10:00
Doug Blank
56796d57b4 Merge branch 'master' into geps/gep-032-database-backend 2015-06-02 10:45:51 -04:00
Doug Blank
71c790a261 Bump all version numbers to 5.0 2015-06-01 13:16:08 -04:00
Doug Blank
8317f579c2 Merge branch 'master' into geps/gep-032-database-backend 2015-06-01 07:29:37 -04:00
Nick Hall
2f4682acbd Add a couple more place displayer options 2015-05-31 17:54:21 +01:00
Nick Hall
fff6a5ce15 Add extra place displayer options 2015-05-31 16:51:39 +01:00
Nick Hall
fec5a5dab0 Remove place format preference setting 2015-05-31 11:01:06 +01:00
Doug Blank
07673be08c Merge branch 'master' into geps/gep-032-database-backend 2015-05-30 07:11:45 -04:00
Doug Blank
51402bd486 PlaceName constructor shortcut; Place.set_name type check;
bug fixes for testcasegenerator

1. Added PlaceName(value=..., lang=...) shortcut; will add to others

2. Added an instance check on Place.set_name() to make sure it
is a PlaceName

3. Fixed Testcasegenerator to make proper fake places, and a bug
in handling windows
2015-05-27 18:13:44 -04:00
Josip
a943e63b84 Merge pull request #25 from beernarrd/slovenian
new framework slovenian datehandler, updated sl.po, including plural forms correction
2015-05-27 23:02:37 +02:00
Doug Blank
cb852385bd 8593: spelling mistake in the class SimpleAccess 2015-05-27 16:55:53 -04:00
Doug Blank
6f671d8bff Merge branch 'master' into geps/gep-032-database-backend 2015-05-27 16:00:10 -04:00
Doug Blank
962608c6bf Fixed merge tests for Places; fixed init for PlaceNames with source 2015-05-26 22:03:07 -04:00
Doug Blank
1b89239323 DB-API: added undo-redo infrastructure 2015-05-26 20:08:57 -04:00
Doug Blank
8d92b5d634 Added DbState.open_database() for opening without DbManager 2015-05-26 20:08:56 -04:00
Doug Blank
8d3657f54a Diff: fixed import of DictionaryDb; removed mistaken tag.gramps_id
references in DictionartDb
2015-05-26 20:08:56 -04:00
Doug Blank
8a15aaffb7 Added missing function; allow failed plugin message to show 2015-05-26 20:08:56 -04:00
Doug Blank
4805c3c7f0 DjangoDb: force load when write_version/create to make work with reset modules 2015-05-26 20:08:56 -04:00
Doug Blank
cfb33ec1a2 DjangoDb: typo, added logger 2015-05-26 20:08:56 -04:00
Doug Blank
11ac0f1551 Database plugin type support reset_system, to reset modules 2015-05-26 20:07:45 -04:00
Doug Blank
bf12a2bc67 Basic infrastructure for Undo/Redo 2015-05-26 20:07:45 -04:00
Doug Blank
6da7f78cba Hack to reset modules on subsequent uses of Django databases 2015-05-26 20:07:45 -04:00
Doug Blank
789158aca5 DictionaryDb: now reads/writes on open/close 2015-05-26 20:07:45 -04:00
Doug Blank
c0f9559f8c Database backend writes its plugin id in database.txt 2015-05-26 20:07:44 -04:00
Doug Blank
e7d62cf9b1 Only BSDDB plugin needs bsddb3; back/restore moved to db 2015-05-26 20:07:44 -04:00
Doug Blank
2d6a319c13 Moved make_database to DbState 2015-05-26 20:07:44 -04:00
Doug Blank
b059bdec66 Database backend as a plugin: this set of changes moves most or
all of Bsddb from gramps.gen.db to gramps.plugins.database. The
id of the plugin is 'bsddb' which can be loaded using the
make_database(id, dbstate) API (for now).

Next step is to add an identifying text in the directory to
indicate which database backend to use.
2015-05-26 20:07:44 -04:00
Bernard Banko
c3a4f85e72 new framework slovenian datehandler and plural forms correction in sl.po
Inflections corrected in sl.po

Date parser corrected

Plural forms expression corrected. Range, Span, Estimated, Calculated precised.

Estimated and Calculated strings added.

updated sl.po
2015-05-26 23:02:36 +02:00
Nick Hall
cc6820f80c GEPS 036: Add date and language to place names 2015-05-26 21:12:36 +01:00
Doug Blank
9c9dc2c8e2 7143: Database Differences Report fails on gpkg with media
Added return values on imports, so we can tell the difference
between failure and success. Return value of None means failed.

Now, all importers should return an ImportInfo object.

The Differences will now stop if there is an error (such as
existing media directory.)
2015-05-26 13:19:03 -04:00
Doug Blank
b8ffc8a77d Diff struct comparison, can be a list 2015-05-22 14:25:40 -04:00
Nick Hall
e355a93dc1 Use escape utility from html rather than cgi module 2015-05-22 14:50:19 +01:00
Paul Franklin
4cab86897f tweak POTFILES 2015-05-21 09:42:00 -07:00
Paul Franklin
ec0c705b55 slight tweaks to calendat-type reports 2015-05-19 23:01:27 -07:00
Paul Franklin
cbe83feeaa tweaks to Chinese date handlers (fix parsing, reduce date formats) 2015-05-16 20:20:01 -07:00
Paul Franklin
0ad582f7b0 fix date display when month is zero but day is not (see 8477) 2015-05-16 20:15:03 -07:00
Doug Blank
9f8ffc5226 8564: Recursion error when filtering for relatives 2015-05-15 23:30:31 -04:00
Paul Franklin
578cdf6c79 8413: Finnish Date format settings does nothing
The corresponding fi.po, with month inflections, is from:
Matti Niemelä <matti.u.niemela@gmail.com>
2015-05-15 00:37:37 -07:00
Nick Hall
d7719962fd 8427: Add new IsEnclosedBy rule 2015-05-14 23:47:03 +01:00
Doug Blank
b2606fb6d3 Gramps 4.2 addons URL from github 2015-05-14 15:12:56 -04:00
Paul Franklin
74e90431c0 8109: fixes for Japanese date parser 2015-05-14 00:33:58 -07:00
Paul Franklin
3d9d9e2851 fix numeric date parser pathological case 2015-05-14 00:31:18 -07:00
Nick Hall
d8946d75ac Hide place title field in place editor
Add option in preferences to display legacy title field.  Hide by default.
2015-05-12 21:00:25 +01:00
Doug Blank
ccbab78fbc Allow database-changed signal to work with more general databases 2015-05-10 22:42:30 -04:00
Doug Blank
c8fa5169b5 Base db: at least have right signature for NotImplemented 2015-05-10 13:25:06 -04:00
Doug Blank
5149ac7554 8541: Crash following update: addon permission issue blocks re-starting gramps
There were two issues:

1. attempting to read a new addon file that wasn't readable
   threw an exception, aborted updating addons

2. global error catching didn't properly handle error code
   from an OSError
2015-05-05 13:25:20 -04:00
Paul Franklin
f9f369fb03 enable localized span and range date displayer code 2015-05-01 20:03:16 -07:00
Paul Franklin
b79b2c3955 Update _datedisplay.py 2015-04-18 15:35:02 -07:00
Josip
bb1e5f4e3d fix typo in commit 7a507a6 2015-04-13 10:01:13 +02:00
Josip
7a507a6b01 8473: problem by start program 2015-04-13 01:23:53 +02:00
Enno Borgsteede
4bd5faf446 8483: db upgrade fails, fatal damage 2015-04-12 10:44:10 -07:00
Paul Franklin
d86aa283eb 8477: date format month/year is not well reported at editing time 2015-04-09 22:07:41 -07:00
Paul Franklin
5dba5711b9 slight tweak to name-format option 2015-03-29 10:11:28 -07:00
Paul Franklin
1fff4e7b0c add another missing import 2015-03-28 13:19:49 -07:00
Paul Franklin
946a4fbd2b add missing import 2015-03-27 09:11:20 -07:00
Paul Franklin
57acf9d21a slight tweak to name_format option 2015-03-26 22:03:35 -07:00
Paul Franklin
6961361c61 enable deferred translation of get_person_filters filter list 2015-03-26 21:47:34 -07:00