Commit Graph

2767 Commits

Author SHA1 Message Date
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
c9cb7e60c9 Move GEDCOM date functions into libgedcom.
svn: r14125
2010-01-25 04:54:22 +00:00
Brian Matherly
cd30f4db2f Continued work on GEP008: move src/Mime to src/gen/mime.
svn: r14118
2010-01-24 20:17:14 +00:00
Doug Blank
09b0e50d41 Added est date modifier type (about, or after/before)
svn: r14117
2010-01-24 16:19:55 +00:00
Nick Hall
4a529d0c28 Fix selected handles for merge operations
svn: r14108
2010-01-23 15:31:50 +00:00
Gerald Britton
1f2469b09f Simplify with built-in functions where possible. e.g.
change [x for x in y if x] to filter(None, y)
change [f(x) for x in y] to map(f, x)
change [x for x in y] to list(y)

These changes reduce source code size and complexity and produce some minor performance gains

svn: r14104
2010-01-21 18:42:53 +00:00
Doug Blank
97c058af9b probably_alive and CalcEstDates now share same codebase; rewritten probably_alive
svn: r14102
2010-01-20 13:39:37 +00:00
Serge Noiraud
f06acae4b1 GeoView : issue 3497 adds filters.
javascript errors when switching between maps.


svn: r14100
2010-01-19 19:34:47 +00:00
Peter Landgren
418618d856 Better output of pre- and unformatted notes and of end notes references.
svn: r14098
2010-01-19 12:47:48 +00:00
Peter Landgren
e18dd1d560 Better output of pre- and unformatted notes and of end notes references.
svn: r14097
2010-01-19 12:47:17 +00:00
Gerald Britton
517a5e3c90 Tweaks and minor refactoring
svn: r14096
2010-01-18 20:14:59 +00:00
Jérôme Rapinat
659c51a011 2384: KinshipReport use hard to translate sentences (by Josip)
svn: r14094
2010-01-18 15:46:32 +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
Doug Blank
943dbc97b4 Added a yield occasionaly in main
svn: r14083
2010-01-16 23:02:10 +00:00
Doug Blank
f446b66e34 Make main a generator
svn: r14082
2010-01-16 23:00:26 +00:00
Gary Burton
8e08e3199c Fix for tree model changes. See bug 3503
svn: r14081
2010-01-16 22:23:24 +00:00
Peter Landgren
98ad2bda38 Trying to fix Notes and end notes ref. It is better now, but still some more to do.
svn: r14079
2010-01-14 19:53:08 +00:00
Brian Matherly
47ea087ab6 Continued work on GEP008: Move contents of ansel_utf8.py into libgedcom.py since that is the only place it is used.
svn: r14075
2010-01-14 05:45:51 +00:00
Brian Matherly
d9a0ab8a90 Continued work on GEP008: Consolidate src/FilterEditor files into one file and move it to gui/filtereditor.py.
svn: r14074
2010-01-14 04:58:30 +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
Peter Landgren
61360acb4e Fix of issue 2848.
svn: r14066
2010-01-13 18:47:34 +00:00
Peter Landgren
27dd026a97 Fix of issue 2848.
svn: r14064
2010-01-13 18:40:55 +00:00
Jérôme Rapinat
289e77ef8b typo
svn: r14062
2010-01-13 16:14:34 +00:00
Nick Hall
4a87cbbe61 Add Most Recently Used object functionality to Go menu
svn: r14061
2010-01-13 15:59:36 +00:00
Peter Landgren
334d0d6e2a Update after Brians rev 14053.
svn: r14056
2010-01-13 07:57:58 +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
Benny Malengier
61de0898af 1. remove leftover from using nodeid as iter
2. fix error in add on placetreeview: preset values with node.name of parents


