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
Tom Samstag
4053d84a5f
fix a raising of NotImplemented
...
It may not have caused any issues, but changing this from raising
NotImplemented to a NotImplementedError. Explanation about why this is
important at:
http://mouadino.appspot.com/notimpelementederror-vs-notimplemented-in-python/
2015-12-30 22:09:13 -08:00
Paul Franklin
76315be47d
8128: GtkDialog mapped without a transient parent
2015-12-30 21:43:31 -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
Ivan Komaritsyn
d1e11f4172
update Russian translation (with "master" gramps.pot)
2015-12-29 23:42:31 -08:00
Paul Franklin
e473f9dc89
8128: GtkDialog mapped without a transient parent
...
The set of fixes was actually triggered by comments in
https://gramps-project.org/bugs/view.php?id=9122#c45895
https://gramps-project.org/bugs/view.php?id=9122#c45921
The project is ongoing, since it's needed for our Windows users.
2015-12-29 22:49:05 -08:00
Nick Hall
a65e69cb53
Only check for changed data when cancel button clicked
2015-12-30 00:41:00 +00:00
Nick Hall
be7e9ace36
Update docstrings for database get methods
2015-12-29 23:47:42 +00:00
Nick Hall
39c8d33169
Merge pull request #84 from tecknicaltom/more_None_handle_fixes
...
fixes for None handle errors: single-parent family
2015-12-29 23:32:34 +00:00
Nick Hall
5729db8f7f
Avoid check for changed data when save button clicked
2015-12-29 20:00:40 +00:00
Nick Hall
40ca8a2da4
Store original object during editor initialisation
2015-12-29 19:54:18 +00:00
Tom Samstag
4ac6d346f4
fixes for None handle errors: single-parent family
...
Fixes for Person lookups with None handles, related to the use of a
single-parent family
2015-12-29 10:42:00 -08:00
Nick Hall
715277d9ac
Fix handle errors in family lines graph
2015-12-29 18:23:14 +00:00
Doug Blank
f4af5277e6
Struct.from_struct is also a classmethod
2015-12-29 13:09:49 -05:00
Paul Franklin
74f9fb1b8e
9137: Report Plugin [LaTeX backend] crashes
2015-12-28 12:02:15 -08:00
Zdeněk Hataš
f0e2aa6cc9
czech translation update, fixed Places terminology
2015-12-28 20:29:57 +01:00
SNoiraud
60f4c76fa2
Geography : trying to solve possible gramps.gen.errors.HandleError: Handle is None
2015-12-27 23:10:13 +01:00
SNoiraud
2aca380484
Geography : add transient for progress bar in events view + change message.
2015-12-27 19:45:28 +01:00
SNoiraud
4a47edc39c
Geography : add transient parent + change message
2015-12-27 19:08:57 +01:00
Nick Hall
33b9e80028
Fix place hierarchy creation during import
2015-12-27 17:19:41 +00:00
Doug Blank
e0c6468c77
Moved translation funtion to get_label/get_labels
2015-12-27 09:37:01 -05:00
Doug Blank
57e349a280
Merge pull request #82 from tecknicaltom/relview_None_handle
...
Fix for a None handle lookup in relview
2015-12-27 07:53:50 -05:00
Doug Blank
84e484bb64
Struct moved to gen.lib
2015-12-27 07:46:05 -05:00
Tom Samstag
c5daf38878
Fix for a None handle lookup in relview
...
If focusing on the relationship view with an empty tree loaded, an
uncaught exception was raised by attempting to call
get_person_from_handle with a None handle:
Traceback (most recent call last):
File "dev/gramps/installed/lib64/python3.4/site-packages/gramps/gui/viewmanager.py", line 1011, in view_changed
self.__change_page(page_num)
File "dev/gramps/installed/lib64/python3.4/site-packages/gramps/gui/viewmanager.py", line 1024, in __change_page
self.active_page.set_active()
File "dev/gramps/installed/lib64/python3.4/site-packages/gramps/gui/views/navigationview.py", line 154, in set_active
PageView.set_active(self)
File "dev/gramps/installed/lib64/python3.4/site-packages/gramps/gui/views/pageview.py", line 304, in set_active
self.build_tree()
File "dev/gramps/installed/lib64/python3.4/site-packages/gramps/plugins/view/relview.py", line 205, in build_tree
self.redraw()
File "dev/gramps/installed/lib64/python3.4/site-packages/gramps/plugins/view/relview.py", line 465, in redraw
self.change_person(None)
File "dev/gramps/installed/lib64/python3.4/site-packages/gramps/plugins/view/relview.py", line 470, in change_person
return self._change_person(obj)
File "dev/gramps/installed/lib64/python3.4/site-packages/gramps/plugins/view/relview.py", line 500, in _change_person
person = self.dbstate.db.get_person_from_handle(obj)
File "dev/gramps/installed/lib64/python3.4/site-packages/gramps/plugins/database/bsddb_support/read.py", line 723, in get_person_from_handle
return self.get_from_handle(handle, Person, self.person_map)
File "dev/gramps/installed/lib64/python3.4/site-packages/gramps/plugins/database/bsddb_support/write.py", line 2113, in get_from_handle
raise HandleError('Handle is None')
gramps.gen.errors.HandleError: Handle is None
2015-12-26 23:56:53 -08:00
Doug Blank
84fc198a6d
Move struct-based API to gen.lib.struct
2015-12-26 21:00:37 -05:00
SNoiraud
664359e681
Geography : Use progress meter while selecting places or events.
2015-12-26 18:35:46 +01:00
SNoiraud
99c1cb5642
Geography : HandleError('Handle is None')
2015-12-26 17:30:38 +01:00
SNoiraud
822fa7c06c
9127 : Geography : performance issue due to bad initialization.
2015-12-26 17:18:05 +01:00
SNoiraud
04c39a72e0
9126 : Better place levels handling in geography view.
2015-12-26 17:09:02 +01:00
Doug Blank
b793b9d068
Add labels to gen.lib object fields
2015-12-24 23:16:57 -05:00
SNoiraud
0ff9363d72
9127 : Geography : performance issue when selecting the events or places views.
2015-12-23 11:10:27 +01:00
Doug Blank
ab67c786b0
Remove setuptools flag
2015-12-21 17:12:30 -05:00
Doug Blank
cc97dcddbd
Fixed classifiers in setup.py
2015-12-21 14:56:41 -05:00
Doug Blank
bc7178ae2e
Webapp: point to new github for import example
2015-12-20 09:37:39 -05:00
Ivan Komaritsyn
d9ff065f4f
update Russian translation
2015-12-18 21:35:51 -08:00
Doug Blank
fd386c5bc6
Merge pull request #80 from tecknicaltom/add_db_to_package_core
...
add database plugins to package_core
2015-12-18 22:53:50 -05:00
Tom Samstag
62a95c936b
add database plugins to package_core
...
Make sure the database addon and the bsddb_support code is installed.
Without this, Gramps crashes on startup.
2015-12-18 17:06:30 -08:00
Doug Blank
4d5c28ad3a
CLI -r/--remove asks firsts, uses reg exp
2015-12-18 17:10:11 -05:00
Doug Blank
fc55aba6b3
Use new test framework; remove Test db
2015-12-18 09:09:27 -05:00
Doug Blank
01ef775491
Use CLI test framework; fix bug in fake exit
...
* uses new Gramps() test framework in cli_test.py
* test_util.Gramps allows default exit code
2015-12-18 08:46:35 -05:00
Doug Blank
d5aa7067ea
Add framework for testing CLI commands
...
* can grab output, stderr for testing output
* can redirect input, via function
* doesn't test --show, but all other CLI flags
2015-12-18 07:32:44 -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
Doug Blank
392e9eb399
Added clidbmanager.remove_database(), use in tests for cleanup
...
* clidbmanager.remove_database - removes database by name
* cli_test - clean up database created in tests
* cli_test - uses a better random name
2015-12-17 11:17:21 -05:00
Doug Blank
7eb8015aee
Add tests to handle command-line arguments
2015-12-15 23:51:03 -05:00
Nick Hall
bde4b1bf10
Fix handle errors in gramplets
2015-12-15 14:07:48 +00:00
SNoiraud
621bf1e1e9
Webcal : 8943 and 8947 : use 'until' instead of 'till'
2015-12-15 08:52:37 +01:00