Commit Graph

23 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
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
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
Peter Landgren
0b711b211c Third update for consistent use of Gramps. See issue 3355.
svn: r13633
2009-11-19 17:32:11 +00:00
Benny Malengier
ed619cfdd6 3292: register plugins, load on need, not on start of GRAMPS - GEPS 014
svn: r13400
2009-10-24 13:53:20 +00:00
Gerald Britton
1587cb8ad1 Implement restructured database objects
svn: r13139
2009-08-31 18:42:29 +00:00
Raphael Ackermann
9239780182 cleanup & pep8
svn: r13021
2009-08-15 14:37:14 +00:00
Benny Malengier
9d417e2cd6 Split Utils in a non GUI and GUI part
move GrampsCfg utils to Utils
improve import strategy


svn: r12680
2009-06-19 15:23:58 +00:00
Gerald Britton
70a0c50fca Use GrampsCursor as a context manager using "with" statement
svn: r12672
2009-06-16 15:49:17 +00:00
Gerald Britton
bb83288883 Check.py: replace get..handles and map..keys calls with calls to new iterator functions
svn: r12662
2009-06-12 16:19:48 +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
21e96b0616 Bug 2888 - minor edits and cleanup
svn: r12529
2009-05-15 18:12:10 +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
82aac3836f plugins/tools: make file path build logic conform to Python standards
svn: r12450
2009-04-15 19:27:17 +00:00
Gerald Britton
a3f82400ef Check.py - convert to use gtkbuilder instead of libglade
svn: r12409
2009-04-08 19:41:22 +00:00
Doug Blank
24102deb74 2803: 'Check & Repair Database' failed at stage: 'Checking families for proper date formats'
svn: r12303
2009-03-10 12:56:16 +00:00
Doug Blank
b1c5eaa9ee 2803: 'Check & Repair Database' failed at stage: 'Checking families for proper date formats'
svn: r12298
2009-03-10 12:25:17 +00:00
Doug Blank
baba8c7bd5 2792: Dates in sourcereferences in person_ref_list not upgraded; added repair for dates that were not converted
svn: r12287
2009-03-09 19:52:17 +00:00
Brian Matherly
bff93f186a 0002655: Directories and files with accents characters cause failures in Windows.
svn: r12106
2009-02-24 04:41:23 +00:00
Jérôme Rapinat
be6c00842d #2657,#1718 use ngettext
svn: r11820
2009-02-03 10:33:19 +00:00
Jérôme Rapinat
1e6da8730c #2657,#1718 use ngettext
svn: r11773
2009-01-31 11:29:44 +00:00
Brian Matherly
7b47dc61ad Move all tools into plugins/tool.
svn: r11633
2009-01-16 19:54:58 +00:00