Commit Graph

22092 Commits

Author SHA1 Message Date
Vassilii Khachaturov
db4f8960a6 Refactor IndirectCitationBase out of 3 classes
Refactor common base out of Citation, EventRef, and Repository
class IndirectCitationBase(object):
    Citation management logic for objects that don't have citations
    for the primary objects, but only for the child (secondary) ones.

    The derived class must implement get_citation_child_list method
    to return the list of child secondary objects that may refer
    citations.

    Note: for most objects, this functionality is inherited from
    CitationBase, which checks both the object and the child objects.
Includes:
* has_citation_reference
* replace_citation_references
* remove_citation_references

svn: r22960
2013-08-30 18:33:04 +00:00
Nick Hall
2aaca6aac7 6874: Use shorter names in add gramplet list. Remove old attributes gramplet.
svn: r22959
2013-08-30 18:09:48 +00:00
Nick Hall
90c25b9f8b 6786: Invoke editor on double-click in backlinks gramplet
svn: r22956
2013-08-30 16:06:49 +00:00
Vassilii Khachaturov
2df6db8b40 6960: Error merging citations
Cut-n-pastery of Repository functionality into Citation
to fix the bug pinpointed by merge_ref_test.SourceSourceCheck.

Refactoring to come next...

svn: r22953
2013-08-30 15:49:22 +00:00
John Ralls
38756d53da Bug 7017 GUI stuck when external viewer launched
subprocess.checked_call seems to wait on the process that xdg-open
starts, but subprocess.wait doesn't.

svn: r22949
2013-08-29 23:25:09 +00:00
Vassilii Khachaturov
879218475e flags HAS_CLIMERGE and HAS_EXPORTRAW to skip tests
Thanks, Nick!

svn: r22948
2013-08-29 22:48:54 +00:00
Nick Hall
74d6dd8dd4 Exclude empty checksums from export
svn: r22947
2013-08-29 20:49:54 +00:00
Vassilii Khachaturov
d550a2373a Obsolete checks in __main__
svn: r22945
2013-08-29 19:12:30 +00:00
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
Vassilii Khachaturov
f9540a469f RU l10n update - process all fuzzies
svn: r22922
2013-08-28 18:42:53 +00:00
Vassilii Khachaturov
7dfa165710 Restored broken POT generation
removed 2 obsolete files from POTFILES.in
regenerated gramps.pot and ru.po

svn: r22921
2013-08-28 16:39:01 +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
1bb6398717 Ignore tags
svn: r22915
2013-08-28 09:24:13 +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
John Ralls
d1825d97dd Fix private moduleset leakage
svn: r22913
2013-08-25 17:18:56 +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
Zdenek Hatas
f50ee8a91b czech translation update
svn: r22892
2013-08-21 14:11:08 +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
6b5da9a67f Add checksum to dtd and rng files
svn: r22873
2013-08-15 22:19:18 +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
John Ralls
9d03ce76c3 Update goocanvas and osmgpsmap to current packages
svn: r22848
2013-08-10 21:06:01 +00:00
John Ralls
4ac495dcee Add new Quartz Input Method to bundle
svn: r22847
2013-08-10 21:05:17 +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