Commit Graph

128 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
Brian Matherly
4b1c61a6e7 Make in-law relationships easier to translate for the Kinship Report.
svn: r14053
2010-01-13 04:31:42 +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
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
Peter Landgren
ed34d4f62f Fix of issue 3507.
svn: r13986
2010-01-07 14:39:53 +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
Doug Blank
699dcb13fe Fixed svn Id property
svn: r13881
2009-12-21 13:43:50 +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
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
443e4b3fd4 Fix DetailedDescendant and DetailedAncestor reports.
svn: r13738
2009-12-07 13:11:43 +00:00
Jérôme Rapinat
15f9344340 3391: Some sentences missed the final dot
svn: r13674
2009-11-26 11:13:44 +00:00
Brian Matherly
adb18efb83 svn: r13617 2009-11-18 05:32:22 +00:00
Peter Landgren
33686fcf18 First update for consistent use of Gramps. See issue 3355.
svn: r13610
2009-11-17 20:14:53 +00:00
Brian Matherly
3141ed0e71 Cleanup libnarrate.
svn: r13487
2009-11-03 05:25:15 +00:00
Nick Hall
200bacb1f5 Add extra sections to Complete Individual Report
svn: r13481
2009-11-02 14:57:34 +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
Brian Matherly
e03f293238 Fix some residual bugs from the implementation of the new plugin manager.
svn: r13430
2009-10-27 02:35:42 +00:00
Benny Malengier
53de46901e add license to gpr.py files
svn: r13424
2009-10-26 19:15:58 +00:00
Brian Matherly
2ad02fa658 Remove unused function from KinshipReport.
svn: r13422
2009-10-26 02:11:51 +00:00
Benny Malengier
e75f15ca53 03289: GVFamilyLines, PlaceReport crash without individuals set
svn: r13413
2009-10-25 17:07:50 +00:00
Benny Malengier
cad5461b2d 3282: Gramps should only display marriage event with role = family (or primary)
svn: r13411
2009-10-25 16:52:45 +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
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
Doug Blank
3266f85d46 3273: Standard position for child-list descendant numbering in DDR, by lcc
svn: r13382
2009-10-18 01:28:49 +00:00
Doug Blank
b0eef2a8ba 3284: Descendant Report omits last-level spouses, by lcc
svn: r13365
2009-10-12 17:33:07 +00:00
Doug Blank
a31d94d2ed 3255: patch for Descendant Report text error from lcc
svn: r13332
2009-10-07 13:13:58 +00:00
Gerald Britton
966d2bcd42 Use new iter_objects methods
svn: r13203
2009-09-14 20:50:25 +00:00
Gerald Britton
941fff23ae Tweaks to use inplace arithmetic
svn: r13191
2009-09-10 18:49:48 +00:00
Benny Malengier
bd48c356cf 3166: Add source notes to DDR/DAR
svn: r13005
2009-08-14 11:28:28 +00:00
Raphael Ackermann
30d6eebd0b 0002542: Crash whilst generating web pages from command line
Throwing Report Error if center person is not in database. Added catching of Report Error to CommandLineReport
if using GUI it is not possible to cause this, as you have to select a person that is in the DB. However on the command line you can specify any PID and even no person with that pid exists an error was thrown.

svn: r13004
2009-08-14 07:14:25 +00:00
Raphael Ackermann
f6f1cdf05c 0002841: Kinship report converts relationship descriptions to lowercase
patch by Reinhard Müller <reinhard.mueller@bytewise.at> 

svn: r12948
2009-08-10 19:09:37 +00:00
Raphael Ackermann
65f72560d1 pep8 fixes
fixing typos


svn: r12934
2009-08-09 17:09:32 +00:00
Benny Malengier
4e9c0246f3 avoid infinite loop in DDR
svn: r12799
2009-07-15 14:24:44 +00:00
Gerald Britton
302a4358fd Fix bugs in some modules caused by using enumerate instead of conventional for-loop syntax
svn: r12795
2009-07-14 14:16:03 +00:00
Gerald Britton
181c0c9b41 Replace get_place_handles with iter_place_handles
svn: r12778
2009-07-08 18:11:02 +00:00
Gerald Britton
b601f4bdf2 Replace get_family_handles with iter_family_handles
svn: r12776
2009-07-08 16:11:20 +00:00
Gerald Britton
f7454de7fd Implement iter_people_handles methods and begin to use them
svn: r12760
2009-07-03 20:23:41 +00:00
Gerald Britton
d022d0187b Replace locale.strcoll with locale.strxfmt for performance and Python 3.0 compliance
svn: r12739
2009-06-30 14:05:57 +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
Benny Malengier
aa5aa031c0 fix ODF output put, prettify kinship html output
svn: r12657
2009-06-12 07:31:30 +00:00
Benny Malengier
f78db6f418 2707: Add markup notes to html output. Finished
svn: r12654
2009-06-11 13:01:27 +00:00
Benny Malengier
fb3ec68c6a part 3 : split basedoc in files, remove Utils dependance, move fontscale in gen,
update build system


svn: r12603
2009-05-31 14:59:56 +00:00
Benny Malengier
8dd7adc607 part 2 basedoc: move BaseDoc.py to /gen/plug/docgen and add /gen/plug/docbackend
that was missing in part 1 
 Still to come: makefiles and splitting new basedoc.py in small files


