Commit Graph

53 Commits

Author SHA1 Message Date
Doug Blank
76fbbcaab9 3831: Childref notes are lost on merging of children, by MD Nauta
svn: r15083
2010-04-11 13:44:01 +00:00
Doug Blank
ac4e25bffc 3830: 'Merged GRAMPS ID' attribute overwritten on PeopleMerge by MD Nauta
svn: r15080
2010-04-11 13:09:23 +00:00
Gerald Britton
8f0582df8a Use built-in functions to replace for loops:
Old code:

for x in y:
  f(x)

New Code:

map(f, y)

Also use defaultdict instead of simple dict when advantageous and use list comprehensions
instead of for loops where map() could be used but requires lambdas.


svn: r14135
2010-01-25 17:45:21 +00:00
Brian Matherly
f04880ec09 Move gettext, ngettext and sgettext calls into the new ggettext module. All of them return unicode all of the time.
svn: r14091
2010-01-18 04:42:17 +00:00
Brian Matherly
c5f54d0cfc Continued work on GEP008: Move src/BasicUtils/_NameDisplay.py to src/gen/display.
svn: r14072
2010-01-14 04:08:04 +00:00
Doug Blank
872e971fd3 gen.lib and gen.utils are independent; removed gen.utils.dbutils --- moved db methods to gen.db.base
svn: r13872
2009-12-21 04:18:31 +00:00
Gerald Britton
966d2bcd42 Use new iter_objects methods
svn: r13203
2009-09-14 20:50:25 +00:00
Gerald Britton
181c0c9b41 Replace get_place_handles with iter_place_handles
svn: r12778
2009-07-08 18:11:02 +00:00
Gerald Britton
b601f4bdf2 Replace get_family_handles with iter_family_handles
svn: r12776
2009-07-08 16:11:20 +00:00
Gerald Britton
2769b58a44 Implement iter_people_handles methods and begin to use them - second batch of updates
svn: r12774
2009-07-07 18:58:47 +00:00
Gerald Britton
5eb7e18dc6 Bug 3018: ImportGrdb: remove calls to keys() dictionary method where possible
svn: r12572
2009-05-26 20:48:09 +00:00
Gerald Britton
021b754939 Bug 3011: change old-style classes to new-style classes
svn: r12559
2009-05-21 17:19:50 +00:00
Gerald Britton
110557c3c7 Add glade.py with Glade class and use instead of gtk.Builder throughout project
svn: r12528
2009-05-14 20:15:59 +00:00
Gerald Britton
31187ac521 Merge modules: convert from libglade to gtkbuilder
svn: r12472
2009-04-18 03:10:50 +00:00
Jérôme Rapinat
279882c853 2748: Some URLs still point user to wiki manual version 3.0
svn: r12132
2009-02-26 10:02:00 +00:00
Jérôme Rapinat
6e89f69278 #2359: Phone and ZIP/Postal code are not added on alternate Address after merging two persons
svn: r11048
2008-09-09 07:59:04 +00:00
Gerald Britton
882199f1c2 Replace dict.has_key(x) with x in dict for performance gain
svn: r10874
2008-07-17 18:10:32 +00:00
Gerald Britton
4982292774 Code optimizations wrt handling of None - bug 2212
svn: r10811
2008-06-16 15:01:46 +00:00
Brian Matherly
a46e733398 Remove the "target" parameter from GrampsDisplay.help(). It was used for the old help system. We now link directly to the wiki.
svn: r10474
2008-04-05 14:17:15 +00:00
Zsolt Foldvari
2642641b84 Changing the way of how formatted Notes are stored:
remove 'Markup' optional parameter from gen.lib.note.Note.get() method.


svn: r10288
2008-03-13 10:44:22 +00:00
Doug Blank
b41c02b3af 0001927: renamed glade to avoid name conflict
svn: r10264
2008-03-11 01:21:38 +00:00
Raphael Ackermann
c962d5e6e1 2008-02-22 Raphael Ackermann <raphael.ackermann@gmail.com>
* various (294 files)
	pep8 doc fixes & pylint fixes

