262 Commits

Author SHA1 Message Date
Vassilii Khachaturov
59470368d3 7167: support python2.6 where str.format() is used
svn: r23442
2013-10-30 07:39:25 +00:00
Doug Blank
4b76d67c07 Today() needs to be prefaced with modules, gen.lib.date
svn: r23140
2013-09-16 18:01:12 +00:00
Vassilii Khachaturov
3ab55427a1 7063: endless loop in probably_alive_range
Add a hack protection for descendants like we already have
for ancestors, and add a debug printout.

svn: r23117
2013-09-13 17:54:23 +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
6fd25dd251 7034: probably_alive() failing when no birth-death
ProbablyAlive.probably_alive_range:
If there is an existing death event without a recognizable date,
assume the death date to be "before today" for the calc purposes.

Tested with the repro database in the bug and the extra debugging.

svn: r23006
2013-09-03 12:27:19 +00:00
Vassilii Khachaturov
ef159eb6f1 7034: probably_alive() failing when no birth-death
Preparing to fix the bug:
refactor cut-n-paste traces in probably_alive, proper proxy access
minor bug with return_range handling
add testing ground

svn: r23005
2013-09-03 12:27:08 +00:00
Paul Franklin
e766623a65 3139: boolean command line options have to be specified as foo=true ...
The solution was suggested by Doug Blank.


svn: r22707
2013-07-21 20:03:48 +00:00
Jérôme Rapinat
8222308239 6535: 'Language' should probably not be capitalized
svn: r22149
2013-05-03 06:55:58 +00:00
Tim G L Lyons
7f10ab796e Fix processing of contractions, and changes to ensure code (after initial lines) for narrativeweb is the same for trunk and gramps34
svn: r21294
2013-02-04 18:49:57 +00:00
Tim G L Lyons
421d38eb89 0005088: Narrated Web Site Report sort order different Windows vs Linux. Initial commit to resolve the issues on Linux and Mac (provided in both cases PyICU is installed). Windows still needs to be tested, and there may still be some other uses of strxfrm (or strcoll) that need to be fixed.
svn: r21174
2013-01-20 15:10:26 +00:00
Doug Blank
55492a7573 4719: Narweb Privacy issue, probably_alive uses spouse birth/death directly
svn: r20934
2013-01-02 02:42:36 +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
250a3eb343 5595: DBError when rebuilding reference maps while Event view row is selected
svn: r19270
2012-04-07 20:34:24 +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
bcd7c38e4e typos
svn: r18617
2011-12-17 21:04:50 +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
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
Tim G L Lyons
bb854ec772 Modifications as suggested by Nick Hall:
* Remove inheritance of Citation from RefBase, using source_handle filed instead (similar to  the way Family objects store mother and father handles) (also use the set_ and get_reference_handle functions more consistently)
* Use get_citation_list instead of get_citation_references (more consistent with the way notes are handled)

svn: r18100
2011-09-02 10:40:53 +00:00
Tim G L Lyons
29cc4ee6e9 * various updates to CitationView, CitationEmbedView and CitationEditor to take account of Rev 17973 for two different object types in selectors
* updates to citationviews to support all the functionality (add source etc.) provided by sourceview (including different tooltips for tree view and list view)
* moved registration of citationtreeview into view.grp.py
* removed citationtreeview.grp.py module
* fixed update to citation when note is deleted
* fixed update to citation when media object is deleted
* re-enabled edit button in sourcebackreflist
* improved date display in mergecitation
* changed default note type for citation notes
* changed backref in citation editor to CitationBackRefList
* fixed removal of citation handles from the list in primary objects when a citation is deleted
* fixes for pylint

svn: r18095
2011-09-01 18:13:42 +00:00
Tim G L Lyons
9ff46d9eab Initial prototype.
* Changed database to introduce Citations
* Introduced new Citation Primary object and CitationBase (equivalent to CitationRef) child object
* Implemented CitationTreeModel and CitationListModel
* Implemented CitationTreeView and CitationListView for new citation views in the navigator
* Implemented EditCitation which is used both for the citation views in the navigator and for the citations of an object
* Implemented the CitationEmbedList to display the citations of an object
* Modified the bottom bar gramplets to support citations
* Implemented the citation selector.
* Modified Media object to include references to Citations
* Initial work on deleting citations


svn: r17960
2011-07-24 18:30:28 +00:00
John Ralls
ee5d62701e Bug #5044: Unable to enter valid dates when the (full) month contains accented letters.
This turns out to be a codeset-setting issue, where unicode() returns different (perfectly valid) encodings of the words depending upon which codeset it's given.

There's also a problem with using locale.getpreferredencoding() on OSX: It returns "mac roman", pretty much regardless of the environment locale settings. This isn't correct for recent versions of OSX under any circumstances, so this change also disables calling it on macs.

