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