Commit Graph

24558 Commits

Author SHA1 Message Date
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
Doug Blank
928a437f48 Merge pull request #78 from romjerome/maintenance/gramps42
9057: fix counter for filtered entries
2015-12-14 15:31:15 -05:00
SNoiraud
8bf8e92e3c 8943 and 8947 : finish the implementation and make the report nicer. 2015-12-14 09:56:37 +01:00
Doug Blank
a0bf429b4c Merge pull request #77 from dsblank/master
8556: ValueError: underlying buffer has been detached
2015-12-13 15:10:43 -05:00
Nick Hall
0e8f335607 Check for empty handle when returning default person 2015-12-13 19:27:49 +00:00
Nick Hall
5fc7dd6874 Fix handle errors in reports
The find_spouse report utility function can return None.
2015-12-13 18:56:57 +00:00
Ivan Komaritsyn
997da5170d update Russian translation 2015-12-13 10:15:11 -08:00
Nick Hall
f7c54e9b88 Fix handle errors in person and family editors 2015-12-13 17:34:15 +00:00
Doug Blank
03a72b8319 Prevent crash from exporting because of no default person.
Because of changes in [1], if self.get_default_handle() doesn't return a handle, we would have a crash.

5c958bd7fb
2015-12-13 12:01:25 -05:00
Doug Blank
6faed565f4 8556: ValueError: underlying buffer has been detached (from Paul's patch) 2015-12-13 11:29:24 -05:00
Doug Blank
decb51eac7 Remove encoding on stdout and stderr 2015-12-13 11:19:32 -05:00
Doug Blank
7710544936 gramps -L prints as it goes
Gramps -l now lists details as it goes, rather than after collecting details from all databases.
2015-12-13 10:49:47 -05:00
Nick Hall
cff726a4bb More empty handle checks in proxies 2015-12-12 22:00:11 +00:00
SNoiraud
4e1b72ab60 8947 : Webcal: make it possible to easily move to the next day page having a birthday 2015-12-11 20:50:42 +01:00
Nick Hall
ded6869a2a Check for empty handle in private proxy 2015-12-11 18:29:54 +00:00
Paul Franklin
4a0ce62361 use ngettext for proper plural forms use 2015-12-09 10:08:03 -08:00
SNoiraud
1021b6d178 8943 : Webcal: add an sign that somebody is not alive and make the report nicer 2015-12-08 18:23:00 +01:00
Nick Hall
31bcba8d5d Fix bug introduced in commit 8dffe66
The fix function can be passed a str or int.
2015-12-08 11:08:51 +00:00
Ivan Komaritsyn
f4f5544060 update Russian translation 2015-12-07 16:54:30 -08:00
SNoiraud
0246d96e4c Narrativeweb : remove an unused import. 2015-12-07 15:43:32 +01:00
Sam Manzi
828cb1ac08 Merge pull request #75 from cicl06/master
Small fix in import script
2015-12-07 10:07:51 +11:00