269 Commits

Author SHA1 Message Date
Nick Hall
ac133984a4 GEPS008: Create new module for utilities to cast types
svn: r19910
2012-06-24 00:35:23 +00:00
Nick Hall
8b297167b1 GEPS008: Create new module for name utilities
svn: r19909
2012-06-24 00:15:17 +00:00
Nick Hall
e484d54bd8 GEPS008: Create new module for tree utilities
svn: r19908
2012-06-23 23:37:30 +00:00
Nick Hall
5e1535e125 GEPS008: Create new module for make_unknown functions
svn: r19907
2012-06-23 23:18:27 +00:00
Nick Hall
2a0b009bdf GEPS008: Create new module for file utilities
svn: r19906
2012-06-23 22:13:23 +00:00
Nick Hall
3ec4c0f80c GEPS008: Create new module for keyword translation
svn: r19905
2012-06-23 19:43:18 +00:00
Nick Hall
640e203693 GEPS008: Move format_time into datehandler
svn: r19904
2012-06-23 18:34:50 +00:00
Nick Hall
af0b93b069 GEPS008: Move Gramps locale module into the datahandler
svn: r19819
2012-06-10 15:09:49 +00:00
Nick Hall
d3fed5963f GEPS008: Create new module for referent functions
svn: r19814
2012-06-10 00:10:28 +00:00
Nick Hall
bd6478327c Fix for last update
svn: r19813
2012-06-09 23:42:46 +00:00
Nick Hall
69b9142d36 GEPS008: Create new module for probably alive
svn: r19812
2012-06-09 23:39:19 +00:00
Nick Hall
9595af1324 GEPS008: Moved constfunc module
svn: r19810
2012-06-09 20:56:43 +00:00
Nick Hall
aabc6c05c2 GEPS008: Moved config module
svn: r19809
2012-06-09 20:10:28 +00:00
Nick Hall
1d6a4e60c4 GEPS008: Moved Errors module
svn: r19785
2012-06-07 17:06:16 +00:00
Nick Hall
25e3f707d2 GEPS008: Remove deprecated Date module
svn: r19761
2012-06-05 18:02:19 +00:00
Nick Hall
40ca28cd60 GEPS008: Re-structure Gramps locale files
svn: r19727
2012-05-31 15:50:40 +00:00
Nick Hall
355bbd6d7b GEPS008: Re-structure date handler files
svn: r19651
2012-05-25 23:19:10 +00:00
Jérôme Rapinat
0145b5ea22 Use named_arguments for translators (patch by MathieuMD)
svn: r19358
2012-04-19 13:44:56 +00:00
Michiel Nauta
a5cdd339ed 5466: On import and Check and Repair need to check references to absent objects
svn: r19328
2012-04-14 12:20:10 +00:00
Michiel Nauta
707efc0aff 5595: DBError when rebuilding reference maps while Event view row is selected
svn: r19271
2012-04-07 20:35:16 +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