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
* 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
* 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
* 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
* 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
* 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
* 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
* src/Relationship.py: new algorithm to calculate relation
* src/plugins/all_relations.py: begin of quick report to show extended relationship.
svn: r9237