svn: r17859
2011-06-28 23:05:53 +00:00
Michiel Nauta
fabbb30970 4921: Want a "Main Participants" entry in sidebar eventfilter
svn: r17539
2011-05-19 21:00:30 +00:00
Vassilii Khachaturov
4a03503c98 4796: 'Primary' string needs l10n context
CR: Benny
* Created two strings with l10n context instead of the old one,
'Role|Primary' and 'Name|Primary'.
* While testing, GUI started showing the context when not localized, fixed
that with appropriate sgettext instead of gettext in surnametab.py.
* While at it, changed also changed 'Family' in the Role context to 'Role|Family'.
* ru.po: major translations in the area of name and name formats.
The new Primary[...] and Patronymic[...] concept along with Notpatronymic
still don't fit well when translated :-(



svn: r16986
2011-03-30 14:43:34 +00:00
Benny Malengier
3c9fa2c1d4 4598: (trunk 3.3) new name format copies patronymic into surname as well as leaving it as a patronymic when importing
This extends what name display can be


svn: r16848
2011-03-18 10:42:03 +00:00
Jérôme Rapinat
aea7959eb0 4326: 'descendant' instead of 'descendent'
svn: r16551
2011-02-03 09:04:07 +00:00
Jérôme Rapinat
5c8a3f7488 4532: Patch for Windows (by josip)
svn: r16386
2011-01-15 09:43:34 +00:00
Nick Hall
9c14d3b487 GEPS 006: Add Locality to researcher
svn: r16082
2010-10-29 23:11:08 +00:00
Benny Malengier
2fa5470b34 allow adding people from family editor and relview
svn: r16042
2010-10-24 20:21:37 +00:00
Benny Malengier
e109e3d743 Merged geps21 branch, changes r15866-16034, into trunk
svn: r16035
2010-10-24 14:43:47 +00:00
Peter Landgren
8f1bbb6811 Issue 4291, wrong path when cancel.
svn: r15976
2010-10-13 08:46:58 +00:00
Peter Landgren
1d8a776cd3 Part 1 of issue 4276. I principle same patch as for branch, but adapeted to trunk.
svn: r15959
2010-10-09 12:33:47 +00:00
Benny Malengier
e9599d762d Working namedisplay
Working display section in preferences


svn: r15946
2010-10-01 21:22:25 +00:00
Peter Landgren
abaf3060bd Issue 4212, Win problems with media path/file name with non latin.
svn: r15905
2010-09-16 12:33:23 +00:00
Doug Blank
7cddb5c236 Removed some subtle checks in probably_alive to make more protective when restricting on alive status
svn: r15554
2010-06-11 00:35:54 +00:00
Doug Blank
a6c702638f Protection from null objects
svn: r15507
2010-05-30 12:14:26 +00:00
Peter Landgren
bbf095ddb5 Final fix of issue 3935, coding problem in Windows.
svn: r15493
2010-05-28 13:21:14 +00:00
Doug Blank
8a25a77c9f Removed .get_base_db() method as there was already basedb for the same purpose
svn: r15484
2010-05-25 23:29:37 +00:00
Doug Blank
0a73ecc10e use new get_base_db method of db
svn: r15466
2010-05-23 15:45:41 +00:00
Doug Blank
80f5069a49 Protection from missing (or inaccessible) person
svn: r15455
2010-05-23 14:51:51 +00:00
Nick Hall
6da2ade5e3 Format date in Last Changed column in views according to preference setting
svn: r15426
2010-05-20 17:47:31 +00:00
Doug Blank
7da7919b78 3957: probably_alive does not use full database to determine living status
svn: r15401
2010-05-13 12:09:15 +00:00
Peter Landgren
a19abb267f Fix of issue 3935. Wrong encoding in Windows.
svn: r15360
2010-05-08 14:30:01 +00:00
Doug Blank
845d5d0a33 3877: 'alive' and incomplet date
svn: r15280
2010-04-24 18:59:14 +00:00
Peter Landgren
441c7fb720 Fix of 3838.
svn: r15232
2010-04-19 13:11:27 +00:00
Doug Blank
2f05c0f1b1 3789: Web report crash
svn: r14994
2010-04-01 23:36:21 +00:00
Doug Blank
8418c06ae0 3673: People with less than 1 year seems to be ignored on 'Age on Date' gramplet and 'Records' report
svn: r14689
2010-03-08 02:59:49 +00:00
Doug Blank
b29f2504db Fixed error on probably_alive with people with a future death guess
svn: r14405
2010-02-17 02:45:48 +00:00
Doug Blank
c4f2d4e596 3601: ALIVE algorithm needs someone alive today in the database; mistake fix on a variable name
svn: r14339
2010-02-12 19:42:55 +00:00
Peter Landgren
932eeac2d7 Make use of new module constfunc.
svn: r14280
2010-02-08 17:16:37 +00:00
Peter Landgren
0599a90583 Make use of new module constfunc.
svn: r14275
2010-02-08 08:27:45 +00:00