Commit Graph

311 Commits

Author SHA1 Message Date
Vassilii Khachaturov
0021e8cec2 6921: Use "Bat Mitzvah" as the en_US event name
p1/3: actual change in the code. Note that the abbreviation
also has to be changed accordingly.
2013-12-14 16:58:42 +02:00
Vassilii Khachaturov
a00b413906 7198, 7212: attach invalid date to DateError
Back-port [872bf57] from gramps40
2013-11-23 20:26:46 +02:00
Vassilii Khachaturov
d96b01318a 7198,7212: fix Date.set(value=None)
back-port [3c93c1d] from gramps40
2013-11-23 20:22:41 +02:00
Vassilii Khachaturov
62cd754ef4 7197: back-port the fix 68c0615b from gramps40
The failing test now passes.

Back-porting work done:
1) use numbers in format strings for str.format, for py2.6 compat
2) downgrade to_struct to dateval as there's no to_struct in gramps34

Original commit:
	commit 68c0615bc4
	Author: Vassilii Khachaturov <vassilii@tarunz.org>
	Date:   Fri Nov 15 15:43:27 2013 +0200

		7197: merge the fix from master
2013-11-15 18:33:06 +02:00
Vassilii Khachaturov
5e78d54c9c 7197: test demonstrating the bug
Merge from master
	commit 93ca90f3b8
	Author: Vassilii Khachaturov <vassilii@tarunz.org>
	Date:   Thu Nov 14 22:41:46 2013 +0200

		7197: more failing tests
