Commit Graph

88 Commits

Author SHA1 Message Date
Jérôme Rapinat
0901feda9e #4044 #2855 #2762 fix on half relations (contribution by reinhard)
svn: r15526
2010-06-04 13:33:22 +00:00
Peter Landgren
0cb50c9fc5 Fix of issue 3703.
svn: r14796
2010-03-13 20:26:22 +00:00
Rob G. Healey
6593bcc66f Something else was wrong.
svn: r14484
2010-02-25 15:54:31 +00:00
Rob G. Healey
36a91b6cb9 Changed some formatted strings to named variables for 'make distcheck' to work properly.
svn: r14483
2010-02-25 15:52:32 +00:00
Doug Blank
2e038d405e Protection from crashing on a bad lang name
svn: r14312
2010-02-11 12:18:01 +00:00
Doug Blank
36281cc5e4 Added 'c' as same as English; made error message less cryptic (I hope)
svn: r14311
2010-02-11 12:13:46 +00:00
Peter Landgren
e045018356 Delete of debug print.
svn: r14243
2010-02-06 09:38:04 +00:00
Peter Landgren
f62432f5e7 Better test for English rel calc.
svn: r14242
2010-02-06 09:36:34 +00:00
Peter Landgren
02097dd421 Use English for English locale.
svn: r14221
2010-02-05 09:33:13 +00:00
Peter Landgren
d3f04fc6ee Better handling of LANG. My code need to be tided up.
svn: r14212
2010-02-04 16:15:31 +00:00
Peter Landgren
2f1a8dc1ed Translation even if LANG missing or set wrong or None.
svn: r14209
2010-02-04 12:56:11 +00:00
Peter Landgren
9e3797a8c3 Translation even if LANG missing or set wrong or None.
svn: r14208
2010-02-04 12:52:38 +00:00
Peter Landgren
8aedb01608 Translation even if LANG missing or set wrong.
svn: r14207
2010-02-04 12:38:57 +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
4b1c61a6e7 Make in-law relationships easier to translate for the Kinship Report.
svn: r14053
2010-01-13 04:31:42 +00:00
Jérôme Rapinat
9ae34b4ba8 pylint
svn: r13975
2010-01-05 18:07:09 +00:00
Benny Malengier
750331b8bd 3325: Gramps (from trunc) chrashes without an environment definition for LANG
svn: r13460
2009-10-29 22:12:11 +00:00
Brian Matherly
22693cfbad Pylint cleanup for the relationship calculator.
svn: r13421
2009-10-26 02:10:14 +00:00
Benny Malengier
d25cdc3958 3292: register plugins, load on need, not on start of GRAMPS - GEPS 014
Improvements: gen.plug only depends on gen, relationship default is moved
to Relationship.py, and config for hidden to a gui.pluginmanager


svn: r13405
2009-10-25 13:52:29 +00:00
Doug Blank
99282aa715 3272: Proposal for updating config settings
svn: r13346
2009-10-08 01:12:51 +00:00
Benny Malengier
a52bc62be9 2691: Create api documentation with sphinx
svn: r12704
2009-06-24 21:56:07 +00:00
Gerald Britton
fc90d5fce2 Bug 3018: remove calls to keys() dictionary method where possible
svn: r12562
2009-05-22 18:43:40 +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
Raphael Ackermann
baef4d76a4 fixed indentation issues and mix of tabs and spaces.
svn: r11943
2009-02-09 23:37:40 +00:00
Benny Malengier
b544c48e9e #2494 Unused functions in Relationship.py, patch
by Reinhard Müller <reinhard.mueller @ bytewise.at>
 


