Commit Graph

860 Commits

Author SHA1 Message Date
Doug Blank
eab69c44ac Fix dbdjango to be up to date with bsddb of gramps40: added checksum for Media; SourceAttribute and CitationAttribute gained a private flag; all primary objects got tags
svn: r22944
2013-08-29 19:11:30 +00:00
Tim G L Lyons
3d30663a5c 0006849: citationtreeview with search bar only searches in sources, not citation data
0006848: citationtreeview corrupts when search bar open and edit occurs
0006829: Searching into source/citation selector disallows to select all related citations, only matching rows

by fixing treebasemodel so it properly deals with secondary objects, and also citationtreemodel so it adds secondary odes even when the parent is not present.

svn: r22941
2013-08-29 18:06:43 +00:00
Vassilii Khachaturov
9487b3c1b7 6960: Error merging citations
Error merging citations containing objects with citations.
reapply from gramps40 the fix to MergeCitationQuery
merge_ref_test suite still fails :(

svn: r22938
2013-08-29 16:33:21 +00:00
Doug Blank
0bf91f7708 Make webapp work in trunk, copying changes from gramps40
svn: r22930
2013-08-29 12:23:58 +00:00
Vassilii Khachaturov
6336e35a29 7021: merge r22867 fix of #6863 to trunk
svn: r22929
2013-08-29 12:13:26 +00:00
Nick Hall
94d0a21d08 4735: Check for updates in a separate thread
svn: r22926
2013-08-28 23:34:51 +00:00
Doug Blank
5a1bddb967 7020: Date filtering fails to work on Family Events in 3.4.6 or 4.0.2; typo, missing 'not'; changed date before and after max to be 9999
svn: r22919
2013-08-28 12:00:00 +00:00
Vassilii Khachaturov
62854bb089 7016: new cmdline switches -y/--yes and -q/--quiet
Add to -h output new text about -y and -q

impex.sh switched to use --yes and --quiet

Refactor ArgHandler to reuse User object

ArgHandler now uses user.prompt
No longer custom code duplicating user.prompt functionality

This dropped support for English yes/no and prefixes in the
"OK to overwrite?", as User.prompt allows pressing "Enter"
to accept by default, and everything else except
verbatim accept choice will be treated as reject.

cli.user.User.prompt now supports treating EOF as a reject

prompt message reformatted: added newline after title

Previously, code
	'-q' in ('--qml')
returned True, which was not what ArgParser meant.
Changed the rhs of in to [] from () to avoid this for every case
in ArgParser.parse in the future as well.

Tests run: the new UT added and impex.sh

svn: r22916
2013-08-28 09:24:26 +00:00
Vassilii Khachaturov
08b76fbf8c 7013: Impl. User.prompt based on QuestionDialog2
Implemented prompt method, changed signature
to match QuestionDialog2.__init__

Refactored existing code in User classes:
common __init__ code and User.callback pulled up to gen.user

Aligned gui and cli to use stderr for spinner and
progress printouts

For testability, self._fileout attr is used instead
of hardwired stderr/stdout, this is
    add gui test (empty for now)

The new code (prompt) is not excercised anywhere but
in the unit tests yet, this is preparation work for other
items in bug #5598

svn: r22914
2013-08-26 11:25:24 +00:00
Vassilii Khachaturov
87badc8907 6878: CLI import/export plugins broken w/o DISPLAY
Reapply from gramps40.

commit b2977abeab0be3c9edd85f26f9c151d82198921c
Author: Vassilii Khachaturov <vassilii@tarunz.org>
Date:   Wed Aug 21 18:54:21 2013 +0000

    Replace a hardwired ProgressMeter with proper calls to User

    Tested with impex.sh with and without DISPLAY env

    git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@22901 4ae1f11a-8b86-4847-b8af-ab372f36d1fd

commit d67eda455f4f8c97e34ec7c85fb0bcf3a9c3b940
Author: Vassilii Khachaturov <vassilii@tarunz.org>
Date:   Wed Aug 21 18:54:05 2013 +0000

    6957: support gender in vcard import

    forgotten merge cleanup

    git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@22900 4ae1f11a-8b86-4847-b8af-ab372f36d1fd

svn: r22911
2013-08-23 08:48:02 +00:00
Vassilii Khachaturov
ffa6b33db8 7009: endless exception loop starting w/o DISPLAY
Reapplied my fix to has_display from gramps40.

svn: r22910
2013-08-22 22:45:17 +00:00
Nick Hall
72c2cff790 Add date validation to filters
svn: r22905
2013-08-22 17:13:55 +00:00
Vassilii Khachaturov
b142062187 6953: remove "undo history warning" under CLI
Merged from gramps40 the commits below and
verified there are no more instances of BatchTool
on trunk to change as well.

commit 657a57fb7de3c9804dfbff5b27f824ff79ead2ae
Author: Vassilii Khachaturov <vassilii@tarunz.org>
Date:   Wed Aug 21 17:24:41 2013 +0000

    6953: remove "undo history warning" under CLI

    Port my fix from gramps34.
    In addition, the Check tool now has a hardwired dependency
    on ProgressMeter. Make a nullifying mock locally and
    only set it to the real thing only under GUI.

    Tested with impex.sh (further stages after check still fail,
    see bug #6878).

    git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@22899 4ae1f11a-8b86-4847-b8af-ab372f36d1fd

commit 064d9a7b36770857f7fd68b35ade6e8f3f52b81a
Author: Vassilii Khachaturov <vassilii@tarunz.org>
Date:   Wed Aug 21 17:24:18 2013 +0000

    action 'tool' CLI handler broken w/o DISPLAY

    Preparing to port my fix for 6953: remove "undo history warning"
    when the BatchTool run from cli (e.g., "check")
    from gramps34, the ground state was worse in gramps40...

    git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@22898 4ae1f11a-8b86-4847-b8af-ab372f36d1fd

svn: r22902
2013-08-21 19:46:16 +00:00
Paul Franklin
7c5d15b678 add and enable Greek date handler (from Zissis Papadopoulos)
svn: r22897
2013-08-21 16:55:23 +00:00
Vassilii Khachaturov
29c7564ea4 6871: workaround gtk RTL bug in MultiTreeView
optimizing cleanup - reapply from gramps40

svn: r22891
2013-08-21 07:33:26 +00:00
Vassilii Khachaturov
02d8a8d915 6871: workaround gtk RTL bug in MultiTreeView
Reapply from gramps40 - blend of Nick's and my fix for the bug.

svn: r22888
2013-08-20 21:55:17 +00:00
Nick Hall
dcccf38e2e Add datehandler unit test
svn: r22885
2013-08-20 19:48:01 +00:00
Nick Hall
7ccbe938f1 6871: Remove vertical grid lines for RTL display
svn: r22883
2013-08-20 16:06:28 +00:00
Vassilii Khachaturov
c727e19ea8 Adapt to gramps40/trunk - add GRAMPS_RESOURCES env
Rewrote Makefile to use a single macro PYTHON
which includes all the env magic in it.

svn: r22877
2013-08-19 20:18:39 +00:00
Vassilii Khachaturov
b8e669390f gramps-connect: more automation during init
don't require the user to manually create the fixtures subdir

svn: r22876
2013-08-19 20:03:11 +00:00
Vassilii Khachaturov
88e27cd71e gramps-connect used wrong arg for GrampsLocale
Fixed webapp/utils.py and also made the docstring in Grampslocale
less ambiguous.

svn: r22875
2013-08-19 19:53:59 +00:00
Nick Hall
c56996b635 Simplify status bar and fix justification of filter status
svn: r22872
2013-08-15 22:08:23 +00:00
Nick Hall
2d8b44db89 Add checksum to media objects
svn: r22870
2013-08-15 17:49:51 +00:00
Paul Franklin
8d9f6558e5 6998: Descendant Tree Report crashes gramps 4.0.2 svn 22863M
svn: r22869
2013-08-14 22:44:09 +00:00
Nick Hall
c94c8c0b84 Fix bug in note filters
svn: r22862
2013-08-13 18:39:34 +00:00
Nick Hall
189d1f0f59 6995: Fix bug in event citation filter
svn: r22859
2013-08-13 18:23:57 +00:00
Nick Hall
4c7d413f40 Automatic update for old rules using regular expressions
svn: r22855
2013-08-11 14:12:32 +00:00
Vassilii Khachaturov
a552012663 6909: Gedcom export adds birth place/date in death
reapply my fix from gramps40

svn: r22852
2013-08-11 13:34:41 +00:00
Paul Franklin
70921cfdfa give the graphvizdialog's format_str a more-unique name
(to help distinguish it from the name displayer's format_str)


svn: r22846
2013-08-10 18:37:52 +00:00
John Ralls
1bb33d6d8a Clean up some leftovers from 22840
svn: r22842
2013-08-09 22:36:36 +00:00
John Ralls
5880dc49f6 Consolidate mslocales and self._lang_map
into a single dict for easier maintenance

Thanks to Paul Franklin for suggesting it

svn: r22840
2013-08-09 22:11:58 +00:00
Nick Hall
b8f62b8917 Remove redundant imports
svn: r22839
2013-08-09 21:37:34 +00:00
John Ralls
9e213e0090 Fix crash when Gramps is passed an invalid locale
svn: r22833
2013-08-09 19:58:34 +00:00
John Ralls
57af50e162 Ensure en_US encoding is UTF-8
svn: r22832
2013-08-09 19:58:29 +00:00
John Ralls
615fd34957 GrampsLocale:Add Greek and English to MSlocales
svn: r22831
2013-08-09 19:58:24 +00:00
Nick Hall
0693e0db79 Convert old rules to use regular expression code in the base class
svn: r22830
2013-08-09 17:31:42 +00:00
Nick Hall
50ccc05119 Combine three new rules with existing rules
svn: r22828
2013-08-09 14:06:48 +00:00
Nick Hall
927415ee88 Add regular expressions to rules
svn: r22823
2013-08-08 22:51:44 +00:00
Nick Hall
01a7fd6cf6 python3 fix
svn: r22821
2013-08-08 13:02:04 +00:00
Nick Hall
66166c2acc Fix for Windows line separator
svn: r22819
2013-08-08 12:45:23 +00:00
Nick Hall
fe258bf600 6950: Add new rule for events with places matching filter
svn: r22816
2013-08-07 23:26:16 +00:00
Vassilii Khachaturov
4b5d6fa8c9 comment/docstring fix
reapply from gramps40

svn: r22813
2013-08-07 08:21:44 +00:00
Vassilii Khachaturov
a987be1f3a 6883: non-Western fonts broken in PS reports
Reapply from gramps40.

svn: r22811
2013-08-06 22:34:54 +00:00
Nick Hall
6fe75d41e2 Convert VCard unit tests to use ElementTree
svn: r22807
2013-08-06 18:47:59 +00:00
Nick Hall
435f5106de 6969: Connect to switch-page signal after the initial gramplets have been added
svn: r22801
2013-08-05 18:35:39 +00:00
Nick Hall
f33607ac7c Close database files before removing them
svn: r22794
2013-08-03 16:46:17 +00:00
Nick Hall
d174f4c44b Add unit test for latitide/longitude conversion
svn: r22792
2013-08-01 20:46:11 +00:00
Nick Hall
9a9d7ccf03 Convert callback test to use assert methods
svn: r22789
2013-07-31 20:12:08 +00:00
Nick Hall
efb3c8c6a4 Move rotate handler test
svn: r22785
2013-07-31 16:48:50 +00:00
Nick Hall
031bdb699b Unit test python3 fixes
svn: r22783
2013-07-30 22:07:28 +00:00
Nick Hall
0dc020e31f Fix date unit test
svn: r22781
2013-07-30 20:00:23 +00:00
Nick Hall
71143f6d0d Remove superfluous console output in unit tests
svn: r22779
2013-07-30 16:58:52 +00:00
Nick Hall
4acc6e262e Remove redundant import
svn: r22777
2013-07-30 16:53:06 +00:00
Vassilii Khachaturov
8f14d9cc92 6663: RecentFiles.do_save() doesn't do XML escape
reapply from gramps40

svn: r22775
2013-07-30 15:14:07 +00:00
Nick Hall
82978c7993 Fix merge ref unit test
svn: r22772
2013-07-30 00:21:31 +00:00
Nick Hall
4760c6bd21 Fix and move db unit tests
svn: r22768
2013-07-29 16:38:06 +00:00
Vassilii Khachaturov
f36b5e66ae 6957: VCF export/import should support [x-]gender
reapply from gramps40

svn: r22764
2013-07-29 08:55:49 +00:00
Nick Hall
174a1dac95 Convert db unit test to use unittest module
svn: r22761
2013-07-28 18:54:39 +00:00
Nick Hall
b3ddf9f83a Fix and move keyword unit test
svn: r22759
2013-07-28 18:11:35 +00:00
Nick Hall
772cf39d7f Fix and move config unit test
svn: r22757
2013-07-28 17:36:35 +00:00
Nick Hall
696ee7aad0 Fix and move CLI unit test
svn: r22755
2013-07-28 16:20:30 +00:00
Nick Hall
b2b4da2d37 Fix unit tests
svn: r22753
2013-07-28 15:04:26 +00:00
Nick Hall
d6c870fde6 6954: Output command line messages and progress information to stderr rather than stdout
svn: r22751
2013-07-28 14:21:53 +00:00
John Ralls
a8267740a3 Fix python3 syntax error
svn: r22740
2013-07-27 17:25:08 +00:00
Paul Franklin
1185b58986 6946: global name 'UNITYPE' is not defined - can't open old database
svn: r22739
2013-07-26 19:13:14 +00:00
Paul Franklin
5d4ba11075 show more LDS temples on the screen
svn: r22736
2013-07-24 19:12:14 +00:00
Paul Franklin
0486ea11b7 6872: wrong size of svg image in Family Lines Graph
svn: r22733
2013-07-24 16:27:34 +00:00
Paul Franklin
03669acb70 CLI --config values should be enterable in gramps.ini form (e.g. 0 or 1)
svn: r22728
2013-07-24 00:01:28 +00:00
Vassilii Khachaturov
fe9e202fd3 6936: spelling and other fixes in RU rel calc
svn: r22720
2013-07-22 21:00:06 +00:00
Vassilii Khachaturov
8b1f6d7def 6932: Check for broken GTK install on linux only
Fix as proposed by jralls.
Also, move the 'gtk30' translation domain name to gramps consts.

svn: r22717
2013-07-22 12:04:22 +00:00
Paul Franklin
9148eaf18f add the missing import to the 3139 fix I added, sigh
svn: r22713
2013-07-21 20:49:01 +00:00
John Ralls
bdd336f38e GrampsLocale: Don't set to 'C' if LANG is en_US
Not required, Gtk has an 'en' translation

Ref. http://www.gramps-project.org/bugs/view.php?id=6867

svn: r22710
2013-07-21 20:22:24 +00:00
Paul Franklin
a327bf6337 3139: boolean command line options have to be specified as foo=true ...
The solution was suggested by Doug Blank.


svn: r22709
2013-07-21 20:04:30 +00:00
John Ralls
5e13868e45 Bug 6928: Windows: If LANG not equal en_GB Graphic Reports
in some cases produce empty PDF sheets or force graphviz to crash

Problem was due to calling localized float() when parsing a C-locale xml file

svn: r22705
2013-07-21 19:15:52 +00:00
Vassilii Khachaturov
a7b4600ad0 2974: .rtf docgen doesn't escape backslashes
svn: r22704
2013-07-21 11:13:21 +00:00
Vassilii Khachaturov
429c8e655d 6864: change warning to a more user-friendly one
s/Gramps ignored namemap value/Gramps ignored a name grouping/g

svn: r22701
2013-07-21 07:01:10 +00:00
Vassilii Khachaturov
24aefc1158 6884: RTF reports broken for intl chars
Ported my fix from gramps34 branch

svn: r22696
2013-07-20 16:30:20 +00:00
Vassilii Khachaturov
e0dfb47b30 6915: not related tool treats siblings as not rel.
Applied patch from ennoborg, thanks!

svn: r22690
2013-07-16 17:18:06 +00:00
Vassilii Khachaturov
6fdae2e29c 6867: warn on gtk translation missing
Give a dev-oriented warning on console and pop up a UI
warning dialog for the user, when an inconsistent
translation configuration is detected between gramps and gtk
(happens when a langpack is missing on Ubuntu systems, e.g.)

svn: r22683
2013-07-16 11:10:24 +00:00
Paul Franklin
0617629e9d 6922: Export gpkg crashes in svn 22654M
svn: r22682
2013-07-15 18:38:11 +00:00
Serge Noiraud
c635e94f5d Bug #6917 : Gtk2 to Gtk3 port of colorsel to get_color_selection()
svn: r22680
2013-07-14 12:28:13 +00:00
Paul Franklin
e6c91354a5 revert the Finnish date-format change (remove the four I added)
svn: r22678
2013-07-13 20:56:38 +00:00
Paul Franklin
b2e5148b18 correct the Finnish date-format choices (add the other four)
svn: r22675
2013-07-13 20:02:49 +00:00
Paul Franklin
e4cbeaef19 added and/or clarified various date handler comments
also slightly reformatted a few date handler lines
and fixed one (locale-specific) date handler typo


svn: r22672
2013-07-13 18:01:08 +00:00
Serge Noiraud
c7ad6127da Geography : print page size selection before opening printing dialog.
svn: r22669
2013-07-12 11:38:26 +00:00
Paul Franklin
59d225108c standardize date handler's internal argument names, for easier comparisons
svn: r22667
2013-07-09 01:31:56 +00:00
Paul Franklin
9058a04bc1 ignore bad Record Gramplet/Report data (the data-verification tool catches them)
svn: r22664
2013-07-08 21:52:56 +00:00
Craig J. Anderson
bcc17b3700 Updated code to:
. http://www.gramps-project.org/bugs/view.php?id=3430
. . added a $G[vtdelcspnom] to display
. . . researcher information
. . . gramps version and database name
. be more vim compliant and a little more PEP compliant



svn: r22661
2013-07-08 20:28:36 +00:00
Paul Franklin
75efe4f5d7 Span maximums and minimums must always be positive numbers
svn: r22657
2013-07-08 01:44:32 +00:00
Serge Noiraud
700cddf453 Geography : omit to add the new file for printing : cairoprint.
svn: r22653
2013-07-05 18:02:13 +00:00
Serge Noiraud
b2c233dc94 Geography : add printing functionality for all geography views.
svn: r22652
2013-07-05 17:51:38 +00:00
Doug Blank
356351f40c Added missing SrcAttributeType
svn: r22650
2013-07-05 16:51:33 +00:00
Doug Blank
75eef28af7 6774: Recursive call in GEDCOM export preview calculation
svn: r22649
2013-07-05 15:03:40 +00:00
Doug Blank
a7e76d9a30 Undo changes for 6878
svn: r22647
2013-07-03 20:23:21 +00:00
Doug Blank
9442a5afe8 6081: Crash after double-click on .gpkg file
svn: r22643
2013-07-03 12:54:19 +00:00
Doug Blank
6b8eff0908 6878: Running CLI options when DISPLAY not set barfs
svn: r22642
2013-07-03 01:20:03 +00:00
Paul Franklin
fc6725852a 6818: Enable Relationships support on RelationshipGraph (GraphViz)
svn: r22638
2013-07-01 16:59:55 +00:00
Benny Malengier
1f88a54415 GTK3 wants to deprecate unicode menu
svn: r22634
2013-07-01 08:42:06 +00:00
Paul Franklin
4d0f6160d5 make sure relationship calculator's relationships are in the UI language
svn: r22633
2013-06-30 17:52:12 +00:00
Benny Malengier
2c879c794c 6807: validatedmaskedentry: no attribute '_block_changed'
svn: r22630
2013-06-30 15:52:04 +00:00