svn: r14051
2010-01-12 21:50:37 +00:00
Jérôme Rapinat
12a4c7bebf 1683 Untranslatable text in Relationship calculator window - was the last one still using old API
svn: r14046
2010-01-12 16:11:39 +00:00
Jérôme Rapinat
3ebe3def2f get rid of generation limitation (was 30)
svn: r14045
2010-01-12 14:53:00 +00:00
Jérôme Rapinat
90b902fda3 Do not need to translate DEBUG tools (name, description)
svn: r14043
2010-01-12 13:01:22 +00:00
Brian Matherly
4f2f5f8986 Add ngettext, sgettext, sngettext to libtranslate.
svn: r14042
2010-01-12 12:54:59 +00:00
Jérôme Rapinat
9ccdb167cd Do not need to translate variables
svn: r14041
2010-01-12 10:51:36 +00:00
Nick Hall
a4dcfa3fc3 Bug fixes for commit 14023
svn: r14037
2010-01-11 22:37:18 +00:00
Doug Blank
f15f18056b Some minor refinements
svn: r14034
2010-01-11 19:42:35 +00:00
Jérôme Rapinat
8c851f7506 1683 Untranslatable text in Relationship calculator window - keep level logic but avoid index out of range
svn: r14033
2010-01-11 17:11:13 +00:00
Doug Blank
44b940f07f 3511: Minor improvements on new 'Calculate Estimated dates' tool
svn: r14032
2010-01-11 16:31:22 +00:00
Serge Noiraud
aec92a4929 ODFDoc : issue 3439, 3440, 3461, 3462
svn: r14026
2010-01-11 08:11:50 +00:00
Brian Matherly
252ef6daee Continued work on GEP008: Move BasicUtils/UpdateCallback.py to gen/updatecallback.py.
svn: r14025
2010-01-10 20:21:10 +00:00
Benny Malengier
2a36355a8b fix goto_handle on row update
change placetreeview somewhat, further to discuss


svn: r14024
2010-01-10 20:11:18 +00:00
Nick Hall
b503fa2e25 Extend history functionality (back/forward) and active-changed signals to all primary objects
svn: r14023
2010-01-10 19:19:33 +00:00
Jérôme Rapinat
9b7d972c99 1683 Untranslatable text in Relationship calculator window - no crash on rel_xx tests - get working with current API (contribution by Andrew I Baznikin, lcc)
svn: r14021
2010-01-10 16:32:57 +00:00
Benny Malengier
2e65bfcce4 Extra keybinding/buttonbinding on treeviews for usability
Shift+enter and dblclick: expand group and children


svn: r14019
2010-01-10 12:20:13 +00:00
Jérôme Rapinat
1946440fc2 1683 Untranslatable text in Relationship calculator window - no crash on rel_xx tests - get working with current API (contribution by Andrew I Baznikin)
svn: r14018
2010-01-10 10:03:59 +00:00
Jérôme Rapinat
5d3dc7e037 1683 Untranslatable text in Relationship calculator window - no crash on rel_xx tests - get working with current API (contribution by Andrew I Baznikin)
svn: r14017
2010-01-10 09:12:33 +00:00
Doug Blank
4093c1060c Now searches spouse, and their familes, for evidence
svn: r14015
2010-01-10 07:45:10 +00:00
Doug Blank
2d60b8763a Enhanced Calculate Estimated Dates tool
svn: r14014
2010-01-10 04:06:44 +00:00
Gerald Britton
2b12f3df07 Use defaultdict type where possible for minor performance gain and source code simplification
svn: r14011
2010-01-09 19:54:32 +00:00
Gerald Britton
721f97459e Fix duplicate object ids in glade files
svn: r14009
2010-01-09 19:39:43 +00:00
Jérôme Rapinat
f56402cf37 3473: To dynamicaly change calendar option on the Gramps session
svn: r14008
2010-01-09 17:51:58 +00:00
Doug Blank
36fa65944d Removed unneeded imports
svn: r14006
2010-01-09 17:12:45 +00:00
Benny Malengier
0ec49507ed Renable enter to expand nodes on the treeviews
svn: r14005
2010-01-09 16:16:52 +00:00
Doug Blank
bfa7687058 Fixed code that gave warning: GtkWarning: gtk_box_pack: assertion 'child->parent == NULL' failed
svn: r14003
2010-01-09 13:40:40 +00:00
Benny Malengier
de2d669763 3275: PageView reworking, changes by B. Malengier and N.Hall
Specifically: improve new treeview by using a linked list implementation so 
 iters can be quickly iterated over
