Vassilii Khachaturov
265b1d7b53
6926: remove redundant cal prefixes in FR
...
these are automatically populated by the prefix table building code
svn: r23346
2013-10-20 12:27:03 +00:00
Doug Blank
8667fbc971
CLI run_report: use User()
...
svn: r23340
2013-10-19 13:08:56 +00:00
Doug Blank
f74d1e51a1
Handles: add __str__ method
...
svn: r23339
2013-10-19 13:08:19 +00:00
Doug Blank
5c50673f15
SimpleTable: allow bools
...
svn: r23338
2013-10-19 13:07:49 +00:00
Doug Blank
1018b9edb2
Fixed new Gtk Drag/Drop names
...
svn: r23337
2013-10-19 03:02:50 +00:00
Paul Franklin
fbe500a5cb
7138: missing import in editmediaref.py
...
svn: r23336
2013-10-18 19:59:39 +00:00
Doug Blank
e33642c412
Don't crash if not opened
...
svn: r23331
2013-10-17 16:02:55 +00:00
Doug Blank
27c5f4ffc5
6678: Database Differences Report crashes 4.0 beta svn 21228
...
svn: r23330
2013-10-17 12:07:04 +00:00
Jérôme Rapinat
0c3562f3f4
6926: some calendar names are handled via fr.po, only keep alternate names
...
svn: r23328
2013-10-16 17:15:13 +00:00
Vassilii Khachaturov
be84468d3f
6926: merge to trunk p2: gramps/ code changes
...
svn: r23324
2013-10-16 14:04:21 +00:00
Paul Franklin
6e7c18b95a
7129: the Family Group Report doesn't show "family" attributes
...
svn: r23320
2013-10-13 21:11:30 +00:00
Doug Blank
1a4445f576
Don't change gramps_id if doesn't fit; removed to match gen/db/read.py
...
svn: r23312
2013-10-11 17:47:52 +00:00
Doug Blank
5545f37edc
DictionDB: don't change gramps_ids; mediaref: to_struct['rect'] returns None for (0,0,0,0)
...
svn: r23311
2013-10-11 17:41:06 +00:00
Doug Blank
6f057a6586
Checksum is not an int, but a md5 hash
...
svn: r23310
2013-10-11 17:25:25 +00:00
Doug Blank
8ee4695239
Handles that are empty strings are standardized to None
...
svn: r23309
2013-10-11 17:24:29 +00:00
Doug Blank
aae377636d
Display Handles properly
...
svn: r23308
2013-10-11 17:23:42 +00:00
Doug Blank
716c14856a
Update media checksums in the check and repair tool
...
svn: r23307
2013-10-11 17:22:47 +00:00
Doug Blank
3fd19feea4
7090: wrong age for dead people reported by webcal
...
svn: r23306
2013-10-11 11:46:06 +00:00
Paul Franklin
dc0deae09e
7092: API for reporting issues ["interim" solution, from Nick Hall]
...
svn: r23301
2013-10-11 00:01:10 +00:00
Doug Blank
9780abd304
Completed tag database upgrade; additional changes for CLIManager
...
svn: r23299
2013-10-10 19:50:09 +00:00
Doug Blank
2238e0479e
Changed log.errors to log.warn (errors will stop execution)
...
svn: r23298
2013-10-10 19:48:05 +00:00
Doug Blank
6bb98bb230
Fix for when active_handle is ''
...
svn: r23297
2013-10-10 17:26:54 +00:00
Doug Blank
c2f0f5a063
Updates to work with CLIManager; shell refinements
...
svn: r23294
2013-10-10 12:29:52 +00:00
Paul Franklin
3575f63cbd
7102: XML: Gramps does not export 'very low' value (0) for confidence into citation
...
svn: r23289
2013-10-09 16:20:00 +00:00
Josip Pisoj
fd2efd76d8
0007114: GtkSpell: language code in a human readable format
...
svn: r23284
2013-10-08 17:32:22 +00:00
Doug Blank
9522a5ba53
7006: double entries in de gendex.txt file
...
svn: r23282
2013-10-08 16:40:00 +00:00
Doug Blank
1b6232e380
Add right-click support for media in detail views
...
svn: r23277
2013-10-08 12:02:55 +00:00
Doug Blank
c6585a8fac
Add right-click 'Make Active Media' to Photo class
...
svn: r23276
2013-10-08 11:32:33 +00:00
Vassilii Khachaturov
c87066136e
7100: proper handling of dates with NY in Date.set
...
svn: r23275
2013-10-08 11:23:30 +00:00
Doug Blank
ed1d579bfc
Add Gallery 'Make Active Media', typo
...
svn: r23274
2013-10-08 01:29:18 +00:00
Doug Blank
f1aa649601
Add Gallery 'Make Active Media', typo
...
svn: r23271
2013-10-08 01:12:28 +00:00
Doug Blank
4d8eae042a
Add Gallery 'Make Active Media'
...
svn: r23270
2013-10-08 01:04:07 +00:00
Nick Hall
060eed99c6
Freeze headings when scrolling
...
svn: r23267
2013-10-07 22:03:42 +00:00
Nick Hall
fa7ee8bbb6
7080: Fix upgrade when media path does not exist
...
svn: r23264
2013-10-07 17:12:58 +00:00
Jérôme Rapinat
aa265ae1e7
7105: missing event_ref_list into get_citation_child_list method
...
svn: r23263
2013-10-07 14:44:03 +00:00
Jérôme Rapinat
9d7f4b4056
7081: QuestionDialog module moved to gramps.gui.dialog
...
svn: r23249
2013-10-05 16:41:50 +00:00
Vassilii Khachaturov
b716a7f298
7100: add debug logging for the bug investigation
...
svn: r23247
2013-10-03 23:11:04 +00:00
Nick Hall
905e6a5993
Convert SoundEx Generator tool into a gramplet
...
svn: r23246
2013-10-03 21:11:05 +00:00
Nick Hall
543fda3d5d
Add new ancestor and descendant gramplets
...
svn: r23244
2013-10-03 18:06:50 +00:00
Nick Hall
ac35859e27
Convert uncollected objects tool into a gramplet
...
svn: r23243
2013-10-03 16:02:48 +00:00
Nick Hall
6aaccd4ca0
Convert python evaluation tool into a gramplet
...
svn: r23242
2013-10-03 13:33:03 +00:00
Jérôme Rapinat
c7f4a540b1
7072: fix level for citationref into person
...
svn: r23237
2013-10-02 08:10:07 +00:00
Jérôme Rapinat
010b67688a
7071: age on date now displays all individuals, update titles
...
svn: r23236
2013-10-01 08:57:18 +00:00
Doug Blank
609e2f5989
CACHES = {}
...
svn: r23233
2013-09-30 23:57:49 +00:00
Vassilii Khachaturov
8d5a98af2d
7088: remove SDN version reporting
...
svn: r23232
2013-09-30 19:31:47 +00:00
Nick Hall
c3aa0ccbb9
7066: Fix hebrew calendar and remove sdn import
...
svn: r23229
2013-09-30 17:41:21 +00:00
Nick Hall
533a279189
Move missing Gtk Spell warning
...
svn: r23224
2013-09-30 12:45:32 +00:00
Vassilii Khachaturov
3b14e98a1a
7088: rm warning on `import sdn' failure
...
svn: r23221
2013-09-30 11:46:07 +00:00
Nick Hall
e5a929c8b3
Revert change to suppress warnings
...
svn: r23218
2013-09-28 14:00:49 +00:00
Vassilii Khachaturov
659f1bec17
7089: same bug in 3 more reports
...
Port r23211-r23213 from gramps34.
svn: r23214
2013-09-27 23:57:49 +00:00
Vassilii Khachaturov
08dc8ffc53
7089: webcal mistreats non-gregorian event dates
...
svn: r23209
2013-09-26 22:06:15 +00:00
Paul Franklin
3381140ec0
7088: provide a config option to suppress the warning about missing "sdn"
...
svn: r23207
2013-09-26 21:53:03 +00:00
Vassilii Khachaturov
93170f1e2a
7037: proxy crash with complex person filter
...
reapply to trunk after retest by Mirko
svn: r23204
2013-09-26 20:32:53 +00:00
Vassilii Khachaturov
d29ea3775f
friendlier test failure diags
...
svn: r23199
2013-09-25 15:52:55 +00:00
Vassilii Khachaturov
03ccd6b8f9
skip MatchDateTest on non-English locales
...
svn: r23197
2013-09-25 14:51:08 +00:00
Vassilii Khachaturov
a79e943c19
6881: latin_american broken for partial families
...
svn: r23193
2013-09-25 11:12:10 +00:00
Paul Franklin
203508eab1
enable Arabic date handler in trunk
...
svn: r23191
2013-09-24 16:29:24 +00:00
Tim G L Lyons
edafc6a7c1
0006802: In Narrative Web report most Family Maps are missing. Problem due to single apostrophe (closing single quotation mark) which needs to be escaped.
...
svn: r23189
2013-09-24 11:30:33 +00:00
Vassilii Khachaturov
74ea37f1ba
7037: proxy crash with complex person filter
...
filter parameter shadowed the global filter :-)
svn: r23184
2013-09-23 15:58:32 +00:00
Vassilii Khachaturov
05fae5df80
7045: enable cal switch in editor on empty dates
...
svn: r23177
2013-09-21 08:57:02 +00:00
Vassilii Khachaturov
018f0ab30b
Revert "6926: display genitive/nominative months as needed"
...
Sorry, my mistake. Committed from the wrong branch!
This reverts commit 0e82e0077ac1cad122f4584d62b54855ca02e4d8.
svn: r23175
2013-09-20 12:41:46 +00:00
Vassilii Khachaturov
0936aa37e8
DateParserRU: suport 'до'
...
Add 'до' both as a Date.MOD_BEFORE modifier token
and as a span2 token (i.e., stop end for a Date.MOD_SPAN).
svn: r23174
2013-09-20 12:41:33 +00:00
Vassilii Khachaturov
6eebd80dfc
6926: display genitive/nominative months as needed
...
First proof of concept, fixing the original bug for Russian.
Added gramps/gen/datehandler/_datestrings.py, to hold
all the localized strings, with genitive/nominative
context as appropriate.
Remaining TODO:
1) other languages
2) expand the localized string into RE-style
concat via |, so that displayer uses the 1st instance,
and the parser uses the whole RE. Write the corresponding _().
3) same with short names as with long names
4) harmonize with _grampslocale code reading the names from
elsewhere for Julian/Gregorian months
5) expand to other calendars (non-Julian/non-Gregorian)
6) obsolete the public attributes in dd and replace with accessors
svn: r23173
2013-09-20 12:33:00 +00:00
Jérôme Rapinat
45f9ea5e6d
7081: No QuestionDialog module into gramps.gui.utils
...
svn: r23169
2013-09-20 10:17:29 +00:00
Jérôme Rapinat
a861db35bf
wrap description for width dialog
...
svn: r23168
2013-09-20 09:18:14 +00:00
Vassilii Khachaturov
407b059dba
7068: undo french fallback to gregorian
...
French SDN conversion functions now accept an optional boolean
parameter that allows to block dates outside the republican period.
By default, calendar conversions are allowed.
Revert test blocked by r23139, it now passes!
svn: r23167
2013-09-19 22:54:49 +00:00
Vassilii Khachaturov
180cb1ac28
6926: add partial dates (M/Y and Y), not just DMY
...
svn: r23166
2013-09-19 22:06:27 +00:00
Vassilii Khachaturov
1972013601
7063: endless loop in probably_alive_range
...
Reapply r23161 from gramps40
svn: r23162
2013-09-18 14:49:59 +00:00
Doug Blank
c4125c9299
Turn off debug level, enable warn level; provide a default null handler for logging
...
svn: r23153
2013-09-17 15:12:36 +00:00
Doug Blank
adf9d0dc81
7069: Narrated Web Site media pages do not include multiple references
...
svn: r23148
2013-09-17 10:35:33 +00:00
Tim G L Lyons
42f6070d8c
Fix citation filters so they no longer try to filter citations with a sources filter. Citation filter now allows specification of both source and citation data. When a citation is shown in a search or a filtered citation tree view, the corresponding source is also shown.
...
svn: r23143
2013-09-16 21:39:47 +00:00
Vassilii Khachaturov
f31a74d271
7068: skip blocked test code, blocks other tests
...
svn: r23139
2013-09-15 14:56:12 +00:00
Vassilii Khachaturov
f4be9dfc70
Cope with UnicodeDecodeError on git svn output
...
svn: r23138
2013-09-15 14:56:01 +00:00
Vassilii Khachaturov
f7c036ab52
7027: skip tests blocked by this bug
...
svn: r23137
2013-09-15 14:43:30 +00:00
Vassilii Khachaturov
6dede8d8af
7066: fix our algorithm based on jewish.c in sdn
...
It looks like we had an earlier fork of the same code,
and the upstream had some bugs fixed.
svn: r23133
2013-09-14 23:32:30 +00:00
Vassilii Khachaturov
b22b533846
7066: some massaging of ICU version, still fails
...
svn: r23129
2013-09-14 21:43:36 +00:00
Vassilii Khachaturov
da749a3fbc
7066: fallback to buggy PyICU if sdn unavailable
...
svn: r23128
2013-09-14 19:42:59 +00:00
Vassilii Khachaturov
a58b5cf2b7
7066: use sdn module from Calendar package on pypi
...
Unfortunately, no package on ubuntu for sdn...
Bug fixed on trunk, when sdn is present on the system.
Verified that sdn roundtrip works.
date_test now fails on 1789-13-4(French) recognized as invalid,
as it probably should -- I guess this one is a test bug.
svn: r23127
2013-09-14 19:42:48 +00:00
Vassilii Khachaturov
4d82a70eaa
provide sensible defautls for all Date.set params
...
svn: r23126
2013-09-14 15:44:04 +00:00
Vassilii Khachaturov
307b8519b2
7066: comment blocked test code until bug fixed
...
svn: r23125
2013-09-14 15:43:54 +00:00
Vassilii Khachaturov
ad333e937c
7045: Setting an invalid date does not raise
...
do the sanity checks on a separate date object,
so that the uncertainty expressed with 0 d/m isn't removed
svn: r23124
2013-09-14 15:11:09 +00:00
Vassilii Khachaturov
37e82106dc
7065: Calendar conversion broken for negative date
...
fixed, repro steps work as expected now
date_test still broken due to further blocking issues,
see #7045
svn: r23123
2013-09-14 14:23:58 +00:00
Vassilii Khachaturov
9c47f96b9c
7045: Date.set on invalid date does not raise
...
refactor _zero_adjust_ymd out of 3 cut-and-paste cases
the bug with the code inside it remains -- the negative years
should not be clamped to positive ones!!!!
svn: r23122
2013-09-14 13:24:40 +00:00
Vassilii Khachaturov
ab7d12103f
7045: Date.set on invalid date does not raise
...
Now it does, but another test breaks:
Traceback (most recent call last):
File "/usr/lib/python2.7/unittest/loader.py", line 252, in _find_tests
module = self._get_module_from_name(name)
File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
__import__(name)
File "/home/vassilii/Gramps/gramps/gen/lib/test/date_test.py", line 136, in <module>
d.set(quality,modifier,calendar,(4,11,-90,False),"Text comment")
File "/home/vassilii/Gramps/gramps/gen/lib/date.py", line 1600, in set
format(original, value))
DateError: Invalid year -90 passed in value (4, 11, -90, False)
because the corresponding year gets adjusted from -90 to 1...
svn: r23121
2013-09-14 13:00:19 +00:00
Vassilii Khachaturov
571e3cffa7
7034: fix test_copy_ymd_preserves_orig
...
broken in r23083
svn: r23120
2013-09-14 11:50:58 +00:00
Vassilii Khachaturov
5a7e4bd2c6
add get_git_svn_revision and fall back to it
...
Now gramps developers using git need not be ashamed of their
``gramps --version'' output :)
svn: r23118
2013-09-13 21:42:35 +00:00
Jérôme Rapinat
7518fc5d2a
wrap description on about dialog
...
svn: r23116
2013-09-13 13:06:22 +00:00
Vassilii Khachaturov
f8698d12f3
5598: refactor GUI tools to enable CLI operation
...
evname now a CLI tool
svn: r23111
2013-09-13 09:00:59 +00:00
Vassilii Khachaturov
2abca1d071
5598: make cli User.info consistent w/other output
...
svn: r23110
2013-09-13 09:00:46 +00:00
Vassilii Khachaturov
532424605b
5598: rm import OkDialog - user.info used instead
...
svn: r23109
2013-09-13 08:39:08 +00:00
Paul Franklin
519eb40d65
add Arabic date handler to trunk, for further testing
...
svn: r23106
2013-09-13 00:08:45 +00:00
Vassilii Khachaturov
32a63852e0
7061: docstring update
...
svn: r23104
2013-09-12 21:48:23 +00:00
Vassilii Khachaturov
6c6ca1cd20
Revert*2 "5098: refactor code to use User.progress
...
Revert*2 means re-apply :-)
svn: r23102
2013-09-12 21:22:14 +00:00
Vassilii Khachaturov
0b936041d3
5098: rename gui.user.User.progress to ._progress
...
it shadowed the gen.user.User.progress (the context manager),
breaking the ``with user.progress() ... as step:'' idiom!
svn: r23101
2013-09-12 21:22:02 +00:00
Vassilii Khachaturov
4ff73e9d8a
5098: refactor to use user.info and user.progress
...
svn: r23100
2013-09-12 21:21:53 +00:00
Vassilii Khachaturov
85c1a9a0fd
Revert "5098: refactor code to use User.progress"
...
This reverts commit db9a64ef7da5f26c586452c1a84a96675991d9a4.
This was tested with "runtest.sh" only, but turns out things
are broken under GUI. I'll investigate on a private branch,
reverting meanwhile to unblock the affected plugins on trunk.
svn: r23099
2013-09-12 20:39:07 +00:00
Vassilii Khachaturov
92c13a36bf
5098: refactor old code to use User.progress
...
Now that #7061 is done, all the old code should no longer use
User.begin_.../step_.../end_progress directly any more, preferring
the context manager instead.
svn: r23096
2013-09-12 19:31:06 +00:00
Vassilii Khachaturov
299235a687
7061: User.progress
...
docstrings
svn: r23093
2013-09-12 17:51:42 +00:00
Vassilii Khachaturov
dd8263a6e8
7061: Wrap User...._progress in a context manager
...
ensure end_progress is called when exception is raised
svn: r23092
2013-09-12 17:51:31 +00:00
Vassilii Khachaturov
fffeb1c0b4
7061: Wrap User...._progress in a context manager
...
svn: r23091
2013-09-12 15:41:14 +00:00
Vassilii Khachaturov
e8202bf4fe
6940: ErrorReportAssistant_Test.test_buffer_recall
...
fix as approved by Benny
svn: r23090
2013-09-12 14:24:56 +00:00
Doug Blank
6e51929bde
ageondate quickview: show reason why considered alive or dead
...
svn: r23087
2013-09-11 10:56:26 +00:00
Doug Blank
621615bbd1
living proxy did not exclude living people with iter_people()
...
svn: r23084
2013-09-11 02:12:40 +00:00
Vassilii Khachaturov
b6f7ab9ed0
7034: add remove_stop_date parameter
...
svn: r23083
2013-09-10 17:19:16 +00:00
Doug Blank
146be99876
Ignore meaningless @IDENT@ on CONT or CONC line as detailed at http://www.tamurajones.net/IdentCONT.xhtml
...
svn: r23081
2013-09-10 16:52:03 +00:00
Vassilii Khachaturov
ff89425e50
7013: strip underscores from accept/reject labels
...
svn: r23077
2013-09-10 12:41:05 +00:00
Doug Blank
52d8a77864
7053: Narrated Website report crashes; check for family == None on lookup
...
svn: r23074
2013-09-10 10:09:32 +00:00
Vassilii Khachaturov
be8c13ef4f
5598: implement User() class for tools
...
change BatchTool to take user instead of uistate
BatchTool now uses user.prompt, properly prompting the user in CLI
scenario as well, unless "--yes" flag is given
svn: r23071
2013-09-09 21:04:45 +00:00
Paul Franklin
a4ae95f260
enable suppression of minor missing-package warning (spell checking)
...
svn: r23070
2013-09-09 20:55:25 +00:00
Vassilii Khachaturov
e51987aab8
7034: probably_alive() failing when no birth-death
...
further refactoring of set_.../set2_... common code
added accessor get_stop_ymd analogous to get_ymd
svn: r23068
2013-09-09 19:31:13 +00:00
Vassilii Khachaturov
bdd08bc679
7034: probably_alive() failing when no birth-death
...
docstring update
svn: r23067
2013-09-09 19:31:00 +00:00
Serge Noiraud
9695f0a8e4
Geography : bug#0006930 : incorrect string in geoplaces
...
svn: r23064
2013-09-09 15:29:44 +00:00
Tim G L Lyons
6661229b09
Fix error where displaying Date or Confidence in Citation Tree View gave AttributeError: 'NoneType' object has no attribute 'encode'
...
svn: r23063
2013-09-09 11:32:59 +00:00
Vassilii Khachaturov
5c9751f3b9
5598: implement User() class for tools
...
Refactoring in progress:
Modified all the tools' classes' call signature:
now all take a user argument instead of a uistate, and
GUI and CLI signature is unified.
All tools now begin with uistate = user.uistate
svn: r23061
2013-09-08 21:43:12 +00:00
Vassilii Khachaturov
8bdb301958
Add CLIManager.user attribute and __init__ param
...
Instead of initializing self.user, ArgHandler now aliases
the sessionmanager's one.
svn: r23060
2013-09-08 21:03:40 +00:00
Vassilii Khachaturov
8d867ec2a5
refactor test
...
svn: r23059
2013-09-08 19:35:15 +00:00
Vassilii Khachaturov
a702a815b3
consistency between offset and non-offset setters
...
added ugly parameter _update2 to set_yr_mon_day, needs refactoring
svn: r23058
2013-09-08 19:23:23 +00:00
Vassilii Khachaturov
39927c45bd
fix set_yr_mon_day_offset for compound dates
...
now calls set2_yr_mon_day_offset
svn: r23057
2013-09-08 19:23:12 +00:00
Vassilii Khachaturov
d4b9448cbc
refactor set_yr_mon_day and set2_yr_mon_day
...
refactor common base
svn: r23056
2013-09-08 19:23:02 +00:00
Vassilii Khachaturov
6910605c4e
raise DateError in set2_... if not is_compound()
...
refactor Date to always use is_compound instead of repeating
its logic everywhere
svn: r23055
2013-09-08 19:22:52 +00:00
Vassilii Khachaturov
7e04c4b136
Add some UT for Date.set2_... and fix bugs
...
Cut and paste is evil ;-) fix bugs before I refactor the code...
svn: r23054
2013-09-08 19:22:40 +00:00
Vassilii Khachaturov
14a69143e1
7034: probably_alive() failing when no birth-death
...
docstring fix
svn: r23053
2013-09-08 19:22:30 +00:00
John Ralls
859b030238
Bug 7040: 4.0.2 svn 23029M fails to start catastrophically
...
svn: r23046
2013-09-06 19:09:25 +00:00
Nick Hall
66fc6893ea
Fix bug listing gramplets already in gramplet bar
...
svn: r23041
2013-09-05 22:47:02 +00:00
Vassilii Khachaturov
109fabf5d4
add __main__ for stand-alone test runs
...
svn: r23036
2013-09-05 08:25:30 +00:00
Vassilii Khachaturov
81f412a23f
Indentation fix
...
svn: r23034
2013-09-04 20:38:25 +00:00
Vassilii Khachaturov
acdf385509
5598: implement User() class for tools
...
refactoring in progress - convert calling the tools' classes
using positional syntax
svn: r23032
2013-09-04 14:44:19 +00:00
John Ralls
4cf8c95170
Bug 7040: 4.0.2 svn 23029M fails to start catastrophically
...
svn: r23030
2013-09-04 14:04:48 +00:00
Doug Blank
d911ce7760
7034 and 6965: missing method
...
svn: r23028
2013-09-04 10:39:40 +00:00
Doug Blank
7977800875
7034: probably_alive() failing when no birth-death dates specified; 6965: Probably Alive fails when birth date is a range
...
svn: r23023
2013-09-04 02:54:32 +00:00
John Ralls
d09bfef267
Change grampslocale logger to use __name__ instead of 'grampslocale'
...
Attempt to suppress 'No handler for logger grampslocale' messages by enrolling the logger in the module hierarchy.
svn: r23016
2013-09-03 23:18:24 +00:00
John Ralls
6203393960
Simplify display_url to just use htmlview or webbrowser
...
svn: r23015
2013-09-03 22:43:33 +00:00
John Ralls
97c981af3f
Avoid bogus rel-calc translation error message in C locale
...
svn: r23014
2013-09-03 22:43:25 +00:00
Vassilii Khachaturov
1206e00076
minor cleanup
...
svn: r23013
2013-09-03 20:37:03 +00:00
John Ralls
8c331a5d92
Bug 7036: [Win32]Setting LANG crashes Gramps
...
Also fixes Bug 6919: No automatic language selection in Windows
Thanks to Helge Herz.
svn: r23011
2013-09-03 17:39:04 +00:00
John Ralls
6422964a40
Bug 7017: Consolidate run_file into open_file_with_default_application
...
svn: r23009
2013-09-03 16:33:25 +00:00
Vassilii Khachaturov
ceccf0c442
5598: implement User() class for tools
...
Let gui User take an optional uistate kwarg,
and use it in dbloader and viewmanager.
svn: r23008
2013-09-03 14:17:27 +00:00
Doug Blank
8f745a1e07
Webapp: update empty.sql to latest db design
...
svn: r22995
2013-09-01 13:03:05 +00:00
Doug Blank
4fefbfb647
Webapp: search refinements
...
svn: r22993
2013-09-01 12:32:28 +00:00
Doug Blank
8e8a2b7c6a
Webapp: use cuni for python3 compatibility
...
svn: r22989
2013-09-01 11:42:09 +00:00
Doug Blank
653cb3882b
Use cuni rather than unicode
...
svn: r22988
2013-09-01 11:20:35 +00:00
Doug Blank
6f7cdb8fd2
7025: issue with python3 and unicode string
...
svn: r22986
2013-09-01 11:07:40 +00:00
Vassilii Khachaturov
7eb11077c8
clean up tmp test files in the end
...
svn: r22983
2013-09-01 07:37:58 +00:00
John Ralls
7b4b9d09f0
Fix misguided change to poll_external signature
...
svn: r22981
2013-09-01 04:32:48 +00:00
Doug Blank
1d3275f88e
7025: 4.0.2 svn 22976M fails to start catastrophically
...
svn: r22980
2013-09-01 02:35:11 +00:00
Doug Blank
8958407097
Webapp: put .distinct() last to remove duplicate matches in queries
...
svn: r22977
2013-09-01 02:11:15 +00:00
Doug Blank
4a8d98ec2e
Webapp changes to properly show unicode data in html
...
svn: r22975
2013-08-31 13:41:38 +00:00
Doug Blank
0b0d0c5c05
Create .pyhistory if it doesn't exist
...
svn: r22974
2013-08-31 13:10:30 +00:00
Vassilii Khachaturov
64d3a217f1
6960: Bless Source with an IndirectCitationBase
...
svn: r22970
2013-08-30 22:33:58 +00:00
Vassilii Khachaturov
94638ad84e
6960: mergecitations has broken copy of MCQ
...
The MergeCitations batch tool had a cut-and-pasted code
replicating MergeCitationQuery logic. Naturally, it diverged :-)
Removed MergeCitations.Merge and use MergeCitationQuery instead.
svn: r22969
2013-08-30 22:03:14 +00:00
Nick Hall
b4d924f996
Fix regular expressions in sidebar filters
...
svn: r22968
2013-08-30 20:34:20 +00:00
Vassilii Khachaturov
4ad659b083
Don't swallow exceptions in child process
...
If this were in place before I started working on #6960 ,
it could have saved me almost an hour!!
svn: r22964
2013-08-30 19:25:22 +00:00
Vassilii Khachaturov
db4f8960a6
Refactor IndirectCitationBase out of 3 classes
...
Refactor common base out of Citation, EventRef, and Repository
class IndirectCitationBase(object):
Citation management logic for objects that don't have citations
for the primary objects, but only for the child (secondary) ones.
The derived class must implement get_citation_child_list method
to return the list of child secondary objects that may refer
citations.
Note: for most objects, this functionality is inherited from
CitationBase, which checks both the object and the child objects.
Includes:
* has_citation_reference
* replace_citation_references
* remove_citation_references
svn: r22960
2013-08-30 18:33:04 +00:00
Nick Hall
2aaca6aac7
6874: Use shorter names in add gramplet list. Remove old attributes gramplet.
...
svn: r22959
2013-08-30 18:09:48 +00:00
Nick Hall
90c25b9f8b
6786: Invoke editor on double-click in backlinks gramplet
...
svn: r22956
2013-08-30 16:06:49 +00:00
Vassilii Khachaturov
2df6db8b40
6960: Error merging citations
...
Cut-n-pastery of Repository functionality into Citation
to fix the bug pinpointed by merge_ref_test.SourceSourceCheck.
Refactoring to come next...
svn: r22953
2013-08-30 15:49:22 +00:00
John Ralls
38756d53da
Bug 7017 GUI stuck when external viewer launched
...
subprocess.checked_call seems to wait on the process that xdg-open
starts, but subprocess.wait doesn't.
svn: r22949
2013-08-29 23:25:09 +00:00
Vassilii Khachaturov
879218475e
flags HAS_CLIMERGE and HAS_EXPORTRAW to skip tests
...
Thanks, Nick!
svn: r22948
2013-08-29 22:48:54 +00:00
Nick Hall
74d6dd8dd4
Exclude empty checksums from export
...
svn: r22947
2013-08-29 20:49:54 +00:00
Vassilii Khachaturov
d550a2373a
Obsolete checks in __main__
...
svn: r22945
2013-08-29 19:12:30 +00:00
Doug Blank
eab69c44ac
Fix dbdjango to be up to date with bsddb of gramps40: added checksum for Media; SourceAttribute and CitationAttribute gained a private flag; all primary objects got tags
...
svn: r22944
2013-08-29 19:11:30 +00:00
Tim G L Lyons
3d30663a5c
0006849: citationtreeview with search bar only searches in sources, not citation data
...
0006848: citationtreeview corrupts when search bar open and edit occurs
0006829: Searching into source/citation selector disallows to select all related citations, only matching rows
by fixing treebasemodel so it properly deals with secondary objects, and also citationtreemodel so it adds secondary odes even when the parent is not present.
svn: r22941
2013-08-29 18:06:43 +00:00
Vassilii Khachaturov
9487b3c1b7
6960: Error merging citations
...
Error merging citations containing objects with citations.
reapply from gramps40 the fix to MergeCitationQuery
merge_ref_test suite still fails :(
svn: r22938
2013-08-29 16:33:21 +00:00
Doug Blank
0bf91f7708
Make webapp work in trunk, copying changes from gramps40
...
svn: r22930
2013-08-29 12:23:58 +00:00
Vassilii Khachaturov
6336e35a29
7021: merge r22867 fix of #6863 to trunk
...
svn: r22929
2013-08-29 12:13:26 +00:00
Nick Hall
94d0a21d08
4735: Check for updates in a separate thread
...
svn: r22926
2013-08-28 23:34:51 +00:00
Doug Blank
5a1bddb967
7020: Date filtering fails to work on Family Events in 3.4.6 or 4.0.2; typo, missing 'not'; changed date before and after max to be 9999
...
svn: r22919
2013-08-28 12:00:00 +00:00
Vassilii Khachaturov
62854bb089
7016: new cmdline switches -y/--yes and -q/--quiet
...
Add to -h output new text about -y and -q
impex.sh switched to use --yes and --quiet
Refactor ArgHandler to reuse User object
ArgHandler now uses user.prompt
No longer custom code duplicating user.prompt functionality
This dropped support for English yes/no and prefixes in the
"OK to overwrite?", as User.prompt allows pressing "Enter"
to accept by default, and everything else except
verbatim accept choice will be treated as reject.
cli.user.User.prompt now supports treating EOF as a reject
prompt message reformatted: added newline after title
Previously, code
'-q' in ('--qml')
returned True, which was not what ArgParser meant.
Changed the rhs of in to [] from () to avoid this for every case
in ArgParser.parse in the future as well.
Tests run: the new UT added and impex.sh
svn: r22916
2013-08-28 09:24:26 +00:00
Vassilii Khachaturov
08b76fbf8c
7013: Impl. User.prompt based on QuestionDialog2
...
Implemented prompt method, changed signature
to match QuestionDialog2.__init__
Refactored existing code in User classes:
common __init__ code and User.callback pulled up to gen.user
Aligned gui and cli to use stderr for spinner and
progress printouts
For testability, self._fileout attr is used instead
of hardwired stderr/stdout, this is
add gui test (empty for now)
The new code (prompt) is not excercised anywhere but
in the unit tests yet, this is preparation work for other
items in bug #5598
svn: r22914
2013-08-26 11:25:24 +00:00
Vassilii Khachaturov
87badc8907
6878: CLI import/export plugins broken w/o DISPLAY
...
Reapply from gramps40.
commit b2977abeab0be3c9edd85f26f9c151d82198921c
Author: Vassilii Khachaturov <vassilii@tarunz.org>
Date: Wed Aug 21 18:54:21 2013 +0000
Replace a hardwired ProgressMeter with proper calls to User
Tested with impex.sh with and without DISPLAY env
git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@22901 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
commit d67eda455f4f8c97e34ec7c85fb0bcf3a9c3b940
Author: Vassilii Khachaturov <vassilii@tarunz.org>
Date: Wed Aug 21 18:54:05 2013 +0000
6957: support gender in vcard import
forgotten merge cleanup
git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@22900 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
svn: r22911
2013-08-23 08:48:02 +00:00
Vassilii Khachaturov
ffa6b33db8
7009: endless exception loop starting w/o DISPLAY
...
Reapplied my fix to has_display from gramps40.
svn: r22910
2013-08-22 22:45:17 +00:00
Nick Hall
72c2cff790
Add date validation to filters
...
svn: r22905
2013-08-22 17:13:55 +00:00
Vassilii Khachaturov
b142062187
6953: remove "undo history warning" under CLI
...
Merged from gramps40 the commits below and
verified there are no more instances of BatchTool
on trunk to change as well.
commit 657a57fb7de3c9804dfbff5b27f824ff79ead2ae
Author: Vassilii Khachaturov <vassilii@tarunz.org>
Date: Wed Aug 21 17:24:41 2013 +0000
6953: remove "undo history warning" under CLI
Port my fix from gramps34.
In addition, the Check tool now has a hardwired dependency
on ProgressMeter. Make a nullifying mock locally and
only set it to the real thing only under GUI.
Tested with impex.sh (further stages after check still fail,
see bug #6878 ).
git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@22899 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
commit 064d9a7b36770857f7fd68b35ade6e8f3f52b81a
Author: Vassilii Khachaturov <vassilii@tarunz.org>
Date: Wed Aug 21 17:24:18 2013 +0000
action 'tool' CLI handler broken w/o DISPLAY
Preparing to port my fix for 6953: remove "undo history warning"
when the BatchTool run from cli (e.g., "check")
from gramps34, the ground state was worse in gramps40...
git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@22898 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
svn: r22902
2013-08-21 19:46:16 +00:00
Paul Franklin
7c5d15b678
add and enable Greek date handler (from Zissis Papadopoulos)
...
svn: r22897
2013-08-21 16:55:23 +00:00
Vassilii Khachaturov
29c7564ea4
6871: workaround gtk RTL bug in MultiTreeView
...
optimizing cleanup - reapply from gramps40
svn: r22891
2013-08-21 07:33:26 +00:00
Vassilii Khachaturov
02d8a8d915
6871: workaround gtk RTL bug in MultiTreeView
...
Reapply from gramps40 - blend of Nick's and my fix for the bug.
svn: r22888
2013-08-20 21:55:17 +00:00
Nick Hall
dcccf38e2e
Add datehandler unit test
...
svn: r22885
2013-08-20 19:48:01 +00:00
Nick Hall
7ccbe938f1
6871: Remove vertical grid lines for RTL display
...
svn: r22883
2013-08-20 16:06:28 +00:00
Vassilii Khachaturov
c727e19ea8
Adapt to gramps40/trunk - add GRAMPS_RESOURCES env
...
Rewrote Makefile to use a single macro PYTHON
which includes all the env magic in it.
svn: r22877
2013-08-19 20:18:39 +00:00
Vassilii Khachaturov
b8e669390f
gramps-connect: more automation during init
...
don't require the user to manually create the fixtures subdir
svn: r22876
2013-08-19 20:03:11 +00:00
Vassilii Khachaturov
88e27cd71e
gramps-connect used wrong arg for GrampsLocale
...
Fixed webapp/utils.py and also made the docstring in Grampslocale
less ambiguous.
svn: r22875
2013-08-19 19:53:59 +00:00
Nick Hall
c56996b635
Simplify status bar and fix justification of filter status
...
svn: r22872
2013-08-15 22:08:23 +00:00
Nick Hall
2d8b44db89
Add checksum to media objects
...
svn: r22870
2013-08-15 17:49:51 +00:00
Paul Franklin
8d9f6558e5
6998: Descendant Tree Report crashes gramps 4.0.2 svn 22863M
...
svn: r22869
2013-08-14 22:44:09 +00:00
Nick Hall
c94c8c0b84
Fix bug in note filters
...
svn: r22862
2013-08-13 18:39:34 +00:00
Nick Hall
189d1f0f59
6995: Fix bug in event citation filter
...
svn: r22859
2013-08-13 18:23:57 +00:00
Nick Hall
4c7d413f40
Automatic update for old rules using regular expressions
...
svn: r22855
2013-08-11 14:12:32 +00:00
Vassilii Khachaturov
a552012663
6909: Gedcom export adds birth place/date in death
...
reapply my fix from gramps40
svn: r22852
2013-08-11 13:34:41 +00:00
Paul Franklin
70921cfdfa
give the graphvizdialog's format_str a more-unique name
...
(to help distinguish it from the name displayer's format_str)
svn: r22846
2013-08-10 18:37:52 +00:00
John Ralls
1bb33d6d8a
Clean up some leftovers from 22840
...
svn: r22842
2013-08-09 22:36:36 +00:00
John Ralls
5880dc49f6
Consolidate mslocales and self._lang_map
...
into a single dict for easier maintenance
Thanks to Paul Franklin for suggesting it
svn: r22840
2013-08-09 22:11:58 +00:00
Nick Hall
b8f62b8917
Remove redundant imports
...
svn: r22839
2013-08-09 21:37:34 +00:00
John Ralls
9e213e0090
Fix crash when Gramps is passed an invalid locale
...
svn: r22833
2013-08-09 19:58:34 +00:00
John Ralls
57af50e162
Ensure en_US encoding is UTF-8
...
svn: r22832
2013-08-09 19:58:29 +00:00
John Ralls
615fd34957
GrampsLocale:Add Greek and English to MSlocales
...
svn: r22831
2013-08-09 19:58:24 +00:00
Nick Hall
0693e0db79
Convert old rules to use regular expression code in the base class
...
svn: r22830
2013-08-09 17:31:42 +00:00
Nick Hall
50ccc05119
Combine three new rules with existing rules
...
svn: r22828
2013-08-09 14:06:48 +00:00
Nick Hall
927415ee88
Add regular expressions to rules
...
svn: r22823
2013-08-08 22:51:44 +00:00
Nick Hall
01a7fd6cf6
python3 fix
...
svn: r22821
2013-08-08 13:02:04 +00:00
Nick Hall
66166c2acc
Fix for Windows line separator
...
svn: r22819
2013-08-08 12:45:23 +00:00
Nick Hall
fe258bf600
6950: Add new rule for events with places matching filter
...
svn: r22816
2013-08-07 23:26:16 +00:00
Vassilii Khachaturov
4b5d6fa8c9
comment/docstring fix
...
reapply from gramps40
svn: r22813
2013-08-07 08:21:44 +00:00
Vassilii Khachaturov
a987be1f3a
6883: non-Western fonts broken in PS reports
...
Reapply from gramps40.
svn: r22811
2013-08-06 22:34:54 +00:00
Nick Hall
6fe75d41e2
Convert VCard unit tests to use ElementTree
...
svn: r22807
2013-08-06 18:47:59 +00:00
Nick Hall
435f5106de
6969: Connect to switch-page signal after the initial gramplets have been added
...
svn: r22801
2013-08-05 18:35:39 +00:00
Nick Hall
f33607ac7c
Close database files before removing them
...
svn: r22794
2013-08-03 16:46:17 +00:00
Nick Hall
d174f4c44b
Add unit test for latitide/longitude conversion
...
svn: r22792
2013-08-01 20:46:11 +00:00
Nick Hall
9a9d7ccf03
Convert callback test to use assert methods
...
svn: r22789
2013-07-31 20:12:08 +00:00
Nick Hall
efb3c8c6a4
Move rotate handler test
...
svn: r22785
2013-07-31 16:48:50 +00:00
Nick Hall
031bdb699b
Unit test python3 fixes
...
svn: r22783
2013-07-30 22:07:28 +00:00
Nick Hall
0dc020e31f
Fix date unit test
...
svn: r22781
2013-07-30 20:00:23 +00:00
Nick Hall
71143f6d0d
Remove superfluous console output in unit tests
...
svn: r22779
2013-07-30 16:58:52 +00:00
Nick Hall
4acc6e262e
Remove redundant import
...
svn: r22777
2013-07-30 16:53:06 +00:00
Vassilii Khachaturov
8f14d9cc92
6663: RecentFiles.do_save() doesn't do XML escape
...
reapply from gramps40
svn: r22775
2013-07-30 15:14:07 +00:00
Nick Hall
82978c7993
Fix merge ref unit test
...
svn: r22772
2013-07-30 00:21:31 +00:00
Nick Hall
4760c6bd21
Fix and move db unit tests
...
svn: r22768
2013-07-29 16:38:06 +00:00
Vassilii Khachaturov
f36b5e66ae
6957: VCF export/import should support [x-]gender
...
reapply from gramps40
svn: r22764
2013-07-29 08:55:49 +00:00
Nick Hall
174a1dac95
Convert db unit test to use unittest module
...
svn: r22761
2013-07-28 18:54:39 +00:00
Nick Hall
b3ddf9f83a
Fix and move keyword unit test
...
svn: r22759
2013-07-28 18:11:35 +00:00
Nick Hall
772cf39d7f
Fix and move config unit test
...
svn: r22757
2013-07-28 17:36:35 +00:00
Nick Hall
696ee7aad0
Fix and move CLI unit test
...
svn: r22755
2013-07-28 16:20:30 +00:00
Nick Hall
b2b4da2d37
Fix unit tests
...
svn: r22753
2013-07-28 15:04:26 +00:00
Nick Hall
d6c870fde6
6954: Output command line messages and progress information to stderr rather than stdout
...
svn: r22751
2013-07-28 14:21:53 +00:00
John Ralls
a8267740a3
Fix python3 syntax error
...
svn: r22740
2013-07-27 17:25:08 +00:00
Paul Franklin
1185b58986
6946: global name 'UNITYPE' is not defined - can't open old database
...
svn: r22739
2013-07-26 19:13:14 +00:00
Paul Franklin
5d4ba11075
show more LDS temples on the screen
...
svn: r22736
2013-07-24 19:12:14 +00:00
Paul Franklin
0486ea11b7
6872: wrong size of svg image in Family Lines Graph
...
svn: r22733
2013-07-24 16:27:34 +00:00
Paul Franklin
03669acb70
CLI --config values should be enterable in gramps.ini form (e.g. 0 or 1)
...
svn: r22728
2013-07-24 00:01:28 +00:00
Vassilii Khachaturov
fe9e202fd3
6936: spelling and other fixes in RU rel calc
...
svn: r22720
2013-07-22 21:00:06 +00:00
Vassilii Khachaturov
8b1f6d7def
6932: Check for broken GTK install on linux only
...
Fix as proposed by jralls.
Also, move the 'gtk30' translation domain name to gramps consts.
svn: r22717
2013-07-22 12:04:22 +00:00
Paul Franklin
9148eaf18f
add the missing import to the 3139 fix I added, sigh
...
svn: r22713
2013-07-21 20:49:01 +00:00
John Ralls
bdd336f38e
GrampsLocale: Don't set to 'C' if LANG is en_US
...
Not required, Gtk has an 'en' translation
Ref. http://www.gramps-project.org/bugs/view.php?id=6867
svn: r22710
2013-07-21 20:22:24 +00:00
Paul Franklin
a327bf6337
3139: boolean command line options have to be specified as foo=true ...
...
The solution was suggested by Doug Blank.
svn: r22709
2013-07-21 20:04:30 +00:00
John Ralls
5e13868e45
Bug 6928: Windows: If LANG not equal en_GB Graphic Reports
...
in some cases produce empty PDF sheets or force graphviz to crash
Problem was due to calling localized float() when parsing a C-locale xml file
svn: r22705
2013-07-21 19:15:52 +00:00
Vassilii Khachaturov
a7b4600ad0
2974: .rtf docgen doesn't escape backslashes
...
svn: r22704
2013-07-21 11:13:21 +00:00
Vassilii Khachaturov
429c8e655d
6864: change warning to a more user-friendly one
...
s/Gramps ignored namemap value/Gramps ignored a name grouping/g
svn: r22701
2013-07-21 07:01:10 +00:00
Vassilii Khachaturov
24aefc1158
6884: RTF reports broken for intl chars
...
Ported my fix from gramps34 branch
svn: r22696
2013-07-20 16:30:20 +00:00
Vassilii Khachaturov
e0dfb47b30
6915: not related tool treats siblings as not rel.
...
Applied patch from ennoborg, thanks!
svn: r22690
2013-07-16 17:18:06 +00:00
Vassilii Khachaturov
6fdae2e29c
6867: warn on gtk translation missing
...
Give a dev-oriented warning on console and pop up a UI
warning dialog for the user, when an inconsistent
translation configuration is detected between gramps and gtk
(happens when a langpack is missing on Ubuntu systems, e.g.)
svn: r22683
2013-07-16 11:10:24 +00:00
Paul Franklin
0617629e9d
6922: Export gpkg crashes in svn 22654M
...
svn: r22682
2013-07-15 18:38:11 +00:00
Serge Noiraud
c635e94f5d
Bug #6917 : Gtk2 to Gtk3 port of colorsel to get_color_selection()
...
svn: r22680
2013-07-14 12:28:13 +00:00
Paul Franklin
e6c91354a5
revert the Finnish date-format change (remove the four I added)
...
svn: r22678
2013-07-13 20:56:38 +00:00
Paul Franklin
b2e5148b18
correct the Finnish date-format choices (add the other four)
...
svn: r22675
2013-07-13 20:02:49 +00:00
Paul Franklin
e4cbeaef19
added and/or clarified various date handler comments
...
also slightly reformatted a few date handler lines
and fixed one (locale-specific) date handler typo
svn: r22672
2013-07-13 18:01:08 +00:00
Serge Noiraud
c7ad6127da
Geography : print page size selection before opening printing dialog.
...
svn: r22669
2013-07-12 11:38:26 +00:00
Paul Franklin
59d225108c
standardize date handler's internal argument names, for easier comparisons
...
svn: r22667
2013-07-09 01:31:56 +00:00
Paul Franklin
9058a04bc1
ignore bad Record Gramplet/Report data (the data-verification tool catches them)
...
svn: r22664
2013-07-08 21:52:56 +00:00
Craig J. Anderson
bcc17b3700
Updated code to:
...
. http://www.gramps-project.org/bugs/view.php?id=3430
. . added a $G[vtdelcspnom] to display
. . . researcher information
. . . gramps version and database name
. be more vim compliant and a little more PEP compliant
svn: r22661
2013-07-08 20:28:36 +00:00
Paul Franklin
75efe4f5d7
Span maximums and minimums must always be positive numbers
...
svn: r22657
2013-07-08 01:44:32 +00:00
Serge Noiraud
700cddf453
Geography : omit to add the new file for printing : cairoprint.
...
svn: r22653
2013-07-05 18:02:13 +00:00
Serge Noiraud
b2c233dc94
Geography : add printing functionality for all geography views.
...
svn: r22652
2013-07-05 17:51:38 +00:00
Doug Blank
356351f40c
Added missing SrcAttributeType
...
svn: r22650
2013-07-05 16:51:33 +00:00
Doug Blank
75eef28af7
6774: Recursive call in GEDCOM export preview calculation
...
svn: r22649
2013-07-05 15:03:40 +00:00
Doug Blank
a7e76d9a30
Undo changes for 6878
...
svn: r22647
2013-07-03 20:23:21 +00:00
Doug Blank
9442a5afe8
6081: Crash after double-click on .gpkg file
...
svn: r22643
2013-07-03 12:54:19 +00:00
Doug Blank
6b8eff0908
6878: Running CLI options when DISPLAY not set barfs
...
svn: r22642
2013-07-03 01:20:03 +00:00
Paul Franklin
fc6725852a
6818: Enable Relationships support on RelationshipGraph (GraphViz)
...
svn: r22638
2013-07-01 16:59:55 +00:00
Benny Malengier
1f88a54415
GTK3 wants to deprecate unicode menu
...
svn: r22634
2013-07-01 08:42:06 +00:00
Paul Franklin
4d0f6160d5
make sure relationship calculator's relationships are in the UI language
...
svn: r22633
2013-06-30 17:52:12 +00:00
Benny Malengier
2c879c794c
6807: validatedmaskedentry: no attribute '_block_changed'
...
svn: r22630
2013-06-30 15:52:04 +00:00
Benny Malengier
36deb5ef40
GTK3: make sure menu shows up
...
svn: r22628
2013-06-30 13:38:38 +00:00
Benny Malengier
5066561558
GTK 3.9 removes unicode-menu
...
svn: r22627
2013-06-30 07:56:56 +00:00
Paul Franklin
094dec06e0
enable suppression of two minor missing-package warnings
...
svn: r22624
2013-06-28 17:53:39 +00:00
Nick Hall
766320ae8b
6841: Fix RTL text style bug
...
svn: r22618
2013-06-27 13:08:25 +00:00
Benny Malengier
4664f77608
squash 40 commits:
...
1. 6848: citationtreeview corrupts when search bar open and edit occurs
2. avoid critical gdk error by processing events only when window visible :
Gdk-CRITICAL **: gdk_error_trap_pop_internal: assertion `trap != NULL' failed
3. In case of errors with fg_color, enormous amount of error messages. This patch
grabs wrong fg_color, and skips action, avoiding the error messages. Error goes to debug.
svn: r22610
2013-06-25 22:15:08 +00:00
Benny Malengier
e9629f77e0
Bring srcattrtype in line with GEP 18:
...
1. less types
2. no template data
3. an ignore list
svn: r22604
2013-06-25 10:55:12 +00:00
Vassilii Khachaturov
242fd1372d
6838: report cli crash ignoring unknown param
...
merge from gramps40 branch
svn: r22596
2013-06-24 18:17:15 +00:00
Jérôme Rapinat
6d9fbe0238
update Ukrainian relationship calculator (by Fedir)
...
svn: r22582
2013-06-24 06:41:23 +00:00
Paul Franklin
39395150f7
make sure relationship calculator tool's relationships are in the UI language
...
svn: r22581
2013-06-24 01:59:25 +00:00
John Ralls
1158e77e13
Correctly set images/webstuff path in htmldoc.py and setup.py
...
svn: r22578
2013-06-23 23:24:02 +00:00
John Ralls
3fd0762ae0
Move the HTML resources from gramps/plugins/webstuff to data and images
...
So that they're together with the other resources instead of in
site-package/gramps. Aside from a better source and installation
layout, this makes it easier to bundle them.
svn: r22576
2013-06-23 22:47:25 +00:00
Vassilii Khachaturov
b8a18b02b5
6740: root cursor corruption
...
Use get_window() not get_root_window() to set the cursor.
svn: r22571
2013-06-23 14:16:22 +00:00
Vassilii Khachaturov
8af57bcf07
4571: RTL support in fanchart: cleanup older code
...
Use math.degrees() / math.radians() where able
Follow-up to CR by Benny:
Removed redundant forced conversion to float, the
from future import division
handles that already. See PEP-238 for details.
draw_text:
Remove manual layout wrapping, use pango Layout logic.
Refactored wrap_truncate_layout from draw_arc_text,
and it's now reused in draw_text, here with CHAR
wrapping mode as opposed to WORD in draw_arc_text.
This replaces the (Unicode-wrong) implementation of
manual char-by-char code with text truncation.
svn: r22569
2013-06-23 11:12:13 +00:00
Jérôme Rapinat
a4558b3ccc
enable Ukrainian date handler (by Fedir)
...
svn: r22566
2013-06-23 09:16:54 +00:00
Jérôme Rapinat
8bbbae41aa
support Arabic on installation and lang_map (reports)
...
svn: r22565
2013-06-23 09:15:33 +00:00
Nick Hall
d30ade0488
6814: Fix gramplet positioning when using RTL locale
...
svn: r22557
2013-06-22 21:01:04 +00:00
Vassilii Khachaturov
d03fc19188
Fix minor ugliness due to precision loss.
...
Change an integer division into a floating one,
now the rendered text looks better.
svn: r22553
2013-06-22 15:23:06 +00:00
Paul Franklin
1dc1f6c0c2
added SVN Id property, and SVN Id line if needed
...
svn: r22552
2013-06-21 20:28:39 +00:00
Vassilii Khachaturov
face94275c
4571: RTL support in fan chart
...
gramps/gui/utilscairo.py:
new file, currently holds just the warpPath() function,
taken from /usr/share/doc/python-cairo/examples/warpedtext.py,
with explanatory docs added.
gramps/gui/widgets/fanchart.py, class FanChartBaseWidget:
draw_text() method:
previous logic using cairo toy text API didn't support CTL text.
It has been removed, and replaced with a call to a new
method, draw_arc_text().
Flagged a subtle Unicode issue in the remaining old code,
for radial-oriented text, with a FIXME, I'll probably fix it
later as a separate issue.
create_map_rect_to_sector() static method:
create a transform to use with gui.utilscairo.warpPath(),
currently used in draw_arc_text().
Following Benny's code review I have annotated the algorithm
and made it hopefully clear, but I guess it could be reworked
into a better form if re-expressed with stacked transforms /
complex numbers / matrices for easier later maintenance.
Meanwhile I have used the same approach as the older code
in the file, good enough for a patch under this feature request.
The only issue remaining from the code review is whether
the create_map_rect_to_sector() function should be moved
to gui.utilscairo; see the bug thread.
svn: r22548
2013-06-21 14:13:40 +00:00
Tim G L Lyons
4ba97726a2
0006352: Bookmarking a source in the citation tree creates a blank bookmark. Disallow bookmarking a source in the Citation Tree View, and do not add sources to the history in the Citation Tree View.
...
svn: r22545
2013-06-20 16:43:43 +00:00
Paul Franklin
f3fc5c5257
6821: CLI asks forever when trying to overwrite while exporting
...
svn: r22542
2013-06-20 16:34:22 +00:00
Jérôme Rapinat
aa7516cbb4
6817: print should be now a function
...
svn: r22537
2013-06-20 14:27:33 +00:00
Jérôme Rapinat
fab092f6fd
6817: Enhancements for testing localized Relationship handlers (contribution by Fedir)
...
svn: r22535
2013-06-20 10:07:41 +00:00
Jérôme Rapinat
87499c96bc
Add Ukrainian relationship calculator (contributions by Fedir); not yet included on 4.0.x branch
...
svn: r22530
2013-06-20 07:30:05 +00:00
Jérôme Rapinat
dc690b7071
Add Ukrainian holidays (contributions by Fedir)
...
svn: r22529
2013-06-20 07:21:40 +00:00
Vassilii Khachaturov
8ca5d92883
Copied my 6812 fix port for gtk3
...
Integrated from gramps40 branch
svn: r22525
2013-06-19 20:29:57 +00:00
Benny Malengier
8b37ca4119
GTK3: convert deprecated code for the indicator in entryfield
...
svn: r22518
2013-06-19 06:56:06 +00:00
Paul Franklin
5c71b46283
6797: Alternate Names in Person Details Gramplet (patch by Heinz Brinker)
...
svn: r22505
2013-06-13 21:35:05 +00:00
Tim G L Lyons
3208db231d
0000860: GEDCOM: Space in gramps id fails to properly export/import
...
svn: r22501
2013-06-13 18:06:52 +00:00
Serge Noiraud
f80bf8eb15
Geography : Gtk.Menu didn't work with gtk3.
...
svn: r22488
2013-06-10 20:45:40 +00:00
Paul Franklin
ac730cf013
correct the filename in the "Id" line
...
svn: r22480
2013-06-04 21:25:36 +00:00
Benny Malengier
da93d7134b
There is no sourceref anymore, only citation
...
svn: r22468
2013-06-01 13:49:40 +00:00
Benny Malengier
d6c216bbd0
GEP 18: update fields in srcattrtype to what will be used in GEP18, so as to avoid translators seeing
...
non used fields (but best not to translate yet, this is trunk!)
svn: r22467
2013-06-01 09:53:17 +00:00
Paul Franklin
8755619584
6058: Ambiguous pdf output file format values [fix by Peter]
...
(this was already fixed in gramps34 20445)
svn: r22448
2013-05-28 20:52:59 +00:00
Benny Malengier
62da0fbaa9
GTK3: menu needs to survive function scope
...
svn: r22445
2013-05-28 15:31:49 +00:00
Benny Malengier
cc8b166138
Fix error in template map, key should be the types, not strings
...
svn: r22443
2013-05-28 10:17:31 +00:00
Benny Malengier
9b1af034fc
Use term source template, not source type
...
svn: r22442
2013-05-28 10:14:16 +00:00
Benny Malengier
b07717ad86
Split double field corresponding with log date in citatin object
...
svn: r22440
2013-05-28 09:50:53 +00:00
Benny Malengier
b7d1f6906c
Rationalize fields:
...
* consistent use of first/last
* no numbered entries, use (SHORT) where needed
* consistent use of single or plural (AUTHOR, PAGES)
svn: r22439
2013-05-28 09:26:32 +00:00
Benny Malengier
b2b6bcb56a
Use for description of source type same order as in the csv.
...
Add some comments lines with explanation
svn: r22438
2013-05-27 20:26:48 +00:00
Benny Malengier
9a0bc027fe
6781: Allow editing in displaytabs for some fields
...
svn: r22437
2013-05-27 19:59:27 +00:00
Benny Malengier
77ceea2931
Remove errors due to too much spaces in fields
...
Start type at a save value of 100
svn: r22436
2013-05-27 19:45:30 +00:00
John Ralls
2ffbd49b55
Remove extra Id line from maclocale.py
...
svn: r22431
2013-05-27 17:42:11 +00:00
Benny Malengier
a5700a28df
6780: Add privacy column to displaytabs
...
Extend to grouped displaytabs, and to specific family versions of tabs
svn: r22430
2013-05-27 14:03:37 +00:00
Benny Malengier
8f412bae1c
6780: Add privacy column to displaytabs
...
svn: r22428
2013-05-27 12:16:59 +00:00
Benny Malengier
188587bbaf
Make it possible to show private icon in displaytabs
...
Enable this already in Attribute and SrcAttribute
svn: r22427
2013-05-27 09:35:31 +00:00
Benny Malengier
0a8c9bc2e2
Fix bad scaling in address editor
...
svn: r22426
2013-05-26 19:37:16 +00:00
Benny Malengier
bf29e57039
2332: Allow reorder of Data in the Data tab of Source: make Data SourceAttribute, which have sourcetype,
...
link with GEPS 018: Evidence
This is step 1 needed for GEPS 018. All types are defined needed to evidence style references
This commit also contains fix for 6777: Crash on export to GEDCOM when there are addresses
svn: r22423
2013-05-26 19:28:57 +00:00
Paul Franklin
3d9559cfae
6769: gramps crash for ancestor chart report
...
svn: r22422
2013-05-26 18:40:09 +00:00
Benny Malengier
2b5d7efdce
Some errors during development hang Gramps. Putting all in try block to avoid this
...
svn: r22420
2013-05-25 19:36:25 +00:00
John Ralls
25c5e6fbc8
Bugs 6099 & 6472: Don't leave zombies and report errors
...
Update spawnve() to subprocess.check_output()
Pop an ErrorDialog if the system's open command fails in
open_file_with_default_application()
svn: r22417
2013-05-24 23:36:18 +00:00
Paul Franklin
6a4a4a3a9c
fix string FIXME, add context for translation, as string freeze is over
...
svn: r22415
2013-05-23 17:20:56 +00:00
Benny Malengier
7792f0f5de
6724: Person selected jumps forward to next person inlist
...
svn: r22411
2013-05-22 21:23:22 +00:00
Benny Malengier
98ef6cfcb3
6670: Some entries into tips.xml are increasing size of the 'Tip of the day' dialog
...
svn: r22408
2013-05-22 11:59:16 +00:00
Benny Malengier
266a2936bf
6325: Cannot right-click on tables in Quick Views
...
svn: r22406
2013-05-22 11:07:23 +00:00
Benny Malengier
bf9257bb92
6754: Gramps Python 2.7 close when chosing a place by typing the place name in the list
...
svn: r22380
2013-05-20 19:26:27 +00:00
Jérôme Rapinat
3fe84ba8fe
add Ukrainian date handler to SVN for testing, not enabled yet (__init__.py), contribution by Fedir Zinchuk
...
svn: r22367
2013-05-18 15:25:51 +00:00
Paul Franklin
76a7d7adde
1780: End of Line Report options window - changing Output Format cause change active tab to "report options"
...
This also happens on every other report, of course.
(I will commit this to gramps40 when its "code freeze" is over.)
svn: r22358
2013-05-17 16:11:14 +00:00
Paul Franklin
0d38f4f5a4
don't start a GraphViz report on the "Paper Options" tab
...
None of the other reports start on the "Paper Options" tab.
(I will commit this to gramps40 when its "code freeze" is over.)
svn: r22354
2013-05-17 15:24:39 +00:00
Tim G L Lyons
9a9f47dc28
0006746: Problem in Portable version immediately after upgrading to 3.4.4-1 from 3.3.1.1
...
svn: r22345
2013-05-17 11:30:06 +00:00
Nick Hall
574384268e
Fix ListModel double click event
...
svn: r22306
2013-05-14 18:13:27 +00:00
Tim G L Lyons
076fdac5a7
0006541: Gramps crashes during import gedcom. Ignore empty ALIA alias name.
...
svn: r22298
2013-05-14 15:42:42 +00:00
Tim G L Lyons
5999f7c0a1
0006394: GEDCOM import errors truncated too much. Error message extended to 66 chars as suggested (and continuation lines formatted to fall under initial line)
...
svn: r22295
2013-05-14 15:02:57 +00:00
Tim G L Lyons
49645c6957
Encoding error in date parsing literals
...
svn: r22288
2013-05-13 23:11:00 +00:00
Tim G L Lyons
8744e93fd9
0006195: Import from pro-gen. Fix citations and sources. Also other fixes: Attach SOUR TEXT as note on citation. Ensure gramps_ids are not duplicated (change map record so it maps from Pro-Gen ID to handle), and format gramps_id according to the user's preference setting. Store 'aktenr' as REFN attribute or data. Store TITL (and _TITL2 and _TITL3) as comma separated Title. Store patronymic correctly. Prevent duplication of Baptism source text. Store RESI event for person address. Store family 'Relatie code' (FAM REFN/FAM CODE) as REFN. Note testing is limited by availability of test data.
...
svn: r22287
2013-05-13 23:05:17 +00:00
Paul Franklin
b0a3666e5a
any documentation is better than none
...
svn: r22283
2013-05-13 22:21:47 +00:00
Serge Noiraud
04e3543274
Geography : bug #6718 : The active place must have valid coordinates to set center and zoom.
...
svn: r22282
2013-05-13 20:10:04 +00:00
Paul Franklin
6ec4227248
add name-format option and enable translated output for this report
...
svn: r22272
2013-05-12 22:35:09 +00:00
Tim G L Lyons
9c847462a0
0006515: Error building narrated web
...
Circular references (either direct or indirect) involving media->citation->media or media->citation->source->media cause NarrativeWeb to crash with "maximum recursion depth exceeded". Fix NarrativeWeb when constructing list of objects to be output by checking whether a media object has already been encountered.
Also fixes
0006418: Navweb crashes alpha4
0006630: Export Erzählende Webseite
0006643: Crash during making webstek report
0006652: [NarrativeWeb] Circular References lead to endless recursion (crash)
0006654: Unable to created narrated web report
svn: r22270
2013-05-12 16:45:06 +00:00
Paul Franklin
fcd2296461
enable translated output for this report
...
svn: r22263
2013-05-11 19:22:17 +00:00
Paul Franklin
0ce4b749d0
more deferred translation for the relationship calculator
...
This enables it for spouse strings, which are done in the
main gen/relationship.py relationship calculator and not in
one of the language-specific relationship calculators
svn: r22261
2013-05-11 19:20:12 +00:00
Benny Malengier
9aa9d43856
6580: Merging Media Notes fails
...
svn: r22258
2013-05-11 17:43:04 +00:00
Benny Malengier
7edd984b91
6716: Add extra surname, on tab away from field, value is not stored
...
svn: r22253
2013-05-11 12:07:02 +00:00
Benny Malengier
7f264b91f5
6665: New errors when using pygobject 3.8: Cannot get n_columns on flatbasemodel
...
svn: r22245
2013-05-10 16:03:37 +00:00
Tim G L Lyons
98bfecc918
0006713: Databases written with pickle protocol 3 (Python3) should not be opened with pickle protocol 2 (Python2). Also give warning when about to upgrade a Python2 database to Python3.
...
svn: r22243
2013-05-10 14:38:51 +00:00
Tim G L Lyons
ab15b85566
Fix to incorrect svn merge in commit 22219 see 0006686: Wrong bsddb upgrade message given
...
svn: r22238
2013-05-10 09:25:27 +00:00
Nick Hall
cf04a983a4
Fix scroll to mark bug on added page
...
svn: r22236
2013-05-10 00:07:16 +00:00
Nick Hall
7ba9ca93da
Simple table fix for numneric and checkbox columns
...
svn: r22234
2013-05-09 23:52:56 +00:00
Paul Franklin
620ba618c2
defer translation for one more date, and cleanup translation
...
svn: r22232
2013-05-09 22:27:41 +00:00
Nick Hall
0a22c95aa2
Convert numeric columns to unicode in simple table
...
svn: r22230
2013-05-09 21:47:42 +00:00
Benny Malengier
11e45f293f
6259: Harcoded 'raw' characters into listing files are not properly displayed into Addons dialog
...
Gramps-addons listings has been fixed needing this change to have this working
svn: r22228
2013-05-09 20:47:04 +00:00
John Ralls
86b7a99101
Fix path left over from debugging session
...
svn: r22225
2013-05-09 19:32:47 +00:00
Tim G L Lyons
735adfb0c1
0006529: Cancelling database upgrade can corrupt the database. Ensure database is unlocked when cancelling upgrade. Make links in dialogues into clickable hyper-links. Ensure dialogue windows stays on top. Reword warning and error messages to use Bsddb version, schema version and Family Tree consistently, to be clearer about the choice the user is being offered, and to provide hyper-links to more information.
...
svn: r22219
2013-05-09 17:24:40 +00:00
Paul Franklin
547f0cacf7
enable deferred translation for this Span representation
...
svn: r22216
2013-05-09 17:04:55 +00:00
Paul Franklin
d8e3e0fb6f
enable translated output for this report
...
svn: r22208
2013-05-09 05:03:52 +00:00
Paul Franklin
ce44a4e57a
enable deferred translation for a Span representation
...
svn: r22206
2013-05-09 05:01:47 +00:00
Paul Franklin
612b893956
better PEP-0008 (trans_text_ ==> trans_text)
...
PEP-0008 reserves the use of a trailing underscore for names
which conflict with Python keywords, which this doesn't.
The goal is to have a permanent name which is unique across
the gramps namespace, since it is defined (in po/genpot.sh
and po/update_po.py) as a keyword to flag strings to be put
into the translation "catalog" file (gramps.pot).
The new keyword "trans_text" is still unique. (Also "_T_".)
svn: r22201
2013-05-07 18:59:43 +00:00
Paul Franklin
31699972b8
enable translated output for this report
...
svn: r22197
2013-05-07 17:17:22 +00:00
Paul Franklin
7187eb8ab6
enable deferred translation for the relationship calculator
...
svn: r22195
2013-05-07 17:14:18 +00:00
Benny Malengier
4621d09d4d
6659: Justified paragraph layout does not work in "Custom Book Text" in book report
...
svn: r22190
2013-05-07 12:35:33 +00:00
Paul Franklin
7f411bb964
enable translated output for this report
...
svn: r22189
2013-05-06 19:47:00 +00:00
Nick Hall
9cddf824a2
6582: Fix problem with warning message
...
svn: r22181
2013-05-05 18:17:52 +00:00
Nick Hall
a268271833
Fix participants column in event selector
...
svn: r22176
2013-05-04 23:10:58 +00:00
John Ralls
73d1d080b5
GrampsLocale: When checking translations check full locale first
...
So that e.g. en_GB will be preferred over en if en_GB is in fact the
desired translation.
svn: r22173
2013-05-04 20:23:47 +00:00
John Ralls
d5537ab93a
Add translation to gen.merge.diff
...
svn: r22172
2013-05-04 20:23:37 +00:00
Paul Franklin
16dbd437e1
enable translation of the "Endnotes" section header-word for these reports
...
svn: r22171
2013-05-04 19:30:40 +00:00
Paul Franklin
52f2b9e46a
more flexible multi-column format for BooleanListOption
...
svn: r22169
2013-05-04 18:54:38 +00:00
Jérôme Rapinat
4ecedd6148
6672: Gallery: 'TreePath' object does not support indexing; it also works with pygobject 3.3.2
...
svn: r22162
2013-05-04 14:30:14 +00:00
Jérôme Rapinat
0509177b08
6576: add an optional helptext as tooltip on add_pos_int(); provide a list and sample of pango convenience markups and combinaisons
...
svn: r22159
2013-05-04 06:14:08 +00:00
Paul Franklin
da7f594765
enable translated output for this report
...
svn: r22156
2013-05-04 02:07:51 +00:00
Paul Franklin
da72bfbafb
disambiguate the local report argument name (vs. the similar global name)
...
svn: r22154
2013-05-03 19:17:56 +00:00
Jérôme Rapinat
eb0bbd43d1
6668: number of arguments for notify_db_error() into Export assistant
...
svn: r22148
2013-05-02 18:15:00 +00:00
Jérôme Rapinat
c685be2973
6656: division on hexadecimalcolor
...
svn: r22146
2013-05-02 17:25:24 +00:00
Jérôme Rapinat
4cb0e92643
6576: Set custom pango markup can generate GtkWarning, ValueError or TypeError
...
svn: r22144
2013-05-02 15:43:19 +00:00
Benny Malengier
9f61c09829
6641: Complete Individual Report crashes gramps
...
svn: r22140
2013-05-02 13:26:21 +00:00
Benny Malengier
af584bb950
6659: Justified paragraph layout does not work
...
Actually: it works always, but pango does not justify partial lines...
svn: r22138
2013-05-02 08:51:08 +00:00
Paul Franklin
6a15e552ef
enable translated output for this report
...
svn: r22136
2013-05-01 17:39:37 +00:00
Paul Franklin
3ab598d8f9
enable translated output for this report
...
svn: r22134
2013-05-01 17:38:28 +00:00
Paul Franklin
eca2313b31
enable translated output for this report
...
svn: r22132
2013-05-01 17:36:56 +00:00
Jérôme Rapinat
bdafcda182
add New Zealand holidays (contribution by kerobe aka Ken B)
...
svn: r22127
2013-05-01 08:08:13 +00:00
Benny Malengier
c4e7179bfa
6624: import an exported XML crashes gramps 4.0 - Actually a logic bug python 2 does not crash on.
...
svn: r22123
2013-04-30 13:21:27 +00:00
Paul Franklin
dc39360017
make the name consistent, across gramps
...
svn: r22121
2013-04-29 22:10:18 +00:00
Paul Franklin
c3ce490fa2
enable translated output for this report
...
svn: r22119
2013-04-29 19:26:41 +00:00
Jérôme Rapinat
a243a9bfac
5751: use "Minimum Confidence" label into citation sidebar filter, it does not match only one level
...
svn: r22116
2013-04-29 07:55:56 +00:00
Paul Franklin
a831bb0113
enable translated output for this report
...
svn: r22114
2013-04-28 19:28:42 +00:00
Paul Franklin
e709c127f6
enable multi-column paper choices, in report output
...
svn: r22106
2013-04-27 15:48:02 +00:00
Paul Franklin
f5eae77246
typos
...
svn: r22095
2013-04-24 01:01:47 +00:00
Paul Franklin
ad6ed26f70
enable translated output for this report
...
svn: r22093
2013-04-24 00:12:36 +00:00
Paul Franklin
8e76c93f25
change GuiFamilyOption precedence to match GuiPersonOption
...
(that is, use any "overridden" value, then any "active"
family, then any family of the "active" person, and only
then fall back on others, such as a saved-away family option
value, or any family of the user's "default" person)
svn: r22090
2013-04-23 18:07:20 +00:00
Jérôme Rapinat
2050e3f896
typo on rev22069
...
svn: r22085
2013-04-23 05:41:02 +00:00
Paul Franklin
647bd5800c
enable translated output for this report
...
svn: r22084
2013-04-23 04:54:15 +00:00
Paul Franklin
f4cbda07ec
enable translated output for this report
...
svn: r22082
2013-04-23 04:53:15 +00:00
Paul Franklin
346f982b27
enable translated output for this report
...
svn: r22080
2013-04-23 04:52:08 +00:00
Paul Franklin
6aeb49aefc
enable translated output for this report
...
svn: r22078
2013-04-23 04:51:00 +00:00
Paul Franklin
be53411b39
enable translated output for this report
...
svn: r22076
2013-04-23 04:48:57 +00:00
Paul Franklin
df431da250
reenable translated report title
...
svn: r22074
2013-04-22 18:17:45 +00:00
Jérôme Rapinat
49c0af18ee
need context differences for the "To Do" translation string (patch by Harmen Huizinga)
...
svn: r22069
2013-04-22 07:31:46 +00:00
Jérôme Rapinat
8a4f89f8e3
from future imports must occur at the beginning of the file
...
svn: r22067
2013-04-22 07:16:03 +00:00
Jérôme Rapinat
4f61f03bec
indentation
...
svn: r22066
2013-04-22 07:14:27 +00:00
John Ralls
5db0763970
GrampsLocale: Fix 'Foo has no attribute _Foo__get_type' execption
...
From moving the set_locale function to the superclass. One can get
carried away with enforcing private attributes...
svn: r22062
2013-04-21 17:49:08 +00:00
John Ralls
143dcc08fa
Bug 6533: Report plugin name when failing to load an add-on translation
...
Message now says (e.g.) WARNING: Plugin ExtendedAttributes has no translation for any of your configured languages, using US English instead
svn: r22039
2013-04-20 23:10:13 +00:00
John Ralls
2e453b678a
GrampsLocale: Add explanatory comment
...
After I stopped myself from fixing something that was done right!
svn: r22038
2013-04-20 23:10:06 +00:00
John Ralls
a579fd1ad9
GrampsLocale: Mac: Align flow of user preferences to match other OSes.
...
Also add diagnostics to make Tim Lyons happy.
svn: r22037
2013-04-20 23:10:01 +00:00
John Ralls
2054c0ad46
GrampsLocale: Win32: Clean up extraneous conditions, don't set self.language prematurely
...
svn: r22036
2013-04-20 23:09:57 +00:00
John Ralls
a2e17b7b4a
GrampsLocale: Posix: Move LC_MESSAGES check to setting self.language
...
svn: r22035
2013-04-20 23:09:51 +00:00
John Ralls
1832f7bdb5
GrampsLocale: Add some debugging messages.
...
Move the warning about failure to after the last attempt.
svn: r22034
2013-04-20 23:09:46 +00:00
John Ralls
9daf584c74
GrampsLocale: Init_from_environment: Change precedence
...
LC_MESSAGES takes precedence over LC_CTYPE for setting self.lang
$LANGUAGES overrides $LANG, $LC_FOO for setting translations
svn: r22033
2013-04-20 23:09:41 +00:00
John Ralls
e9770ef48f
GrampsLocale: Fix indentation error
...
svn: r22032
2013-04-20 23:09:36 +00:00
John Ralls
7a17f9b420
MacLocale: Make sure the overrides work correctly
...
And that we follow the user's preferences correctly or issue a warning that we've defaulted to US English if we can't.
svn: r22031
2013-04-20 23:09:31 +00:00
John Ralls
fefe1f842a
Supply a concatstrings PostScript function
...
To allow postscript documents to work without Ghostscript.
svn: r22030
2013-04-20 23:09:26 +00:00
John Ralls
b7f6055af8
Use GrampsLocale.encoding to get the code set instead of locale
...
svn: r22029
2013-04-20 23:09:21 +00:00
John Ralls
467a9b1c43
GrampsLocale: Replace gen.plug.utils gfloat()
...
With GrampsLocale.float().
Also remove gen.plug.utils gformat(), which was written to work
around string formatting with %f localizing the decimal point,
which it doesn't do. locale.format() does, but it wasn't being
used anyway.
svn: r22028
2013-04-20 23:09:16 +00:00
John Ralls
769203162c
GrampsLocale: Wrap locale.format and locale.format_string
...
To concentrate the locale dependency in grampslocale.py
svn: r22027
2013-04-20 23:09:09 +00:00
John Ralls
963712e978
Remove some imports of locale where nothing it exports was used.
...
svn: r22026
2013-04-20 23:09:02 +00:00
John Ralls
0a6ff725ac
Take the localization debug info from GrampsLocale instead of locale
...
svn: r22025
2013-04-20 23:08:53 +00:00
John Ralls
6400b8b29c
GrampsLocale: Add GrampsLocale attributes numeric and currency
...
svn: r22024
2013-04-20 23:08:48 +00:00
John Ralls
6804278fc1
MacLocale: Fix missing subscript.
...
svn: r22023
2013-04-20 23:08:42 +00:00
Paul Franklin
dc128110bc
typos
...
svn: r22021
2013-04-19 16:58:24 +00:00
Paul Franklin
3a06d7b204
typo
...
svn: r22017
2013-04-18 20:56:27 +00:00
Paul Franklin
9804301762
give the "ahnentafel" report a user-settable title string
...
(since many English speakers do not know what "ahnentafel" means)
svn: r22015
2013-04-18 19:08:46 +00:00
Paul Franklin
f0ea234060
add name-format option to the three GraphViz reports
...
svn: r22013
2013-04-18 17:16:47 +00:00
Jérôme Rapinat
57f6f389a8
6645: unable to do Spanish kinship report, 4185: Julio's patch
...
svn: r22011
2013-04-18 09:06:38 +00:00
Paul Franklin
cceb28c5b9
refactor: move name_format into stdoptions.py
...
svn: r22009
2013-04-17 20:49:50 +00:00
Paul Franklin
12777d3fb9
6623: funny GUI report-language display
...
svn: r22006
2013-04-16 22:19:27 +00:00
Paul Franklin
2ded1e5e8a
6462: GEDCOM import fails (patch by Enno Borgsteede)
...
svn: r22000
2013-04-15 22:00:12 +00:00
Benny Malengier
86686c764b
6618: Export CSV crashes gramps 4.0 beta
...
svn: r21998
2013-04-15 11:01:08 +00:00
Benny Malengier
83fb5d353d
6635: retry of bug 6443, exec missing globals
...
svn: r21996
2013-04-15 09:40:39 +00:00
Benny Malengier
07b84e5e11
6623: funny GUI report-language display
...
svn: r21995
2013-04-15 09:15:45 +00:00
John Ralls
5f98900c27
Remove unnecessary (and broken in Py3) import
...
svn: r21977
2013-04-13 14:31:30 +00:00
Nick Hall
bc63594df4
6622: Change regular expression rules to use search rather than match
...
svn: r21976
2013-04-13 14:30:21 +00:00
John Ralls
00aa00fbf5
GrampsLocale: Remove get_translation()
...
Only one base translation per locale. To set up a different locale
on any axis (locale, domain, directory, or languages) instantiate a
secondary locale by calling GrampsLocale() with the appropriate
arguments.
svn: r21968
2013-04-12 22:32:11 +00:00
John Ralls
56254d4a14
GrampsLocale: Integrate libtranslate functions into GrampsLocale
...
And remove libtranslate
svn: r21967
2013-04-12 22:27:54 +00:00
John Ralls
665206df85
GrampsLocale: Extract 2 reporting functions
...
set_translation() to the Report class
Add a new module stdoptions to gen.plug.report with function
add_localization_option(). The intent of stdoptions is to reduce the code-copying among reports; this is the first bit.
svn: r21966
2013-04-12 22:27:44 +00:00
John Ralls
27f667e343
GrampsLocale: Add get_date and get_type functions
...
To enable GrampsLocale to replace libtranlate.py's Translation
class.
svn: r21965
2013-04-12 22:27:32 +00:00
John Ralls
db66851363
GrampsLocale: Add date_parser and date_displayer properties
...
svn: r21964
2013-04-12 22:27:23 +00:00
John Ralls
6f078627ca
MacLocale: Capture collation qualifications
...
svn: r21963
2013-04-12 22:27:15 +00:00
John Ralls
2c532baf1c
GrampsLocale: Make dictionaries class variables
...
lang_map and country_map
svn: r21962
2013-04-12 22:27:05 +00:00
John Ralls
a422b30fd6
GrampsLocale: Refactor/clean up initialization
...
Includes moving encoding to be a class variable.
svn: r21961
2013-04-12 22:26:55 +00:00
Paul Franklin
25315ceece
add person-index entries, for book report
...
svn: r21953
2013-04-10 21:56:10 +00:00
Paul Franklin
87c11877f4
add TOC and index entries, for book report
...
svn: r21952
2013-04-10 20:26:35 +00:00
Paul Franklin
d96c766cb1
add TOC entry, for book report
...
svn: r21949
2013-04-10 19:05:41 +00:00
Paul Franklin
3702704ef2
missing import
...
svn: r21948
2013-04-10 19:01:14 +00:00
Nick Hall
36f27ebefb
6599: Fix python3 error
...
svn: r21945
2013-04-10 17:39:31 +00:00
Nick Hall
aa0e413d5f
6599: Add regex parameter to rules which override the constructor
...
svn: r21943
2013-04-10 13:25:02 +00:00
Peter Landgren
a71e8f5689
Update for spelling of Family Tree.
...
svn: r21938
2013-04-10 09:34:27 +00:00
Nick Hall
59d9bc25c0
6599: Add regular expression option to rules using the match_substring method
...
svn: r21935
2013-04-09 13:52:09 +00:00
Jérôme Rapinat
f91db9f5e1
6608: typo
...
svn: r21931
2013-04-09 13:49:30 +00:00
Paul Franklin
d2c5629b9d
enable "indent spouse" option to /not/ indent a spouse
...
svn: r21925
2013-04-08 15:07:53 +00:00
Nick Hall
cb028cea56
6599: Fix matching empty fields in empty locations using regular expressions
...
svn: r21913
2013-04-06 17:27:26 +00:00
Jérôme Rapinat
8fbddda976
merge minor fixes from 4.0.x
...
svn: r21908
2013-04-06 12:01:08 +00:00
John Ralls
01b4b7dc4e
GrampsLocale: Ensure self.encoding exists before testing it
...
svn: r21899
2013-04-05 23:40:55 +00:00
John Ralls
e21ba6c432
GrampsLocale: Clean up _init_from_environment even more
...
And do it right this time!
svn: r21898
2013-04-05 23:40:49 +00:00
Tim G L Lyons
445f10396a
Put maxsize back
...
svn: r21896
2013-04-05 17:14:32 +00:00
Tim G L Lyons
60b57a996e
write.py: After the bsddb version has been upgraded, if the schema versions also needs to be upgraded, output a separate dialog asking the user whether he wants to upgrade the schema. (As requested by Benny).
...
svn: r21888
2013-04-05 10:54:35 +00:00
John Ralls
b72ddb7f47
GrampsLocale: Improve windows handling of no locale
...
svn: r21882
2013-04-04 21:06:19 +00:00
John Ralls
04c146669b
GrampsLocale: Ensure posix collation and calendar are set correctly
...
svn: r21881
2013-04-04 21:06:09 +00:00
John Ralls
fc23bbd93a
GrampsLocale: Better handling of unset $LANG or $LANG == 'C'
...
svn: r21880
2013-04-04 21:04:48 +00:00
Benny Malengier
0daf403859
6579: Check and Verify crashes
...
svn: r21879
2013-04-04 20:08:30 +00:00
Benny Malengier
689e4d4b47
formatting cleanup
...
svn: r21875
2013-04-04 10:50:37 +00:00
Benny Malengier
fe6fb5e67a
6590: gramps40 asciidoc.py crashes for at least some reports
...
svn: r21873
2013-04-04 10:13:26 +00:00
Benny Malengier
4bf42dc5ca
6591: converted bytes of media in a string to show in quickview
...
svn: r21871
2013-04-04 09:53:54 +00:00
Benny Malengier
7b7836267a
More exception text
...
svn: r21869
2013-04-04 09:31:39 +00:00
Benny Malengier
0c2c56ec4c
fix python3 error and improve upgrade text
...
svn: r21867
2013-04-04 09:26:53 +00:00
Jérôme Rapinat
df1ab10041
typo for handling one translated string
...
svn: r21862
2013-04-03 16:52:39 +00:00
John Ralls
a8c7156b76
GrampsLocale: Fix MSWin Syntax error
...
Can't do everything the C way :-(
svn: r21858
2013-04-03 03:55:17 +00:00
John Ralls
ea9ddaba69
GrampsLocale: Win: Check both forward and reverse mslocale
...
svn: r21854
2013-04-02 20:25:08 +00:00
John Ralls
4dc31ff808
ImportProGen: Fix "with" statement syntax.
...
svn: r21853
2013-04-02 20:25:03 +00:00
Tim G L Lyons
f2809f4249
0006529: Cancelling database upgrade can corrupt the database. Check whether the bsddb version has changed (or was originally unknown). If it is an upgrade, ask the user whether he has made a backup, and is ready to upgrade. If so, made a zip backup and open the database with the new bsddb version. Make messages on the dialogues more explicit with the version numbers mentioned.
...
svn: r21852
2013-04-02 16:06:36 +00:00
Paul Franklin
4be0f93da9
send a CLI error string to stderr
...
svn: r21849
2013-04-02 05:07:41 +00:00
John Ralls
0196351c25
GrampsLocale: Report the plugin when complaining
...
About not being able to find a translation.
Well, that's usually the source of this warning. With an unsupported
locale it will say "share".
svn: r21845
2013-04-02 00:05:56 +00:00
John Ralls
a15e676eef
[Bug 6495] Translator class should use english date
...
When "English" is set via libtranslate.
svn: r21844
2013-04-02 00:05:50 +00:00
John Ralls
a3cc615398
GrampsLocale: Fix NoneType error
...
svn: r21839
2013-04-01 17:34:26 +00:00
Paul Franklin
4ceba9fd03
translate a few CLI strings
...
svn: r21837
2013-04-01 14:58:22 +00:00
John Ralls
b10de7808d
[Bug 6553] Get Datehandler base language from GRAMPS_LOCALE.calendar
...
svn: r21831
2013-03-31 22:46:31 +00:00
John Ralls
0cab5e576c
GrampsLocale: Better initialization from environment
...
Splits out Win32 and Posix initializations to take account of the
fact that on Win32 setlocale() ignores environment variables and on
Posix it's not necessary to check them because setlocale() does the
right thing.
svn: r21830
2013-03-31 22:46:25 +00:00
John Ralls
2fe5255b11
ImportProGen: Prevent leaking file handle
...
svn: r21829
2013-03-31 22:46:17 +00:00
Tim G L Lyons
54c228882c
0006483: Listing the Family Trees can corrupt them. Changed get_dbdir_summary to exit if the bsddb_version is not the current bsddb and to return both BSDDB and schema version. Changed family_tree_summary to output both versions. Changed argparser and arghandler to additionally support -t (table) option to list family tree in tab delimited format.
...
svn: r21828
2013-03-31 22:09:41 +00:00
Paul Franklin
a88de7bf8a
6589: no TOC entry for b.r. multi-page no-title ancestor/descendant trees
...
svn: r21820
2013-03-30 21:01:21 +00:00
Paul Franklin
262dae3374
6568: graphic descendant tree report inserts a bogus title
...
svn: r21818
2013-03-30 04:33:15 +00:00
Benny Malengier
9ad832be33
6568: graphic descendant tree report inserts a bogus title
...
svn: r21816
2013-03-29 20:49:17 +00:00
Benny Malengier
491885b419
clarify use of all_handles methods
...
svn: r21813
2013-03-29 20:02:54 +00:00
Benny Malengier
7be12778b2
6417: alpha4 filtering screws up Export
...
svn: r21811
2013-03-29 19:39:21 +00:00
Benny Malengier
33ec71c6f7
6492: Verify crashes with python 3
...
svn: r21809
2013-03-29 16:59:04 +00:00
Benny Malengier
95e86802c7
6460: Crash during Extract Event Description
...
svn: r21807
2013-03-29 15:56:54 +00:00
Benny Malengier
415d6c6367
6346: If a exporter plugin crashes, the Export Assistant can't be closed
...
svn: r21805
2013-03-29 13:18:35 +00:00
Tim G L Lyons
df45f4645b
0006578: referencedbyselection.py process_object calls non-existant process_note method
...
svn: r21804
2013-03-28 23:32:56 +00:00
Jérôme Rapinat
1937a9932b
6369: BooleanOption does not support underline
...
svn: r21800
2013-03-28 18:43:26 +00:00
Tim G L Lyons
d6f621fe72
0006544: No test for checking if Place handle exists when looking at media reference via proxy
...
svn: r21798
2013-03-28 18:29:59 +00:00
Jérôme Rapinat
ba97c071ef
minor syntax error
...
svn: r21794
2013-03-28 18:09:34 +00:00
Benny Malengier
900c2e9ff8
6369: Accelerator keys, Gtk and User Interface
...
svn: r21792
2013-03-28 16:52:47 +00:00
Benny Malengier
2636d36245
6340: In Family Tree Manager window, naming a tree which takes it out of view does not scroll to new name
...
svn: r21790
2013-03-28 16:23:26 +00:00
Benny Malengier
1a36e77b0c
6577: Mulltiple drop from clipboard on embeddedlist not working
...
svn: r21788
2013-03-28 16:02:10 +00:00
Tim G L Lyons
16ba9f25de
referencedbyselection.py. 0006493: crash during Calculate Preview of a filtered XML export.
...
svn: r21787
2013-03-28 14:32:11 +00:00
Benny Malengier
3783a8039b
6569: transferring from the clipboard causes gramps40 svn 21740 to crash
...
svn: r21783
2013-03-28 13:53:52 +00:00
Benny Malengier
f4d503744f
6319: Remove libgrdb
...
svn: r21780
2013-03-28 12:24:36 +00:00
Benny Malengier
c64f64657f
Python3 UnicodeDecodeError in python3 on unpickling data saved in python2
...
svn: r21777
2013-03-28 10:47:48 +00:00
Benny Malengier
f59b8fb7d8
5163: Another crash in same editor.
...
svn: r21775
2013-03-28 10:02:36 +00:00
Benny Malengier
ccb23bd7c4
6496: GUI Export fails in gramps40
...
svn: r21773
2013-03-28 09:09:20 +00:00
Benny Malengier
c45a2a0e88
6443: try to use remove unused objects tool
...
svn: r21772
2013-03-27 19:57:45 +00:00
Benny Malengier
e670f27f3c
support python 3
...
svn: r21769
2013-03-27 19:56:43 +00:00
Benny Malengier
dee6a9b829
6402: Error in ValidatedMaskedEntry widget
...
svn: r21768
2013-03-27 18:05:45 +00:00
Paul Franklin
e86bd066c1
6561: v3.4.3 NarWeb creation fails for German, Swedish
...
svn: r21766
2013-03-27 17:01:17 +00:00
Benny Malengier
aac3f0d2e3
6484: IndexError for sort_data/column on quick view table
...
svn: r21762
2013-03-27 14:22:20 +00:00
Benny Malengier
cd6a2b70c4
6470: Crash by filtering with filter bar in person tree view
...
svn: r21759
2013-03-27 13:47:04 +00:00
Tim G L Lyons
f431346394
0006564: svn 21740 restores bug 0006411 - Navweb crashes during creation of Media pages
...
svn: r21755
2013-03-26 19:29:13 +00:00
John Ralls
f432853dc4
GrampsLocale: Separate self.encoding from sys.stdout.encoding
...
Because python standard library functions encode to
locale.getpreferredencoding or sys.getdefaultencoding, not to
sys.stdout.encoding.
svn: r21753
2013-03-26 19:16:49 +00:00
Paul Franklin
e142003601
restore SVN number to "gramps -v" output
...
svn: r21751
2013-03-26 19:01:54 +00:00
Paul Franklin
c8a6b91113
slightly better CLI help
...
svn: r21750
2013-03-26 17:50:43 +00:00
Benny Malengier
bd87b3f310
6501: Cannot crop via mouse cursor into Media reference editor
...
svn: r21742
2013-03-25 20:04:24 +00:00
Benny Malengier
dc054763c3
6528: Place Names with & in name fail to display
...
svn: r21741
2013-03-25 14:31:18 +00:00
Nick Hall
b4b9300f6d
Fix literals. Use logging for warnings.
...
svn: r21739
2013-03-25 13:35:08 +00:00
Paul Franklin
bd1020314e
totally revert the whole 21728/21729 open=>io.open changes
...
svn: r21734
2013-03-24 22:27:11 +00:00
Paul Franklin
c34610e60d
revert 21728/21729 open=>io.open change, for Windows
...
svn: r21733
2013-03-24 17:46:16 +00:00
Paul Franklin
b5d75c54d4
modify (semi-revert) 21728/21729 open=>io.open change, for Windows
...
svn: r21730
2013-03-24 15:48:36 +00:00
Paul Franklin
4db73f0422
more open=>io.open changes, as John advised
...
svn: r21729
2013-03-24 00:11:05 +00:00
Nick Hall
5adc2102a2
Add Tag class to CallbackManager
...
svn: r21727
2013-03-23 22:26:35 +00:00
Jérôme Rapinat
c4d6d17d69
6544: add warning if place on event is missing by using proxies sequence
...
svn: r21724
2013-03-23 17:14:24 +00:00
Paul Franklin
8ed298daa0
another open=>io.open change, as John advised
...
svn: r21720
2013-03-23 15:25:53 +00:00
Paul Franklin
0c46e5d91a
slight tweaks to booklist format
...
svn: r21719
2013-03-21 20:46:46 +00:00
Paul Franklin
2c41488ea3
CLI typos and slight code cleanup
...
svn: r21712
2013-03-20 16:16:04 +00:00
Jérôme Rapinat
9be852fe2c
4687: missing content migration...
...
svn: r21711
2013-03-20 14:06:59 +00:00
Jérôme Rapinat
f97c241af6
4687: global name 'warn' is not defined
...
svn: r21706
2013-03-20 13:55:18 +00:00
Nick Hall
e3193c7511
Fix bug in citations bottombar gramplet
...
svn: r21703
2013-03-19 23:15:35 +00:00
John Ralls
b51b6b59a6
TreeBaseModel: Avoid TypeError when bisecting
...
svn: r21696
2013-03-19 18:22:35 +00:00
John Ralls
548507008b
GrampsLocale: Ensure correct stdout encoding
...
Replace stdout with one that uses a transcoding Streamwriter. This
better handles differences between Py2 and Py3 than does trying to
encode strings prior to output. In particular Py3's default stdout
demands unencoded strings and prints byte-strings when one tries to
pre-encode them.
svn: r21695
2013-03-19 18:22:19 +00:00
John Ralls
796b2da855
GrampsLocale: Use glocale.lang or glocale.language[0]
...
To get the default localization instead of locale.getlocale() or
glocale.get_translation().language().
svn: r21694
2013-03-19 18:21:58 +00:00
John Ralls
ec787da3fa
GrampsLocale: Prevent some AttributeErrors and 'referenced before assignment' errors.
...
svn: r21693
2013-03-19 18:21:41 +00:00
Paul Franklin
9e8f6aaab6
6542: book report: graphic ancestor or descendant tree reports fail
...
svn: r21679
2013-03-18 18:54:59 +00:00
Nick Hall
71c2655976
Revert change to const.py
...
svn: r21673
2013-03-17 12:29:17 +00:00
Tim G L Lyons
d643dde344
Standardise messages about missing modules to include problem, consequence and what to do about it (currently including references to GEPS 029 where necessary).
...
svn: r21671
2013-03-17 11:40:33 +00:00
Paul Franklin
8882527e56
ignore any CLI book report "item" which crashes
...
svn: r21669
2013-03-16 22:50:41 +00:00
Nick Hall
084b816d5b
Add methods used for modal ProgressMeter to CLIDialog
...
svn: r21666
2013-03-16 21:47:37 +00:00
Nick Hall
c3a58693e3
Add modal option to ProgressMeter
...
svn: r21663
2013-03-16 19:48:29 +00:00
Jérôme Rapinat
aa609f7587
6195: Import citation for pro-gen file format (patch by keestux)
...
svn: r21659
2013-03-16 10:26:21 +00:00
Nick Hall
12396e858b
6336: Convert to use DbGUIElement
...
svn: r21656
2013-03-15 21:02:52 +00:00
Nick Hall
68158b3859
6526: Check for invalid handle
...
svn: r21653
2013-03-15 16:17:58 +00:00
John Ralls
29292a404a
GrampsLocale: Code cleanup
...
And make sure that setting lang on the GrampsLocale constructor
overrides the languages from the first instance.
svn: r21646
2013-03-14 23:01:09 +00:00
John Ralls
76ef85b43f
Plugins: Limit addon translators
...
Only get an addon translator if the plugin has a locale directory
Prevents pointless warnings, esp. when the translations are in the
main Gramps message file.
svn: r21645
2013-03-14 23:01:03 +00:00
John Ralls
66ded552dd
GrampsLocale: Suppress double printing of log messages
...
Grampsapp.py sets a global handler, so install one only during the first init and remove it when done.
svn: r21644
2013-03-14 23:00:57 +00:00
John Ralls
80ac126dfa
GrampsLocale: Fix 2 mistakes from previous commit.
...
svn: r21641
2013-03-13 00:26:22 +00:00
John Ralls
c25d94b3a7
GrampsLocale: Reduce circular imports
...
Lets one import grampslocale directly in a test script:
>>> from gramps.gen.utils.grampslocale import GrampsLocale
>>> import os
>>> gl = GrampsLocale(lang='fr_FR.UTF-8', localedir=os.path.join('build', 'mo'))
>>> tr = gl.get_translation().gettext
>>> tr("List of known family trees in your database path\n")
u'Liste des arbres familiaux connus dans votre chemin de base de donn\xe9es\n'
svn: r21640
2013-03-13 00:05:46 +00:00
John Ralls
f270f08be8
GrampsLocale: Better handle invalid/missing locale
...
svn: r21636
2013-03-12 22:22:58 +00:00
John Ralls
9e844f0d64
MacLocale: Extract function _mac_get_gramps_defaults
...
And correct line handling on the languages list.
svn: r21635
2013-03-12 22:22:53 +00:00
Nick Hall
7a70853eb5
Fix VERSION_DIR path
...
svn: r21634
2013-03-12 17:01:21 +00:00
Nick Hall
33e45f9b40
Remove redundant code
...
svn: r21628
2013-03-12 14:40:27 +00:00
John Ralls
33d9b19ac7
GrampsLocale: Ensure that encoding gets set to something
...
In the C locale, locale.getlocale() returns [None, None]
svn: r21616
2013-03-11 22:44:29 +00:00
John Ralls
ee639ec7da
Move VERSION, VERSION_TUPLE, major_version from const.py to version.py
...
As noted in the previous change, importing const into setup.py tried to initialize GrampsLocale and ResourcePath, which won't work. Since all we want is the VERSION string, move that to a new file, gramps/version.py
svn: r21614
2013-03-11 22:44:15 +00:00
John Ralls
fa0eb6cebe
Determine Paths at Runtime
...
Uses GRAMPS_RESOURCES to override the root location of the Gramps data files (which would normally be $(prefix)/share).
In setup.py install, writes $(prefix)/share to gen/utils/resource-path, installs that file, then deletes it again from the source tree. The presence or absence determines whether Gramps is running from the source directory or from an installation.
Const.py is now a static file; const.py.in is no longer used. Note that because importing const into setup tried to initialize things that we don't want initialized, VERSION is removed, and imported from gramps.version -- a file which will be added in the next change. Consequently, this commit will not run.
svn: r21613
2013-03-11 22:43:58 +00:00
John Ralls
56e29c162b
GrampsLocale: Protect another setlocale instance
...
svn: r21612
2013-03-11 22:43:52 +00:00
Tim G L Lyons
7055827260
Exportgedcom and importgedcom. 0006382: ADDR tag in GEDCOM export does not contain a full address. On export, all the elements of the structured address are output as ADDR/CONT. On import the structured address takes precedence (as at present), but a warning is only given if an element in the free-form address is missing from the structured address.
...
svn: r21610
2013-03-11 18:45:09 +00:00
Nick Hall
709eb0ebcd
6237: Suppress Gramps ID in Narrative Web report
...
svn: r21607
2013-03-10 23:55:08 +00:00
Paul Franklin
55e2863a0b
sync a few files in gramps40 and trunk
...
svn: r21603
2013-03-10 21:51:52 +00:00
John Ralls
b60dbf2782
Grampslocale: Protect from crashes due to passing bad strings to setlocale
...
svn: r21597
2013-03-09 22:31:13 +00:00
John Ralls
40ff796d93
Mac: Improve language list handling
...
Make sure that lang overrides the language list only if $LANG is set. Don't add encodings to the language list (e.g., en_US, not en_US.UTF-8). Start collation with None, because `if collation:` is True for collation = "". defaults may have whitespace at the end of "root", so use "startswith".
svn: r21596
2013-03-09 22:31:06 +00:00
John Ralls
068d50cc26
GrampsLocale: Improve handling the language list
...
Replace "en" with "C" when setting $LANGUAGE ("en" confuses GtkBuilder), and explicitly iterate over languages when finding
the translator, because left to itself gettext will ignore English.
svn: r21595
2013-03-09 22:31:00 +00:00
Jérôme Rapinat
c9698f51e0
typo for handling translated strings
...
svn: r21589
2013-03-09 12:17:40 +00:00
Jérôme Rapinat
9856e108e6
"os" is not defined
...
svn: r21588
2013-03-09 12:15:39 +00:00
Paul Franklin
7823280d22
handle CLI pathological case
...
svn: r21584
2013-03-07 23:30:21 +00:00
Helge Herz
47b8dc8131
Revert of 215589 because of changes in the GTK package for Win
...
svn: r21581
2013-03-07 23:26:43 +00:00
Nick Hall
a5b4759f40
6128: Reverse bug fix keeping code refactor
...
svn: r21577
2013-03-07 22:55:23 +00:00