Commit Graph

219 Commits

Author SHA1 Message Date
Michiel Nauta
53af0a2189 5397: In "Check & Repair Database" the default path to missing media is always to \gramps\bin
svn: r18729
2012-01-09 18:13:34 +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
Paul Franklin
d03eb65fa3 avoid version incompatibility
svn: r18658
2011-12-29 01:20:00 +00:00
Michiel Nauta
13f3afe9aa 5349: Filter and "Quick Filter" are not applied when you press [Enter]
svn: r18585
2011-12-12 18:37:53 +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
6cb761b010 Merged trunk r18398 through r18497 into geps023.
Conflicts resolved in:
    NarrativeWeb.py


svn: r18498
2011-11-24 18:15:53 +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
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
Paul Franklin
db106e70f6 5347: Verify.py should test for old age but no death
svn: r18462
2011-11-18 19:35:47 +00:00
Tim G L Lyons
8f69e88555 Diagnostic print for assertion error in Tool/Family Tree Processing/Merge Citations
svn: r18459
2011-11-17 20:53:10 +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
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
Jérôme Rapinat
886e89cd30 5308 5320 5342 5301 better ATK support, GtkBuilder for gtk+ 2.16
svn: r18397
2011-11-01 13:42:38 +00:00
Paul Franklin
ba60ec4c07 missing or malformed SVN "Id" line
svn: r18361
2011-10-23 03:13:50 +00:00
Tim G L Lyons
2c89d2e0b2 Fix merge citations for repositories
svn: r18343
2011-10-18 16:38:18 +00:00
Paul Franklin
331c135235 5128: Python files with no SVN "Id" property (& added MIME text/plain if none)
svn: r18338
2011-10-16 20:21:22 +00:00
John Ralls
315d41790d Add mergecitations.glade to Makefile.am so that it gets installed
svn: r18244
2011-10-02 23:47:52 +00:00
John Ralls
36f45b392a Add MergeCitations.py to Makefile.am so that it gets installed
svn: r18243
2011-10-02 23:15:34 +00:00
Tim G L Lyons
8c36ed6a8e Add MergeCitations tool.
Add note to upgrade information dialogue box to suggest running the tool.
Fixes to Person and Family for get citation child list for merging citations.


svn: r18228
2011-09-30 21:34:21 +00:00
Michiel Nauta
9dd5465216 5140: Import of Gramps XML file with cross table duplicate handles crashes
svn: r18036
2011-08-16 20:06:43 +00:00
Michiel Nauta
5bbe4fc56e 5059: Reordering Gramps IDs fails
svn: r17886
2011-07-01 11:44:26 +00:00
Michiel Nauta
cb3d1f8ce5 5054: ID format conversion creates duplicates
svn: r17884
2011-07-01 11:22:37 +00:00
Brian Matherly
849a3749f6 0004801: Error in Database Verification tool check for max no of yrs between children (Patch from Paul Franklin)
svn: r17471
2011-05-11 02:53:13 +00:00
Nick Hall
3aab8c01b5 4435: Generate random Tags
svn: r17134
2011-04-16 23:07:31 +00:00
Nick Hall
95367b4a60 4435: Convert Markers into Tags
svn: r17132
2011-04-16 19:03:41 +00:00
Doug Blank
a00dcd0c2b Move all trunk plugins to version 3.4
svn: r16874
2011-03-21 20:43:00 +00:00
Gary Burton
0db0e5d70a Import DbTxn from the correct place
svn: r16803
2011-03-10 21:20:44 +00:00
Vassilii Khachaturov
19b928b94a Patch from Egor Reentov <egor.gramps@google.com>:
* Adding l10n to a string in PatchNames.py.
* ru.po: Many strings added / updated. (applied w/minor copyedit)

POT merge, more translation.



svn: r16795
2011-03-10 06:36:16 +00:00
Michiel Nauta
8ffe719ac3 4728: Python evaluation window crashes in trunk
svn: r16793
2011-03-09 18:44:23 +00:00
Michiel Nauta
5badd6ca06 Store changed children during family deletion
svn: r16768
2011-03-06 18:59:10 +00:00
Gary Burton
9565f997f0 Set transaction description properly. Bug 4672
svn: r16734
2011-02-28 21:02:42 +00:00
Doug Blank
db8402e7f5 4694: Tools->Utilities->Verify the Data->crash
svn: r16728
2011-02-28 13:50:54 +00:00
Michiel Nauta
a73699e6da Update TestcaseGenerator to work with new transaction code
svn: r16705
2011-02-23 19:34:59 +00:00
Benny Malengier
752d594571 4198: Person view does not remove a row correctly when two people are merged.
This patch improves on the context changes:
 * avoid use of transaction_xx methods
 * force an abort in case of unclean transaction

Backward compatibility is broken to achieve this.


svn: r16680
2011-02-20 10:52:06 +00:00
Gerald Britton
52b136b305 In method collect_unused, replace dispatch dictionary with tuple
svn: r16604
2011-02-11 14:50:30 +00:00
Gerald Britton
a8375c02df Rearrange comments for added clarity
svn: r16601
2011-02-11 14:03:02 +00:00
Gerald Britton
6bfc9224d8 In method cleanup_empty_objects, replace dispatch dictionary with tuple
svn: r16598
2011-02-10 17:46:21 +00:00
Michiel Nauta
1231b1cac8 4590: Error on access of LDS editor when sealed to family has been removed.
svn: r16592
2011-02-09 16:03:52 +00:00
Jérôme Rapinat
c67d02847b 4326: typos (by PaulFranklin); part I
svn: r16543
2011-02-02 18:33:16 +00:00
Benny Malengier
6d596ad987 4198: Person view does not remove a row correctly when two people are merged.
This is a major patch by Michael Nauta. It means all writes happen immediately to bsddb, and the bsddb 
rollback is used on a crash. Transaction is no longer used to store changes and do them on commit.
Undo database is set on end. 
At the same time with statement is used throughout for transactions
At the same time, the original bug in merge code should be fixed
Still some issues, that will be ironed out


svn: r16523
2011-01-31 21:54:58 +00:00
Jérôme Rapinat
2b24b1210d typo
svn: r16497
2011-01-28 15:33:20 +00:00
Gerald Britton
7c3bcc5f06 Remove redundant line continuations
svn: r16459
2011-01-24 18:55:52 +00:00
Gerald Britton
fe5887626c Remove unnecessary line continuations and tidy up a bit
svn: r16458
2011-01-24 16:27:23 +00:00
Benny Malengier
b3beba53d8 Some bsddb changes
* allow to use bsddb3 as database via a config setting
  * set async write to disk to improve speed, eg import * 40


svn: r16446
2011-01-23 21:25:51 +00:00
Benny Malengier
710726f259 correct tab errors given by tabnanny
svn: r16439
2011-01-22 16:47:26 +00:00
Peter Landgren
7dfa50b602 Issue 4515, Check and Repair replaces illegal cntrl char with space.
svn: r16342
2011-01-06 12:12:23 +00:00
Peter Landgren
099f28ad59 Issue 4460. Fixed by changing =+ to +=.
svn: r16300
2010-12-19 12:04:21 +00:00
Doug Blank
0f2c2b5108 4436: FindDuplicated tool uses merging
svn: r16283
2010-12-15 12:21:46 +00:00
Doug Blank
84c07b3f56 Added batch media tool to sync directories of images with Gramps media database files
svn: r16273
2010-12-12 18:15:24 +00:00