Also: progressdialog on long personview loads.


svn: r14002
2010-01-09 11:10:32 +00:00
Doug Blank
debfc3dd78 Fixed issue of not re-docking gramplet from whence it came (reported by Rob); refined some code
svn: r13999
2010-01-08 20:06:51 +00:00
Jérôme Rapinat
2f7f7ac5f8 pylint
svn: r13998
2010-01-08 16:10:54 +00:00
Serge Noiraud
e346c68fb1 GeoView : issue 3472; using date format preference.
svn: r13992
2010-01-07 22:02:38 +00:00
Serge Noiraud
da41542da6 ODFDoc : issue 3440; only remove fo:max-height.
svn: r13989
2010-01-07 20:40:24 +00:00
Peter Landgren
ed34d4f62f Fix of issue 3507.
svn: r13986
2010-01-07 14:39:53 +00:00
Doug Blank
3664fbb913 Added on_delete_event signal handler to surpress RuntimeWarning: missing handler
svn: r13983
2010-01-07 14:10:26 +00:00
Jérôme Rapinat
83d7448c1a 2846: build tree basic on arithmetics - uncomment lines (ezegzda)
svn: r13982
2010-01-07 10:52:41 +00:00
Brian Matherly
7aec8904ea Remove gen.db.iterator.py - it is not used.
svn: r13979
2010-01-06 04:44:09 +00:00
Jérôme Rapinat
d2876c8318 pylint
svn: r13976
2010-01-05 19:15:51 +00:00
Jérôme Rapinat
9ae34b4ba8 pylint
svn: r13975
2010-01-05 18:07:09 +00:00
Jérôme Rapinat
7001690176 1683 Untranslatable text in Relationship calculator window - no crash on rel_xx tests (contribution by Andrew I Baznikin)
svn: r13973
2010-01-05 15:58:01 +00:00
Jérôme Rapinat
4acca6c7af pylint
svn: r13972
2010-01-05 14:37:10 +00:00
Jérôme Rapinat
d72aa5ae71 2855 2762 1683 enable tests on rel_xx (pass with sucess)
svn: r13971
2010-01-05 13:42:23 +00:00
Peter Landgren
3de66d1b62 Fix of issue 3495.
svn: r13965
2010-01-03 11:31:19 +00:00
Nick Hall
6ae29de4f0 2563: Add signals for all objects when active object changes
svn: r13960
2010-01-02 23:01:43 +00:00
Doug Blank
fc25778390 3491: [Gramplet] AgeOnDate Gramplet ignores Probably_alive variable
svn: r13956
2010-01-01 21:28:05 +00:00
Nick Hall
c43f162b2f Preparation to extend navigation to all object types
svn: r13955
2010-01-01 19:55:09 +00:00
Doug Blank
0f78f5c918 Refined right-click popup menus on placeviews
svn: r13954
2010-01-01 18:59:58 +00:00
Doug Blank
eba1c9d264 A simple, conservative probably_alive
svn: r13951
2010-01-01 15:11:00 +00:00
Jérôme Rapinat
7aef74eaca 3485: A better message for date validator on AgeOnDate Gramplet.
svn: r13950
2010-01-01 08:43:29 +00:00
Doug Blank
6cdb8a9406 Add signal for media-changed, and test on mediaview
svn: r13949
2009-12-31 17:03:04 +00:00
Doug Blank
205b3beadd Enabled Quickviews on all list views; enabled References Quickview for all views
svn: r13947
2009-12-31 14:59:44 +00:00
Brian Matherly
4838650df4 Move _GedcomParse.py to src/plugins/lib/libgedcom.py. Remove GrampsDbUtils.
svn: r13940
2009-12-29 19:20:16 +00:00
Jérôme Rapinat
bbdf6d80cc 3485: A better message for date validator on AgeOnDate Gramplet.
svn: r13939
2009-12-29 16:56:27 +00:00
Brian Matherly
c7b595210f Move GedcomStageOne.py into GedcomParse.py.
svn: r13936
2009-12-29 05:37:20 +00:00
Doug Blank
42ed2c3295 Added fields to Person to reduce queries; should be able to add/edit people and names tomorrow
svn: r13934
2009-12-29 03:22:03 +00:00
Brian Matherly
f12196cf80 Merge GedcomInfo.py and GedcomLex.py into GedcomParse.py.
svn: r13930
2009-12-28 05:07:21 +00:00
Jérôme Rapinat
bf944b0de3 2385: drawreports and multiple calendars
svn: r13925
2009-12-27 11:09:58 +00:00
Nick Hall
5422931318 Allow nodes with handles at higher levels in the tree
svn: r13921
2009-12-26 19:42:22 +00:00
Benny Malengier
e8042007ff init list before use
svn: r13920
2009-12-26 10:05:25 +00:00
Benny Malengier
862d1446d0 Fix two things in nar web:
1/fix bug that not scaled images are not printed out on webpage
  2/remove annoying warning dialogs on every missing images, and 
    replace it by one warning dialog at the end of the report