svn: r12591
2009-05-29 22:25:44 +00:00
Gerald Britton
81a0848490 Bug 3018: remove calls to keys() and values() dictionary method where possible
svn: r12579
2009-05-27 17:33:45 +00:00
Gerald Britton
5eb7e18dc6 Bug 3018: ImportGrdb: remove calls to keys() dictionary method where possible
svn: r12572
2009-05-26 20:48:09 +00:00
Benny Malengier
0a9017e25f 2990: Detailed Descendant/ancestry report format-slight variable name change
svn: r12549
2009-05-19 09:50:40 +00:00
Benny Malengier
c46a7b8364 2990: Detailed Descendant/ancestry report format
svn: r12548
2009-05-19 09:40:08 +00:00
Gary Burton
e94e59b958 Add fallback dates for birth and death
svn: r12430
2009-04-10 16:20:41 +00:00
Rob G. Healey
2aea2184e7 Cleaned up gramps import section to have smaller memory footprint by specifying exactly what to import instead just everything.
svn: r12411
2009-04-09 04:34:24 +00:00
Rob G. Healey
0b61b4a8a4 Updated menu in BirthdayReport. Changed alphabet navigation in NarrativeWeb. Updated WebCal to use name format option. Fixed a few elements in stylesheet.
svn: r12406
2009-04-06 03:49:47 +00:00
Peter Landgren
8026b9564b Fix of issue 2836.
svn: r12380
2009-03-23 13:52:59 +00:00
Benny Malengier
20c9e73d70 2784: Detailed Ancestral Report – center-person's spouse has no
heading (inconsistent with Detailed Descendant Report) 
2783: Detailed Ancestral Report lists center-person's children 
      twice



svn: r12333
2009-03-14 08:49:14 +00:00
Benny Malengier
0cce6364dd feature 2769: add styled notes support to markerreport and
fgroupreport


svn: r12305
2009-03-10 17:01:04 +00:00
Joan Creus
7ef727eb1f Adding translator hint
svn: r12280
2009-03-09 18:45:30 +00:00
Doug Blank
76223a45f3 2753: Detailed reports did not use probably_alive for child text
svn: r12202
2009-03-02 14:54:19 +00:00
Gary Burton
251e75f941 Fix for bug 2759: Error on Marker report (notes)
svn: r12168
2009-02-28 21:44:30 +00:00
Rob G. Healey
4238efda32 Added and deleted files that were verified by Brian. Remove sort siblings as it was broken. Will spend time on it in the next few days.
svn: r12107
2009-02-24 08:02:13 +00:00
Rob G. Healey
e67b9d93ad Removed backslash character in middle of translation string as per Benny.
svn: r12043
2009-02-19 19:20:32 +00:00
Rob G. Healey
c56f46b493 Added revision numbering symbol to all of plugins directory if it was missing in the file.
svn: r12002
2009-02-16 06:56:49 +00:00
Luigi Toscano
ce8b02c9f6 Better localization support for decimal separator.
svn: r11999
2009-02-15 21:50:27 +00:00
Rob G. Healey
7b85d8e4af Added date validation to these three reports in collect_data().
svn: r11983
2009-02-14 00:57:34 +00:00
Benny Malengier
cfadb3fafc issue 2688: some wrong bindings and <super> not working yet. All should work now
svn: r11957
2009-02-10 23:07:35 +00:00
Benny Malengier
09dea89c35 Add styled notes output to all textreports
svn: r11916
2009-02-08 11:27:56 +00:00
Benny Malengier
ac50776d33 Support markup in TextDoc, add implementation in CairoDoc, use in indiv complete report
svn: r11913
2009-02-08 09:59:36 +00:00
Doug Blank
fc5dcee88b Fixed line ending issues, and syntax errors introduced by translation changes
svn: r11860
2009-02-05 02:10:10 +00:00
Jérôme Rapinat
d587ffe618 #2657,#1718 use ngettext
svn: r11848
2009-02-04 16:58:46 +00:00
Rob G. Healey
ac2e0e2547 removed _make_date module from libholiday as request by Brian. Removed make_date completely and substituted gen.lib.Date() instead for Calendar, BirthdayReport, and WebCal. Changes progress bar text in WebCal and NarrativeWeb.
svn: r11837
2009-02-04 05:35:34 +00:00
Rob G. Healey
a7ef5d1e43 moved _make_date from Calendar.py, BirthdayReport.py, and WebCal.py into libholiday. Changed variable names in WebCal.py for improved readability.
svn: r11833
2009-02-04 00:59:12 +00:00
Jérôme Rapinat
ea9ecee8d9 #2657,#1718 use ngettext (contribution by josip)
svn: r11826
2009-02-03 13:05:30 +00:00
Brian Matherly
a4ce178893 Patch from James Friedmann <jfriedmannj@gmail.com> to include a heading for spouses. Code cleanup.
svn: r11798
2009-02-02 13:19:17 +00:00
Brian Matherly
1adf052e55 Move "holiday" functions into its own module named libholiday. libholiday is used by all three calendar based reports.
svn: r11759
2009-01-30 02:19:04 +00:00
Benny Malengier
0df7429978 make autotools work again
svn: r11666
2009-01-19 20:26:41 +00:00
Brian Matherly
853e54a624 Plugins Restructure: Move text reports into plugins/textreport.
svn: r11638
2009-01-16 23:10:34 +00:00