105 Commits

Author SHA1 Message Date
Benny Malengier
a89e8d1d18 Remove column config from db, move to the plugins
Start with reuse of preferences for all configuration
Allow all view plugins to set configuration dialog
TODO: activate the column reorder in config of listviews


svn: r14176
2010-02-01 07:01:45 +00:00
Peter Landgren
f0cfe6c5e9 nantionaldagen -> Nationaldagen.
svn: r14175
2010-01-30 16:05:59 +00:00
Doug Blank
add3145df5 Added Croatian (Josip) and standardized type names to lowercase
svn: r14174
2010-01-30 13:34:16 +00:00
Doug Blank
27c20ccaeb Renamed isodow to dow
svn: r14170
2010-01-29 21:56:13 +00:00
Nick Hall
07fac74e8f Tweaks to English holidays
svn: r14169
2010-01-29 18:55:38 +00:00
Nick Hall
1348340dc6 Add ISO day of week function
svn: r14168
2010-01-29 18:18:08 +00:00
Serge Noiraud
717572d6e3 Adding holidays for France.
svn: r14167
2010-01-29 17:33:29 +00:00
Peter Landgren
c944f5ca15 Updated Swedish part.
svn: r14166
2010-01-29 15:25:53 +00:00
Peter Landgren
1652fe5382 Easier method (and correct) to calculate Midsommardagen.
svn: r14165
2010-01-29 14:28:19 +00:00
Doug Blank
ba553eeba6 Polish on workday/weekend offset
svn: r14164
2010-01-29 14:27:25 +00:00
Doug Blank
dd4be4b0e5 added 'workday' and 'weekend' to offset
svn: r14163
2010-01-29 13:57:04 +00:00
Doug Blank
2e00aaa5cf Added month names for year/MON/day form
svn: r14162
2010-01-29 13:15:28 +00:00
Peter Landgren
ec414b933c Fix for Swedish Midsummer Day.
svn: r14160
2010-01-29 08:02:34 +00:00
Nick Hall
6b7f7c4684 Add English holidays
svn: r14159
2010-01-28 22:50:16 +00:00
Doug Blank
3cadd4b099 3537: Wrong easter calculation in birthday report, and updated holidays
svn: r14152
2010-01-28 13:36:41 +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
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
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
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
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
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
Brian Matherly
4f2f5f8986 Add ngettext, sgettext, sngettext to libtranslate.
svn: r14042
2010-01-12 12:54:59 +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
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
Brian Matherly
7aec8904ea Remove gen.db.iterator.py - it is not used.
svn: r13979
2010-01-06 04:44:09 +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
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
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
Doug Blank
699dcb13fe Fixed svn Id property
svn: r13881
2009-12-21 13:43:50 +00:00
Doug Blank
5a087bb88f svn propset svn:keywords Id
svn: r13880
2009-12-21 13:03:08 +00:00
Rob G. Healey
603e20d36d Added to files that were missing it.
svn: r13879
2009-12-21 07:58:08 +00:00
Doug Blank
3a8b4d7e40 Moved fallback functions from Db to gen.utils
svn: r13876
2009-12-21 05:58:55 +00:00
Brian Matherly
814d721f68 Remove QuestionDialog dependency from gen. The database now raises exceptions and the GUI generates the question dialog.
svn: r13865
2009-12-20 22:44:32 +00:00
Rob G. Healey
224c8c1ffc Fixed error causing crash as per Nick Hall. Corrected tags on libhtmlconst and WebCal.
svn: r13805
2009-12-15 02:50:46 +00:00
Brian Matherly
ec81292e52 Add translated language and country strings to the report transation option.
svn: r13790
2009-12-13 21:16:58 +00:00
Brian Matherly
c3546880fc Fix translated dates in Ancestor Report. Currently, dates for other than the current locale will print in ISO format.
svn: r13758
2009-12-11 05:55:30 +00:00
Brian Matherly
03af2705e7 Fix translation problem in libnarrate.
svn: r13618
2009-11-18 06:14:19 +00:00
Brian Matherly
adb18efb83 svn: r13617 2009-11-18 05:32:22 +00:00
Benny Malengier
7da5541920 Cleanup after making views plugins, remove last imports of DataView
svn: r13563
2009-11-12 22:32:52 +00:00
Brian Matherly
3141ed0e71 Cleanup libnarrate.
svn: r13487
2009-11-03 05:25:15 +00:00
Brian Matherly
c43c3beba0 Clean up ReportUtils: Move text strings into "Narrator" class in libnarrate. Remove unused functions. Move functions out that are only used once.
svn: r13474
2009-10-31 21:36:57 +00:00
Benny Malengier
53de46901e add license to gpr.py files
svn: r13424
2009-10-26 19:15:58 +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
Rob G. Healey
9b6d133e92 Returned libhtml.py back to its original code after my mistakingly gutting the code.
svn: r13298
2009-10-04 04:56:26 +00:00
Rob G. Healey
b66e7d1af1 Removed "<?xml ... ?>" from the top of every page as per Benny Malengier.
svn: r13293
2009-10-03 06:07:48 +00:00
Doug Blank
ce97f20ff8 Issue with super() and reload of plugins in Python 2.6.0
svn: r13252
2009-09-26 01:08:14 +00:00
Gerald Britton
2e3ba0d954 tweaks and optimizations
svn: r13230
2009-09-21 20:52:36 +00:00
Rob G. Healey
573c9fdc20 Fixed some holidays in holidays file.
svn: r13210
2009-09-16 01:27:23 +00:00