Commit Graph

23793 Commits

Author SHA1 Message Date
Nick Hall
c9b5830a37 Fix bug introduced in pylint tidy up 2016-01-05 18:03:33 +00:00
Doug Blank
27e79a3e76 CLI: if database is opened at end, then close it 2016-01-05 13:01:48 -05:00
Doug Blank
d44673c260 Don't exit from arghandler, just return 2016-01-05 13:00:30 -05:00
Nick Hall
8717839809 Add validation to gender field 2016-01-01 19:22:53 +00:00
Paul Franklin
895f8a1cfc 9073: "Unknown" spouse uses hardcoded string [deferred translation] 2016-01-01 10:47:54 -08:00
Tom Samstag
4ff2cf30e2 fix handling of a None handle 2016-01-01 09:46:20 -08: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
Nick Hall
843795738d 8556: ValueError: underlying buffer has been detached
The expat parser requires a binary mode file object.
2015-12-31 18:30:02 +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
romjerome
937cd509d0 9114: mars month instead of Marzec (Polish) 2015-12-31 11:17:20 +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
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