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
Rob G. Healey
b9553b1a5e
Fix for Labor Day in USA holidays.
...
svn: r13204
2009-09-15 08:00:34 +00:00
Mirko Leonhäuser
a7c69b41e6
German holidays depending to easter
...
svn: r13112
2009-08-23 12:21:48 +00:00
Jérôme Rapinat
ef08e419d1
update french translation
...
svn: r13092
2009-08-20 15:15:10 +00:00
Gerald Britton
76586fe8c3
Update makefile to include new plugin libraries
...
svn: r13076
2009-08-19 15:41:06 +00:00
Gerald Britton
ca3abff763
Add new plugin libraries:
...
libgrdb.py -- Used by ImportGrdb to read old databases
libmixin.py -- Used by Import plugins to add extra methods
svn: r13075
2009-08-19 15:38:00 +00:00
Serge Noiraud
2f41ff44c2
Added backend for ODFDoc and styled notes.
...
svn: r13055
2009-08-17 22:28:40 +00:00
Raphael Ackermann
eeac507a40
cleanup (typos, docs, indentation)
...
svn: r12921
2009-08-08 15:52:12 +00:00
Benny Malengier
a52bc62be9
2691: Create api documentation with sphinx
...
svn: r12704
2009-06-24 21:56:07 +00:00
Gerald Britton
44028cc47c
libhtml.py: add title=None default option to Html.page static method
...
svn: r12663
2009-06-12 16:36:31 +00:00
Benny Malengier
f78db6f418
2707: Add markup notes to html output. Finished
...
svn: r12654
2009-06-11 13:01:27 +00:00
Gerald Britton
75a7e04c4b
libhtml: add indent=None option and reference in docstring to wiki page
...
svn: r12648
2009-06-10 14:14:11 +00:00
Benny Malengier
e4de221227
2707: Add markup notes to html output: div and class elements
...
svn: r12647
2009-06-09 20:47:32 +00:00
Benny Malengier
a177da80b0
2707: Add markup notes to html output
...
Part 2: enable css, clean up code.
TODO: better output, support in default css files, test
svn: r12644
2009-06-08 23:19:37 +00:00
Benny Malengier
542b1e404d
02707: Add markup notes to html output
...
part 1: remove template from html output
svn: r12631
2009-06-06 09:49:40 +00:00
Gerald Britton
32f0251b9e
Add context-manager support to libhtml so it can be used in a "with" statement
...
svn: r12616
2009-06-02 19:23:38 +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
Benny Malengier
f999ba9cc4
Part 1 basedoc changes: move out backend stuff from BaseDoc, use backend in
...
the docs. As a dir change will be done, backend itself will be committed
later, trunk will be broken till then
svn: r12590
2009-05-29 19:52:57 +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
021b754939
Bug 3011: change old-style classes to new-style classes
...
svn: r12559
2009-05-21 17:19:50 +00:00
Benny Malengier
bb7920b0c0
remove STRANGE output due to line spacing in pdf
...
svn: r12553
2009-05-20 11:18:51 +00:00
Benny Malengier
8db826314e
2860: Problem with det_ancestor report in PDF at page breaks\n no more STRANGE output
...
svn: r12537
2009-05-18 14:42:26 +00:00
Benny Malengier
1031506baa
2808: fonts with xml codes don't print correctly
...
svn: r12525
2009-05-14 13:51:36 +00:00
Benny Malengier
066d39a739
2860: Problem with det_ancestor report in PDF at page breaks
...
svn: r12522
2009-05-13 08:36:02 +00:00
Gerald Britton
6ab1803266
libhtml.py: Added properties and changed default for indent to False
...
svn: r12402
2009-04-02 19:53:30 +00:00
Benny Malengier
82c9108b23
2860: Problem with det_ancestor report in PDF at page breaks - part 1
...
svn: r12393
2009-03-29 09:07:35 +00:00
Rob G. Healey
4f073eb270
Removed obsoleted elements from stylesheets. Updated revision numbering tag.
...
svn: r12383
2009-03-24 04:12:31 +00:00
Gerald Britton
2f7ae174c0
libhtml.py: change $Id line
...
svn: r12382
2009-03-23 15:57:59 +00:00
Gerald Britton
dc80f4a6a6
libhtml.py: rename hmtl.py to libhtml.py and move to plugins/lib
...
svn: r12381
2009-03-23 14:42:37 +00:00
Brian Matherly
a39b1ba156
Move src/plugins/docgen/CairoDoc.py to src/plugins/lib/libcairodoc.py.
...
svn: r12363
2009-03-19 12:08:52 +00:00
Rob G. Healey
1deff88623
Brought changes made to Finland holidays over from gramps31 branch to trunk.
...
svn: r12128
2009-02-26 09:33:47 +00:00
Rob G. Healey
0e26998664
Fixed USA holidays problem. There was no holidays being listed.
...
svn: r12040
2009-02-19 17:43:53 +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
Benny Malengier
16257bd0f1
Bug Fix on _all_places iterator method in libmapservice
...
svn: r11979
2009-02-13 09:08:27 +00:00
Rob G. Healey
599184b0f6
As per Brian, United States and Canada holiday dates are in the best order that I can get them..
...
svn: r11961
2009-02-11 07:16:48 +00:00
Rob G. Healey
f8875759ab
Re-arranged countries. Documentation and clean up. PEP 9.46
...
svn: r11947
2009-02-10 07:19:56 +00:00
Brian Matherly
5eb3f7e446
Move common XML import/export data into libgrampsxml.py.
...
svn: r11945
2009-02-10 05:59:26 +00:00
Brian Matherly
6e661e9cf2
Remove the ability to execute the "value" field. It is not used and we don't want Python code in holidays.xml.
...
svn: r11937
2009-02-09 13:39:33 +00:00
Brian Matherly
2e976ddf76
Remove the "if" rule from the holidays. Now libholiday does not execute any code in holidays.xml.
...
svn: r11936
2009-02-09 13:31:16 +00:00
Rob G. Healey
dff2d75e26
All if statements have been removed from holidays.xml. Labor Day, Inauguration Day, and Income Texes due have all been changed.
...
svn: r11933
2009-02-09 07:10:42 +00:00
Rob G. Healey
85992c0ff2
Easter and DST functions have been completely removed now.
...
svn: r11929
2009-02-08 23:35:22 +00:00
Rob G. Healey
7ad6cd504e
The final parts of easter(y) and dst(y) have been removed from the holidays.xml file. There is no longer any python code in the file now.
...
svn: r11928
2009-02-08 23:26:38 +00:00
Rob G. Healey
2b2235c3c3
Upon request of Brian, I have been removing the need to have python code in the holidays.xml file. Easter, DST, and Ash Wednesday have been completed for years 1999-2019 in USA so far. Canada will be next ...
...
svn: r11908
2009-02-08 06:17:25 +00:00
Peter Landgren
d638c091bd
Spelling correction.
...
svn: r11849
2009-02-04 19:11:22 +00:00
Peter Landgren
78feddd292
Delete of double fix of empty url.
...
svn: r11846
2009-02-04 14:49:03 +00:00
Benny Malengier
7d9d27b22d
Don't display when no url
...
svn: r11841
2009-02-04 08:16:48 +00:00
Rob G. Healey
c5c4b1b3f9
see r11837 for libholiday
...
svn: r11838
2009-02-04 05:45:40 +00:00
Brian Matherly
a6fafa5409
Fix the search for holidays.xml in libholiday.
...
svn: r11836
2009-02-04 05:13:20 +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
Peter Landgren
8c2269c58e
Dont call map if URL empty.
...
svn: r11832
2009-02-03 20:26:33 +00:00
Rob G. Healey
2968250315
Moved revision numbering tag to a better visual area; cleanup of calendar_build(), calendar_common(), get_day_list() in WebCal, removed alphabet_navigation from NarrativeWeb.py.
...
svn: r11814
2009-02-03 08:01:31 +00:00
Benny Malengier
829d78b611
New mapservice plugin structure, as a general solution to #2659
...
* configure.in
* src/DataViews/PlaceView.py
* src/Config/_GrampsConfigKeys.py
* src/gen/plug/_manager.py
* src/plugins/mapservices
* src/plugins/mapservices/googlemap.py
* src/plugins/mapservices/openstreetmap.py
* src/plugins/lib/Makefile.am
* src/plugins/lib/libmapservice.py
* src/plugins/Makefile.am
* src/widgets/menutoolbuttonaction.py
* src/widgets/Makefile.am
* src/PageView.py
* po/POTFILES.in
svn: r11811
2009-02-02 21:55:22 +00:00
Benny Malengier
00504ab2f4
do not show pyc and Makefile on svn status
...
svn: r11807
2009-02-02 18:35:34 +00:00
Brian Matherly
f7e2cd8e3f
Finish moving libholiday.py and WebCal.py into their new homes.
...
svn: r11760
2009-01-30 02:26:10 +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