svn: r10103
2008-02-24 13:55:55 +00:00
Erik De Richter
12056e6b67 links to wiki manual
svn: r10088
2008-02-21 08:56:39 +00:00
Erik De Richter
54cad55630 links to wiki manual
svn: r10081
2008-02-20 19:04:53 +00:00
Raphael Ackermann
90f883e46d 2008-02-18 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/* 143 files
    * test/try_tree_model.py
    * windows/nsis/gcheck.py
    imports cleanup

svn: r10055
2008-02-18 20:07:09 +00:00
Raphael Ackermann
de5edf9f29 2008-02-18 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/DataViews/PersonView.py
	* src/ViewManager.py
	* src/GrampsCfg.py
	* src/plugins/WriteCD.py
	* src/plugins/FindDupes.py
	* src/Merge/_MergePerson.py
	* src/DbManager.py
	* src/ArgHandler.py
	* src/docgen/HtmlDoc.py
	* src/DbLoader.py
	use from QuestionDialog import ErrorDialog etc to bring in line with
	rest of gramps
	* src/Editors/_EditPrimary.py: EditPrimary._uses_duplicate_id() check
	for duplicates and give error dialog if id is already used. #0001347
	* src/Editors/_EditFamily.py: EditFamily.__do_save(), add call to 
	_uses_duplicate_id(). #0001347 

svn: r10046
2008-02-18 10:09:50 +00:00
Raphael Ackermann
bbe2cc6d4e 2008-01-22 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/* Everything but src/images/* and src/data/* add correct svn 
	properties with the commands:
	svn propset -R svn:mime-type text/plain src/
	svn propset -R svn:eol-style native src/
	svn propset -R svn:keywords Id src/
	See below why the Id keyword is enough. From svn help propset
	svn:keywords   - Keywords to be expanded.  Valid keywords are:
      URL, HeadURL             - The URL for the head version of the object.
      Author, LastChangedBy    - The last person to modify the file.
      Date, LastChangedDate    - The date/time the object was last modified.
      Rev, Revision,           - The last revision the object changed.
      LastChangedRevision
      Id                       - A compressed summary of the previous
                                   4 keywords.

svn: r9912
2008-01-22 09:17:46 +00:00
Don Allingham
d58641415d 2007-10-08 Don Allingham <don@gramps-project.org>
* various: gen.lib integration. probably touches almost every file

	* various: gen.utils integration


svn: r9101
2007-10-08 16:41:39 +00:00
Don Allingham
8038bc0dca 2007-10-07 Don Allingham <don@gramps-project.org>
* various: gen.utils integrationk



svn: r9100
2007-10-08 04:02:34 +00:00
Don Allingham
32d7968365 2007-10-06 Don Allingham <don@gramps-project.org>
* various: creation of gen.db package



svn: r9091
2007-10-07 03:19:35 +00:00
Don Allingham
a65a73d1d7 * various: const.py changes
2007-09-07  Don Allingham  <don@gramps-project.org>
	* src/DateHandler/_Date_fr.py: fix indentation errors

2007-09-07  Don Allingham  <don@gramps-project.org>


svn: r8948
2007-09-08 05:54:02 +00:00
Don Allingham
85d33c2a85 2007-07-29 Don Allingham <don@gramps-project.org>
* src/Merge/_MergePerson.py (MergePeople.copy_note): convert to the
	new notelist format (#0001130)



svn: r8789
2007-07-30 01:57:02 +00:00
Don Allingham
a9d7dd1b42 * src/Merge/_MergeSource.py: convert get_note to get_note_list
* src/Merge/_MergePlace.py: convert get_note to get_note_list
	* src/Merge/_MergePerson.py: convert get_note to get_note_list

2007-07-18  Don Allingham  <don@gramps-project.org>


svn: r8742
2007-07-19 04:33:10 +00:00
Alex Roitman
74ad7b95a4 * src/TreeViews/_PersonTreeView.py: Use name_displayer.
* src/ReportBase/_ReportUtils.py: Use name_displayer.
	* src/ReportBase/_CommandLineReport.py: Use name_displayer.
	* src/ReportBase/_BareReportDialog.py: Use name_displayer.
	* src/PluginUtils/_Tool.py: Use name_displayer.
	* src/plugins/TimeLine.py: Use name_displayer.
	* src/plugins/RelCalc.py: Use name_displayer.
	* src/plugins/ReadGrdb.py: Use name_displayer.
	* src/plugins/NarrativeWeb.py: Use name_displayer.
	* src/plugins/IndivComplete.py: Use name_displayer.
	* src/plugins/GraphViz.py: Use name_displayer.
	* src/plugins/FindDupes.py: Use name_displayer.
	* src/plugins/FamilyGroup.py: Use name_displayer.
	* src/plugins/DetDescendantReport.py: Use name_displayer.
	* src/plugins/DetAncestralReport.py: Use name_displayer.
	* src/plugins/DesGraph.py: Use name_displayer.
	* src/plugins/DescendReport.py: Use name_displayer.
	* src/plugins/DescendChart.py: Use name_displayer.
	* src/plugins/Check.py: Use name_displayer.
	* src/plugins/Ancestors.py: Use name_displayer.
	* src/plugins/AncestorReport.py: Use name_displayer.
	* src/plugins/AncestorChart2.py: Use name_displayer.
	* src/ObjectSelector/_PersonTreeFrame.py: Use name_displayer.
	* src/ObjectSelector/_PersonFrame.py: Use name_displayer.
	* src/Merge/_MergePerson.py: Use name_displayer.
	* src/GrampsDbUtils/_WriteGedcom.py: Use name_displayer.
	* src/GrampsDbUtils/_ReadXML.py: Use name_displayer.
	* src/GrampsDbUtils/_GedcomParse.py: Use name_displayer.
	* src/FilterEditor/_ShowResults.py: Use name_displayer.
	* src/FilterEditor/_EditRule.py: Use name_displayer.
	* src/Editors/_EditPrimary.py: Use name_displayer.
	* src/Editors/_EditPersonRef.py: Use name_displayer.
	* src/Editors/_EditPerson.py: Use name_displayer.
	* src/Editors/_EditName.py: Use name_displayer.
	* src/Editors/_EditLdsOrd.py: Use name_displayer.
	* src/Editors/_EditFamily.py: Use name_displayer.
	* src/DisplayTabs/_PersonRefModel.py: Use name_displayer.
	* src/DisplayTabs/_NameModel.py: Use name_displayer.
	* src/DisplayTabs/_ChildModel.py: Use name_displayer.
	* src/DisplayTabs/_BackRefModel.py: Use name_displayer.
	* src/DisplayModels/_PeopleModel.py: Use name_displayer.
	* src/DisplayModels/_FamilyModel.py: Use name_displayer.
	* src/DataViews/_PersonView.py: Use name_displayer.
	* src/DataViews/_RelationView.py: Use name_displayer.
	* src/DataViews/_PedigreeView.py: Use name_displayer.
	* src/Utils.py: Use name_displayer.
	* src/SubstKeywords.py: Use name_displayer.
	* src/Sort.py: Use name_displayer.
	* src/Reorder.py: Use name_displayer.
	* src/PageView.py (BookMarkView.add_bookmark): Use name_displayer.
	* src/Navigation.py: Use name_displayer.
	* src/DisplayState.py: Use name_displayer.
	* src/GrampsCfg.py: Use name_displayer.
	* src/Bookmarks.py (Bookmarks.make_label): Use name_displayer.
	* src/GrampsDb/Makefile.am (pkgdata_PYTHON): Ship new files.
	* src/Makefile.am (gdir_PYTHON): Ship ProgressDialog.py


svn: r8680
2007-06-28 05:41:40 +00:00
Alex Roitman
1e8a8be782 2007-06-25 Alex Roitman <shura@gramps-project.org>
* src/plugins/RemoveUnused.py (init_gui): Add missing argument.
	* src/GrampsDb/_GrampsInMemDB.py: Rename overridden methods.
	* src/GrampsDb/_GrampsDbBase.py: Rename overridden methods.
	* src/GrampsDb/_GrampsBSDDB.py: Rename overridden methods.
	* src/GrampsDb/_GrampsDBDir.py: Rename overridden methods.



svn: r8671
2007-06-26 06:02:17 +00:00
Richard Taylor
70e12c490e Moved NameDisplay into BasicUtils.
svn: r8197
2007-02-20 20:56:48 +00:00
Don Allingham
02096637b8 2007-02-11 Don Allingham <don@gramps-project.org>
* src/Merge/_MergePlace.py: merge from 2.2 tree
	* src/GrampsDbUtils/_GedcomParse.py: parsing improvements
	* src/GrampsDbUtils/_GedcomLex.py: parsing improvements

2007-02-11  Don Allingham  <don@gramps-project.org>
	* src/Merge/_MergePlace.py (MergePlaces.merge): fix typo on 
	add_source_reference
2007-02-07  Zsolt Foldvari  <zfoldvar@users.sourceforge.net>
	* src/DisplayTabs/_NoteTab.py: move "rich text" notes to 2.3 branch.

2007-02-06  Brian Matherly  <brian@gramps-project.org>
	* src/docgen/PdfDoc.py: provide a more useful error when reportlab crashes

2007-02-06  Douglas Blank  <dblank@cs.brynmawr.edu>
	* src/ReportBase/_ReportDialog.py: 0000905: Typo in catching exceptions in 
	  buggy reports
	* src/plugins/holidays.xml: 0000906: Canada holidays patch

2007-02-06  Don Allingham  <don@gramps-project.org>
	* src/GrampsDb/_ReadGedcom.py: fix cal/est parsing
	* src/DisplayTabs/_ButtonTab.py: catch window already being open
	* example/gedcom/sample.ged: Add est/cal samples



svn: r8088
2007-02-12 03:53:56 +00:00
Zsolt Foldvari
e54cbc8c51 2007-02-11 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
* src/MarkupText.py: added
	* src/DisplayTabs/_NoteTab.py: handling 'rich text' notes
	* src/RelLib/_NoteBase.py: handling 'rich text' notes
	* src/RelLib/_Note.py: handling 'rich text' notes
	* src/GrampsDb/_GrampsBSDDB.py: handling 'rich text' notes
	* src/GrampsDbUtils/_ReadXML.py: handling 'rich text' notes
	* src/GrampsDbUtils/_WriteXML.py: handling 'rich text' notes
	* src/Merge/_MergeSource.py: handling 'rich text' notes
	* src/Merge/_MergePlace.py: handling 'rich text' notes
	* src/Merge/_MergePerson.py: handling 'rich text' notes
	* src/ReportBase/_ReportUtils.py: handling 'rich text' notes
	* src/ViewManager.py: cleanup



svn: r8081
2007-02-10 23:40:48 +00:00
Don Allingham
806b7375cf svn: r7860 2006-12-31 05:17:35 +00:00
Don Allingham
13260778f1 * src/GrampsDb/_WriteXML.py: fix bookmark handling
* src/plugins/FindDupes.py (Merge.find_potentials): update internal
	list on call (bug# 789)
	copy the LDS information (bug# 642)
	(MergePeople.merge_existing_family): fix child references on merge
	


svn: r7838
2006-12-22 23:28:05 +00:00
Don Allingham
aa171d3409 2006-12-22 Don Allingham <don@gramps-project.org>
* src/Merge/_MergePerson.py (MergePeople.merge_person_information): 
	copy the LDS information



svn: r7836
2006-12-22 18:56:38 +00:00
Don Allingham
96a9dda07e * src/Merge/_MergePerson.py: fixed check_for_child function to handle childrefs
svn: r7713
2006-11-26 22:34:02 +00:00
Alex Roitman
45437abe02 2006-08-23 Alex Roitman <shura@gramps-project.org>
* src/Merge/_MergePerson.py (MergePeopleUI.__init__): Properly
	close managed window.
	* src/glade/mergedata.glade: Remove unneeded signal connections.



svn: r7246
2006-08-23 16:11:47 +00:00
Don Allingham
364cec4571 remove debug
svn: r7194
2006-08-17 21:48:54 +00:00
Don Allingham
20abe966d3 2006-08-17 Don Allingham <don@gramps-project.org>
* src/DataViews/_PersonView.py: rebuild after compare and
	merge (bug #350)



svn: r7193
2006-08-17 21:48:12 +00:00
Don Allingham
5fde6c6e50 2006-08-12 Don Allingham <don@gramps-project.org>
* src/Merge/_MergePerson.py: properly merge notes



svn: r7163
2006-08-12 21:59:32 +00:00
Alex Roitman
2d7c1c3435 * src/Merge/_MergePerson.py: Use new child_ref API.
svn: r7077
2006-07-25 20:23:28 +00:00
Don Allingham
051f992afb 2006-07-04 Don Allingham <don@gramps-project.org>
* various: pyflakes fixes



svn: r6992
2006-07-04 23:38:51 +00:00
Alex Roitman
99acb9d02f Update
svn: r6824
2006-05-31 02:41:46 +00:00
Don Allingham
1772ac7d01 * src/Merge/_MergeSource.py: note handling on source merge
* src/glade/mergedata.glade: note handling on source merge


svn: r6786
2006-05-26 03:07:48 +00:00