svn: r11294
2008-11-12 09:55:10 +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
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
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
9aee82d6d0 2008-02-18 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/DataViews/EventView.py
	* src/DataViews/FamilyList.py
	* src/DataViews/PedigreeView.py
	* src/DataViews/PersonView.py
	* src/GrampsCfg.py
	* src/Editors/_EditPrimary.py
	* src/DisplayTabs/_EmbeddedList.py
	* src/DisplayTabs/_BackRefList.py
	* src/plugins/RelCalc.py
	* src/QuickReports.py
	* src/Relationship.py
	* src/Selectors/_BaseSelector.py
	* src/GrampsWidgets.py
	* src/DbManager.py
	* src/DisplayState.py
	* src/DisplayModels/_BaseModel.py
	* src/DisplayModels/_PeopleModel.py
	* src/GrampsDbUtils/_GrampsDbWriteXML.py
	* src/gramps_main.py
	* src/Filters/Rules/_MatchesFilterBase.py
	* src/ManagedWindow.py
	pep8 updates. replace ''' with """ for comments
	* src/GrampsDbUtils/_WriteGedcom.py: doc fixes
	added support for exportin source, notes and repos that are not linked to 
	other records.
	0001707: export to gedcom doesn't include source, if source is the only 
	thing in the db 

svn: r10051
2008-02-18 15:52:40 +00:00
Benny Malengier
f000b4575a * src/plugins/rel_nl.py: new half sibling types
* src/plugins/rel_it.py: new half sibling types
	* src/Relationship.py: change the sibling type to distinguish
	side of relation. Correct bug in sibling type determination.

2007-11-23 Benny Malengier <benny.malengier@gramps-project.org>


svn: r9390
2007-11-23 15:02:30 +00:00
Benny Malengier
36ac2f8190 2007-11-23 Benny Malengier <benny.malengier@gramps-project.org>
* src/plugins/all_relations.py: remove unnecessary import
	* src/plugins/siblings.py: add sibling relation if not normal
	* src/Relationship.py: improve sibling type calculation
	Issue #1323



svn: r9388
2007-11-23 08:27:11 +00:00
Benny Malengier
28de76d2c0 * src/Config/_GrampsConfigKeys.py: key for gen search depth
* src/GrampsCfg.py: Gramps preferences allows to set search depth
			of relationship.
	* src/Relationship.py: methods to change generation depth of search
	* src/plugins/rel_fr.py: remove depth use
	* src/plugins/all_relations.py: use depth, correct remark print error
	* src/plugins/rel_pl.py: remove depth use
	* src/DisplayState.py: hook to change relclass depth from GrampsCfg
	See also issue #1290

2007-11-22 Benny Malengier <benny.malengier@gramps-project.org>


svn: r9385
2007-11-22 16:13:10 +00:00
Benny Malengier
0dca36536d * src/Relationship.py: remove old methods that are no longer used,
get_relationship() and get_relationship_distance()

2007-11-22 Benny Malengier <benny.malengier@gramps-project.org>


svn: r9384
2007-11-21 23:34:41 +00:00
Benny Malengier
14885c719e 2007-11-22 Benny Malengier <benny.malengier@gramps-project.org>
* src/plugins/relcalc.glade: don't do connect in glade, we need key
	* src/plugins/Leak.py: use os.sep, not + '/'
	* src/plugins/RelCalc.py: Don't keep recalculating relation map of the
	active person, do it once. 50% faster. Make sure all objects can be
	collected by the garbage collector
	* src/Relationship.py: allow to connect to database. Map of first 
	person is stored, only to be removed if database changed, or it
	concerns a different person. This reduces calculation with 50%
	* src/DisplayState.py: don't recalculate home person every time, don't
	call relationship calc on every click, only call it when the people
	are different



svn: r9383
2007-11-21 23:15:10 +00:00
Benny Malengier
3438c8973d 2007-11-19 Benny Malengier <benny.malengier@gramps-project.org>
* src/Relationship.py: many improvements and bug fixes
	* src/plugins/all_relations.py: bug fixes
	* src/plugins/RelCalc.py: use new API
	* src/plugins/rel_nl.py: finished, removed comment
	* src/plugins/rel_it.py: finished
	* src/plugins/rel_pl.py: move old code here away from Relationship
	* src/plugins/rel_pt.py: import gen.lib



svn: r9367
2007-11-18 23:39:14 +00:00
Benny Malengier
a2be7edd5b 2007-11-10 Benny Malengier <benny.malengier@gramps-project.org>
* src/plugins/rel_nl.py: inlaw children are allowed
	* src/Relationship.py: inlaw children are allowed



svn: r9330
2007-11-11 11:32:04 +00:00
Benny Malengier
635ff9e829 2007-11-10 Benny Malengier <benny.malengier@gramps-project.org>
* src/plugins/all_relations.py: collapse inlaws
	* src/plugins/Ancestors.py: use new calling grandparent string
	* src/plugins/rel_nl.py: change to new API
	* src/plugins/rel_it.py: change comment
	* src/plugins/rel_pl.py: use old filter
	* src/Relationship.py: improvements, protected methods

2007-11-08 Benny Malengier <benny.malengier@gramps-project.org>


svn: r9325
2007-11-10 14:54:29 +00:00
Benny Malengier
9147ed2a9a * src/plugins/all_relations.py: english issues
* src/Relationship.py: english issues

2007-11-06 Benny Malengier <benny.malengier@gramps-project.org>


svn: r9313
2007-11-06 19:46:07 +00:00
Benny Malengier
5cc8a5357b * src/Relationship.py: fix error with nephew, niece
2007-11-06 Benny Malengier <benny.malengier@gramps-project.org>


svn: r9312
2007-11-06 18:58:44 +00:00
Benny Malengier
7f973965e7 2007-11-06 Benny Malengier <benny.malengier@gramps-project.org>
* src/plugins/all_relations.py: refractor, use class
	* src/Relationship.py: further improvements
	* src/plugins/rel_pl.py: rename procedure to avoid conflict
	* src/plugins/rel_it.py: start of changes
	* src/DisplayState.py: use the new method get_one_relation



svn: r9308
2007-11-06 10:44:17 +00:00
Benny Malengier
6ca7ab6928 2007-10-31 Benny Malengier <benny.malengier@gramps-project.org>
* src/plugins/all_relations.py: use collapse family
	* src/Relationship.py: add collopse equal family



svn: r9282
2007-10-31 12:21:42 +00:00
Benny Malengier
a1399c28ba 2007-10-27 Benny Malengier <benny.malengier@gramps-project.org>
* src/plugins/rel_fr.py: add test procedure
	* src/Relationship.py: generlize test procedure



svn: r9273
2007-10-30 10:16:20 +00:00
Benny Malengier
600c064bfa 2007-10-27 Benny Malengier <benny.malengier@gramps-project.org>
* src/Relationship.py: finish up step and inlaw, expand test routine
    Still to add: half-brother recognition, family collapse



svn: r9258
2007-10-28 10:53:06 +00:00
Benny Malengier
7627efe116 * src/Relationship.py: fix typo
2007-10-27 Benny Malengier <benny.malengier@gramps-project.org>


svn: r9256
2007-10-27 09:41:52 +00:00
Benny Malengier
7dbfbc803a 2007-10-27 Benny Malengier <benny.malengier@gramps-project.org>
* src/Relationship.py: begin of extension to step and in-law
	NOT finished.



svn: r9255
2007-10-26 22:54:33 +00:00
Benny Malengier
fb34ae8add 2007-10-26 Benny Malengier <benny.malengier@gramps-project.org>
* src/Relationship.py: change api get_singular, add docu string
	* src/plugins/all_relations.py: call get_singular changed.



svn: r9253
2007-10-26 10:41:26 +00:00
Benny Malengier
b3d15e1dca 2007-10-24 Benny Malengier <benny.malengier@gramps-project.org>
* src/plugins/all_relations.py: collapse parents same family in one line
	* src/Relationship.py: change no parent family code



svn: r9240
2007-10-24 09:49:56 +00:00
Benny Malengier
1b70943814 * src/Relationship.py: internationalization of a string
2007-10-23 Benny Malengier <benny.malengier@gramps-project.org>


svn: r9239
2007-10-23 21:22:33 +00:00