Not merging the datehandler_test.py changes as datehandler_test.py
hasn't been back-ported, and this test is enough to show the bug
on gramps34.
2013-11-15 18:19:09 +02:00
Vassilii Khachaturov
59470368d3 7167: support python2.6 where str.format() is used
svn: r23442
2013-10-30 07:39:25 +00:00
Doug Blank
3fd56abd3e 7090: wrong age for dead people reported by webcal
svn: r23349
2013-10-20 14:33:36 +00:00
Vassilii Khachaturov
e6e7da14b0 7068: back-port from trunk
svn: r23280
2013-10-08 13:02:17 +00:00
Vassilii Khachaturov
874be122fb 7100: back-port from gramps40
didn't back-port datehandler_test.py additions because no
datehandler_test.py on gramps34 :-(

svn: r23279
2013-10-08 12:53:42 +00:00
Jérôme Rapinat
6cffd52731 7105: missing event_ref_list into get_citation_child_list method
svn: r23261
2013-10-07 14:38:30 +00:00
Nick Hall
76400cdcc7 7066: Fix hebrew calendar and remove sdn import
svn: r23227
2013-09-30 17:40:06 +00:00
Vassilii Khachaturov
ad3461142d 7088: rm warning on `import sdn' failure
svn: r23219
2013-09-30 11:43:15 +00:00
Nick Hall
dc246df9d3 Revert r23205
svn: r23216
2013-09-28 13:35:14 +00:00
Vassilii Khachaturov
01a83099ae 7089: same bug was pasted into BirthdayReport!
Moved the utility function gregorian to gen.lib.date,
and use it like in WebCal.

svn: r23211
2013-09-27 22:53:52 +00:00
Paul Franklin
ae670af71e 7088: provide a config option to suppress the warning about missing "sdn"
svn: r23205
2013-09-26 21:52:24 +00:00
Vassilii Khachaturov
5f1a362e51 7045: enable cal switch in editor on empty dates
svn: r23179
2013-09-21 09:06:34 +00:00
Vassilii Khachaturov
3f3fc5a84d 7034,7045,7065,7066: back merge from trunk
Note: need to disable CAL.FRENCH in gramps_test.py,
otherwise they fail due to #7068

svn: r23159
2013-09-18 09:55:54 +00:00
Vassilii Khachaturov
b5ad90d317 7066: bug in hebrew_ymd
merge from trunk

svn: r23134
2013-09-14 23:54:39 +00:00
Doug Blank
b4a0ce3702 7034 and 6965: missing method
svn: r23029
2013-09-04 10:40:27 +00:00
Doug Blank
c8d9abe4f8 7034: probably_alive() failing when no birth-death dates specified; 6965: Probably Alive fails when birth date is a range
svn: r23021
2013-09-04 02:49:09 +00:00
Vassilii Khachaturov
6da4a00375 6960: Error merging citations
Back-port my work on this bug from gramps40.
Unfortunately, the tests on gramps34 still fail (they pass
on gramps40/trunk), but the repro steps marked by Nick
in the bug succeed, so I shall stop here :)

svn: r22965
2013-08-30 19:41:29 +00:00
Paul Franklin
5995d1acec Span maximums and minimums must always be positive numbers
svn: r22655
2013-07-08 01:44:02 +00:00
Benny Malengier
417d85a353 6580: Merging Media Notes fails
svn: r22257
2013-05-11 17:42:55 +00:00
Tim G L Lyons
3de9ff5dae Error in person.get_citation_child_list. Causes error in merging citation in person event reference attribute. (Discovered during investigation of 0006336: Delayed update of bottom bar in Person View after merge)
svn: r21195
2013-01-22 19:09:31 +00:00
Tim G L Lyons
98cb7c553d 0006060: Missing reference in events and citations. Fixed get_handle_referents, which had been disturbed by the fix for bug 6053
svn: r20443
2012-09-25 16:49:51 +00:00
Benny Malengier
947ba31fa5 6053: Person and Family pass eventref as object with sources, but it has no sources
svn: r20416
2012-09-19 11:31:31 +00:00
Michiel Nauta
75d54125db 5466: On import and Check and Repair need to check references to absent objects
svn: r19327
2012-04-14 12:19:00 +00:00
Michiel Nauta
96dcf2f0c1 is_equal called on handle
svn: r19261
2012-04-07 11:26:45 +00:00
Tim G L Lyons
83ae6bb74b GEDCOM Import
0005456: Default log level after installation results in disk being filled on import (various problems manifested by geni.com data)
0005030: Remove warning of libgedcom.py from family tree builder (_UID, RIN, EMAIL and WWW from FTB)
0003553: Import media files from GEDCOM (web located media for geni.com)

* Add EMAIl and WWW for RESI events (for FamilyTreeMaker)
* Detect missing FORM or FILE for Multimedia objects and produce warning reports (FORM and FILE are mandatory for GEDCOM, but are difficult to locate without messages) (for geni.com imports among others)
* Handle multimedia images that are given by web addresses (for geni.com imports among others)
* Produce warning reports when DATE, TYPE and PLACe are ignored for the event details of attributes
* Handle change date/time on notes  (for geni.com imports among others)

svn: r18903
2012-02-17 00:12:44 +00:00
Jérôme Rapinat
153aa286f8 use translated string for custom attribute type after merging
svn: r18884
2012-02-14 14:00:44 +00:00
Jérôme Rapinat
fcfa59c2a9 use translated stringfor custom attribute type after merging
svn: r18879
2012-02-14 12:17:45 +00:00
Josip Pisoj
53c9c30890 bug #5554: Automake problem
svn: r18851
2012-02-10 20:25:15 +00:00
Michiel Nauta
9dfa6c1c32 5543: Error on merging media objects
svn: r18794
2012-01-29 16:25:26 +00:00
Michiel Nauta
56f98a2afb Updated gen/lib/test/merge_test.py
svn: r18793
2012-01-29 16:19:08 +00:00
Tim G L Lyons
975f4dc118 GEPS 023: Updates to Check and Repair, Test Case Generator and repo and Utils
Check and Repair tool

 - new check source and citation reference function, with extensive changes from previous (temporary) check citation references function,
 - low level in-table duplicate handle check removed as this is superfluous because the main database tables do not use the DB_DUP flag,
 - Progress meter added for cross table duplicate checking and  fixed for all checks,
 - diagnostic prints added for all checks to indicate success, and for many to indicate details of failures detected. These prints could be simply changed to Log messages if necessary. Comments added to show how checks relate to Test Case Generator test data,
 - order of checks revised so empty objects are removed first,
 - fix_encoding of media paths and descriptions modified to remove invalid characters (see change to Utils),
 - check and remove empty citations added.

repo.py remove_citation_references added to fix removal of citations on addresses in Repository records.

Utils.py fix_encoding modified to add an option to ignore characters that can't be unicode encoded.

TestCaseGenerator

 - generate families extended to generate family events,
 - options dialogue updated to reflect available features and to make it clearer,
 - block transactions options removed as they were by-passed in the code.
 - progress meter updated to use current function, and to properly update for all options,
 - signal testing code (that wasn't functional anyway) removed,
 - tag generating code called when it needed to be,
 - data error generating code broken up into functions to reflect the functions in the Check and Repair tool that they are designed to test,
 - various test data functions added for testing cross table duplicates, media encoding errors, missing photos, control characters in notes, empty objects, source and citation references and a few missing broken family links tests,
 - some fixes for some test cases (check events, person events were marked as birth events)
 - fix random text so tags don't contain invalid characters and add a styled text option,
 - ensure that some citations are shared,
 - remove old redundant commit_transaction function,
 - media linked to pictures that exist in the Gramps code so that they don't appear as missing images.


svn: r18713
2012-01-06 22:56:08 +00:00
Doug Blank
37ed4e58ca 5476: Allow user to set a default relationship type
svn: r18687
2012-01-02 15:12:18 +00:00
Doug Blank
42c397f830 Return self from serialize to work with the create method
svn: r18587
2011-12-12 23:20:18 +00:00
Doug Blank
4409f30bc2 5423: Incorrect age for 'death before XX'
svn: r18576
2011-12-11 15:58:16 +00:00
Paul Franklin
c83653f017 for Python files and Makefile.am files in the "src" (only) sub-tree:
1) add SVN svn:keywords "Id" property if it didn't have it
2) add SVN svn:mime-type "text/plain" property if it didn't have it
3) add SVN "Id" line to the file if it had none


svn: r18554
2011-12-06 16:56:50 +00:00
Tim G L Lyons
c833073ba6 GEPS023: merge branch (changes 17960-18546) into trunk
svn: r18548
2011-12-04 17:09:17 +00:00
Tim G L Lyons
26cb74474b Removal of redundant SourceRef and related modules. Minor consequent changes.
svn: r18516
2011-11-27 17:49:25 +00:00
Tim G L Lyons
f0bb1205f3 Tidy up some comments
svn: r18497
2011-11-24 14:54:29 +00:00
Tim G L Lyons
14954cdd91 Fix problem with cancelling a citation edit where it thought the citation had been changed even though it had not.
svn: r18489
2011-11-22 22:32:36 +00:00
Tim G L Lyons
9f29350da4 Fix bug that wasn't taking account of the fact that event references in Person and Family have attributes which themselves can have Citations.
* In Person, add event_ref_list to get_citation_child_list (therefore it is no longer needed in get_handle_referents)
* Similarly in Family, add event_ref_list to get_citation_child_list
* Enhance upgrade to add upgrade of event_ref_list for person and family
* Add has_citation_reference, replace_citation_references and remove_citation_references to EventRef
* Change name of remove_citation_refs to remove_citation_references to be consistent with has_citation_reference (singular) and replace_citation_references

Fix editcitation because it was displaying the wrong privacy button for sources.
Also remove FIXME for editcitation for db signal connect, because comment explains why it is not needed.


svn: r18469
2011-11-20 17:42:04 +00:00
Tim G L Lyons
f8f510d5f1 Delete remove_source_references and replace_source_references as they are no longer needed.
Rename remove_citation to remove_citation_refs and make it apply to a citation_handle_list.
Updated tool/Check.py to change check_source_references into check_citation_references


svn: r18433
2011-11-11 17:12:43 +00:00
Tim G L Lyons
b4f434357f Remove has_source_reference because it is only used in mergesource, and it is better to make the test directly, because only citations have source references and they only have one reference.
svn: r18417
2011-11-08 17:39:17 +00:00
Tim G L Lyons
3adb1b7ffa Merged trunk r17888 through r18397 into geps023.
Conflicts resolved in:
    /data/grampsxml.dtd
    /data/grampsxml.rng
    /src/Filters/Rules/Repository/_MatchesNameSubstringOf.py
    /src/plugins/import/ImportXml.py
(Various property conflicts also resolved)

svn: r18405
2011-11-05 19:07:58 +00:00
Tim G L Lyons
4169661302 Update uses of get_source_referents to handle citations:
* implement new Utils get_source_and_citation_referents
* Update sourceview.py and citationtreeview.py to use it
* Fix editsource.py, where deletion of a source object was not properly dealing with all possible citations
* Update mediaobj.py which still had a remnant of a source_list
* fix _HasTextMatchingSubstringOf filter to deal with text in both sources and citations

svn: r18394
2011-11-01 11:10:18 +00:00
Jérôme Rapinat
f455cb269c 5293: wording improvements
svn: r18364
2011-10-23 07:51:22 +00:00
Paul Franklin
4997134564 corrected SVN "Id" property
svn: r18357
2011-10-22 15:10:59 +00:00