Commit Graph

25940 Commits

Author SHA1 Message Date
Nick Hall
875242c8d6 New convenience function to return database methods
Examples:

db.method('get_%s_from_handle', 'Person')
db.method('get_%s_from_%s', 'Event', 'gramps_id')

Returns None if the method doesn't exist.

Formats 'iter_%s' and 'get_number_of_%s' use the plural forms and
are not yet implemented.

Replaces old get_table_metadata method.

Issue #9541.
2017-10-15 18:38:46 +01:00
Nick Hall
8ef49ed303 Merge pull request #472 from prculley/bug9783 2017-10-15 18:07:04 +01:00
prculley
90de264ccf Create where_is utility to locate a binary in the standard places
This is particularly useful on Mac OS X where Gramps is passed a PATH
that does not include elements added by the terminal shell.
2017-10-15 18:01:07 +01:00
prculley
700f15be75 Pylint on graphdoc 2017-10-15 17:53:43 +01:00
prculley
32caee3aa4 Fix relationship Graph so Unicode chars on Multiple pages works.
Fixes: #9783, #9359, #8080, #6782, #6108
Bugs: #6431, #4164, #1485, #2964, #2790
2017-10-15 17:53:43 +01:00
Nick Hall
bb6d0267ac Merge pull request #474 from jralls/primary_intent 2017-10-15 17:29:17 +01:00
John Ralls
6e24c2e79a Use Gdk.Event.triggers_context_menu in osmgpsmaps.py. 2017-10-15 17:27:02 +01:00
John Ralls
00095667e8 Replace is_right_click implementation with Gdk.Event.triggers_context_menu(). 2017-10-15 17:27:02 +01:00
John Ralls
da47949b60 Replace use of CONTROL_MASK with PRIMARY_INTENT.
For better UX on Macs.
2017-10-15 17:27:02 +01:00
Nick Hall
90495324e0 Write dbapi schema version to metadata table instead of a file 2017-10-14 15:46:21 +01:00
Nick Hall
50091d1f86 Remove hardcoded references to BSDDB database backend
The default backend in the preferences is now used for:

* Archive checkout
* Import from the command line - python Gramps.py file
* Import by drag and drop onto the family tree manager
2017-10-13 22:25:49 +01:00
Nick Hall
94a6495a06 Fix opening recent family trees 2017-10-13 15:27:05 +01:00
Nick Hall
c048ebcfbb Add login dialog and username/password command line options 2017-10-12 21:11:37 +01:00
prculley
1f9f08c3c5 Fix exception when changing a family with Add person editor open
fixes #10187
2017-10-12 19:20:12 +01:00
prculley
05800c530a Pylint improvements 2017-10-12 16:46:08 +01:00
prculley
fdccc733a2 Remove eval() and rename self.dbstate 2017-10-12 16:45:59 +01:00
prculley
3d1095d9ca Another way to protect GOV IDs in Gramps ID position 2017-10-12 16:45:52 +01:00
Leonhaeuser
be776d6a31 updated German date handler: added some missing Latin month names and some old German month names 2017-10-05 21:34:23 +02:00
Leonhaeuser
0697797504 updated German date handler: added missing Latin month names and some old German month names 2017-10-05 21:29:19 +02:00
vantu5z
8e34b04d64 update Russian translation 2017-10-03 18:25:57 +09:00
Paul Franklin
e21a1c15d5 remove vestage of (old) SVN source-control system 2017-10-02 11:13:40 -07:00
Zdeněk Hataš
1aec255b38 Update Czech translation 2017-10-02 13:56:28 +02:00
Nemeséri Lajos
4c268e1236 Update Hungarian translation 2017-10-01 18:55:12 -07:00
prculley
cdec0299a5 update authors file 2017-10-01 10:47:52 -05:00
Nick Hall
b3b46c70b2 Remove set_save_path method
The path is already set in the database load method.
2017-09-30 21:35:41 +01:00
Nick Hall
aed7560a46 Add missing methods to database unit test 2017-09-30 19:07:03 +01:00
Nick Hall
f7c9ef7dbf Add missing base database method
Issue #9741.
2017-09-30 19:05:35 +01:00
Nick Hall
96f430480b Remove get_schema_version method
Issue #9541.
2017-09-30 17:32:50 +01:00
vantu5z
e38614291d update Russian translation 2017-09-30 17:43:10 +09:00
Leonhaeuser
4d1bc30d64 Update German translation 2017-09-30 00:57:46 +02:00
Nick Hall
159601d635 Remove has_gramps_id method from the public API
Issue #9541.
2017-09-29 23:38:53 +01:00
Nick Hall
d7cba793cf Remove get_gramps_ids method from the public API
Issue #9541.
2017-09-29 23:10:45 +01:00
Nick Hall
fc92bbcdba Make get_number_of, get_raw_data and has_handle methods protected
Issue #9541.
2017-09-29 22:31:24 +01:00
Nick Hall
755254cf7c Remove get_from_name_and_gramps_id method
Issue #9541.
2017-09-29 19:42:39 +01:00
Nick Hall
5cb9c3e30e Remove get_from_name_and_handle_method
Issue #9541.
2017-09-29 18:52:58 +01:00
prculley
43c768c2d4 Fix ManagedWindow/GrampsWindowManager for subsidiary window close
fixes #10194
2017-09-29 16:56:36 +01:00
prculley
e5ce8bc829 Fix Gedcom import for "1 MARR Y" issue
Fixes #10188
2017-09-29 16:53:35 +01:00
prculley
d5ca13254f Correct ReorderID tool for several bugs and deal with GetGov ID
Fixes #10177, #10175, #10176
2017-09-29 15:28:58 +01:00
niememat
81a116b6a2 Update finnish translation 2017-09-28 04:44:49 +03:00
Leonhaeuser
cf85f6600d Update German translation 2017-09-27 19:50:30 +02:00
SNoiraud
84c0d69da2 Bad call to unlink function.
Bug #08835
2017-09-27 09:40:12 +02:00
prculley
4ae5c6477b Fix Gedcom export for erroneously removed WriterOptionBox import 2017-09-26 16:20:42 -05:00
SNoiraud
41b97edb03 Try to handle OSError when we use the --export argument in CLI mode.
Fixes #08835
2017-09-26 16:07:41 +02:00
Nick Hall
c9eee3b471 Ignore empty connection settings 2017-09-25 23:00:10 +01:00
Nick Hall
95376f9eff Include new PostgreSQL error handling in CLI 2017-09-25 22:52:05 +01:00
Paul Franklin
2b42dd258e Special char in place's name breaks xdot view
Issue #10174
2017-09-24 11:57:35 -07:00
vantu5z
e1676aca6d update Russian translation 2017-09-24 19:57:14 +09:00
Paul Franklin
47ebd361d8 new gramps.pot translation template 2017-09-23 15:02:59 -07:00
Paul Franklin
62aaa65958 Organize Bookmarks Dialog doesn't close with x
Fixes #10207
2017-09-23 13:58:12 -07:00
Nick Hall
457722811d Improve PostgreSQL error handling
Re-raise a DbConnectionError if the connection raises an error.
2017-09-23 21:24:54 +01:00