svn: r13913
2009-12-25 11:44:20 +00:00
Brian Matherly
06b3d7dc1f Fix Misnamed DbMixin
svn: r13910
2009-12-24 20:14:15 +00:00
Serge Noiraud
9aabed5c4f GeoView : issue 3472
svn: r13909
2009-12-24 17:21:55 +00:00
Serge Noiraud
cd7f3b8a29 GeoView : Replacement for openstreetmap and google map button by one provider
toglebutton. This is to minimize the space used by the buttons now
          we have the new "Add place" and "Link place" buttons.


svn: r13908
2009-12-24 15:55:01 +00:00
Serge Noiraud
ab2f9b9d19 GeoView : Entrybox completion now works when entering "tab"
We can erase the text with the place list label at the left of the entrybox.
          Performance : comment the sort to reduce display time.


svn: r13906
2009-12-24 12:18:18 +00:00
Rob G. Healey
c96e7a579a Some cleanup work, and changed get_marriage_event() to use the extended eventtype.py
svn: r13904
2009-12-24 07:55:26 +00:00
Gary Burton
864a4692a9 Another instance where we need to pass str latitude and longitude to EditPlace
svn: r13903
2009-12-23 23:02:26 +00:00
Serge Noiraud
3106784c22 GeoView : EditPlace crash with real instead of string.
svn: r13902
2009-12-23 21:32:01 +00:00
Doug Blank
8c26c5ad64 3302: Detailed Descendant Report fallback for child-list birth/death strings and fixed a typo baptized -> baptised
svn: r13899
2009-12-23 20:16:16 +00:00
Doug Blank
302781a6b3 Event types know how to abbreviate themselves
svn: r13898
2009-12-23 19:35:18 +00:00
Gary Burton
2de02b5899 Add an existing place to a map
svn: r13896
2009-12-23 18:20:44 +00:00
Doug Blank
61e3237d5a Constructors don't return things; renderer gets set in constructor
svn: r13895
2009-12-23 17:57:54 +00:00
Doug Blank
ab3dfe1415 3465: Create a new hierarchy of base classes for gramps cor databases (read, write) and add methods
svn: r13894
2009-12-23 15:55:58 +00:00
Serge Noiraud
361b99cee6 GeoView : Add Nick to the contributors.
Force the zoom to be locked when adding places.


svn: r13890
2009-12-23 10:08:16 +00:00
Serge Noiraud
a8e5f3acf9 GeoView : add signal when places are added. thanks nick.
svn: r13889
2009-12-23 07:06:44 +00:00
Rob G. Healey
c00ffbcf14 Remove references to import pyexiv2, and fixed RepositoryTypes.
svn: r13887
2009-12-22 22:00:24 +00:00
Gary Burton
db22a53da8 Add a new place to Gramps using latitude and longitude from GeoView
svn: r13886
2009-12-22 20:50:45 +00:00