Commit Graph

21763 Commits

Author SHA1 Message Date
Vassilii Khachaturov
ca4eab8c0e 7198: Date editor crashes on invalid date
Revalidate the date upon every change, and disable
OKing the dialog when it is not valid, for usability review.

If it is not good, we can always revert this commit.
2013-11-23 19:59:18 +02:00
Vassilii Khachaturov
b4a5df2622 7198: Date editor crashes on invalid date
give a name to the OK button instead of an autogenerated id
2013-11-23 19:59:18 +02:00
Vassilii Khachaturov
531e6624b0 7198: Date editor crashes on invalid date
Trying out the approach preferred by Nick, see 7198:32708
2013-11-23 19:59:18 +02:00
Vassilii Khachaturov
872bf57946 7198, 7212: attach invalid date to DateError
when Date.set throws during the date fields sanity
check validation, it now attaches an (undocumented) .date field
to the exception -- proof of concept for 7198 and potentially
for 7212 as well
2013-11-23 19:59:18 +02:00
Vassilii Khachaturov
83c6788d43 7198: Date editor crashes on invalid date
Improve user experience as promised in [98d8e6].
Now, if one clicks OK in the date editor and the date is invalid,
it's switched into text mode and the dialog remains open,
so the user can either correct the date or type it as text,
no more loss of entered data happens.
2013-11-23 19:59:18 +02:00
Vassilii Khachaturov
1d654a2b1a 7198: Date editor crashes on invalid date
Now it just autoconverts into MOD_TEXT and returns whatever
text was there. This fixes the crash on the master branch,
but is not the final user experience yet.
2013-11-23 19:59:18 +02:00
Vassilii Khachaturov
3c93c1d164 7198,7212: fix Date.set(value=None) 2013-11-23 19:59:18 +02:00
Doug Blank
4f29c6e464 7209: Custom key/value (data item) on Database difference report: Change datamap representation to allow Database Difference Report to work 2013-11-18 06:27:05 -05:00
Josip
aad7b15a47 0007179: Select an existing person causes crash in searchfilter 2013-11-16 10:04:19 +01:00
Vassilii Khachaturov
68c0615bc4 7197: merge the fix from master
All date tests pass cleanly on gramps40 branch.
Merged the following commits.

	commit a90139cb9a
	Author: Vassilii Khachaturov <vassilii@tarunz.org>
	Date:   Fri Nov 15 15:04:03 2013 +0200

		7197, 7100: missing recalc_sort_value in ny code

		Fix bug #7197

	commit baae6ac615
	Author: Vassilii Khachaturov <vassilii@tarunz.org>
	Date:   Thu Nov 14 22:45:42 2013 +0200

		7197: readjust sanity date wrt newyear/slash

		Attempt to fix the failing
		 DateHandlerTest.test_invalid_month_with_ny
		(see 7197:32625). Tests still fail, investigation shows
		there's a problem in Date.set setting Julian+Mar25 date even if the
		date validation check is disabled by inserting a return before
		the validation block, i.e., before this line
				if modifier != Date.MOD_TEXTONLY:
		which seems to be the root cause of the remaining failing tests.
		which seems to be the root cause of the remaining failing tests.

		To investigate, add the return and try
		LC_ALL=en_GB.utf8 LANG=en_GB.utf8 GRAMPS_RESOURCES=$PWD \
		 python -m unittest -v \
		 gramps.gen.lib.test.date_test.MatchDateTest.test_match

	commit 4147721112
	Author: Vassilii Khachaturov <vassilii@tarunz.org>
	Date:   Wed Nov 13 22:34:24 2013 +0200

		7197: refactor code

		extract Date._adjust_newyear out of Date.set

	commit b3ab87bc5a
	Author: Vassilii Khachaturov <vassilii@tarunz.org>
	Date:   Wed Nov 13 22:02:21 2013 +0200

		7197: refactor code

		replace all copies of logging with a single point at the exception
		rethrow point

	commit c4daa151a5
	Author: Vassilii Khachaturov <vassilii@tarunz.org>
	Date:   Wed Nov 13 17:39:47 2013 +0200

		7197: date sanity check breaks on Julian+Mar25

		Date.convert_calendar resets the new year setting to 0,
		so the sanity check fails. Commit the initial fix that
		unblocks the failing test.
2013-11-15 15:51:56 +02:00
Vassilii Khachaturov
e097fb58c3 7197: failing tests demonstrating the bug
Merge from master:
	commit 93ca90f3b8
	Author: Vassilii Khachaturov <vassilii@tarunz.org>
	Date:   Thu Nov 14 22:41:46 2013 +0200

		7197: more failing tests

	commit 78cae43a32
	Author: Vassilii Khachaturov <vassilii@tarunz.org>
	Date:   Wed Nov 13 16:59:26 2013 +0200

		7197: better diagnostics from test for debugging

		Use unittest -v/--verbose flag to trigger it.

	commit 626353a0b3
	Author: Vassilii Khachaturov <vassilii@tarunz.org>
	Date:   Wed Nov 13 13:52:47 2013 +0200

		7197: failing test demonstrating the bug
2013-11-15 15:41:55 +02:00
Vassilii Khachaturov
6514aed725 RU: minor libnarrate translation fix
Reapply from master
	commit dc278569c1
	Author: Vassilii Khachaturov <vassilii@tarunz.org>
	Date:   Wed Nov 13 10:15:41 2013 +0200
2013-11-15 15:35:58 +02:00
John Ralls
4f07546433 Bug 7191: Cursor keys just beep on PPC with Gramps 3.4.6
It's actually on both PPC and Intel, and it's from forgetting to update
gramps.accel after upgrading Gtk past 2.24.10, which changed the mapping
of alt/option from Mod5 to Mod1.

For gramps40 and master, the problem was masked by the bundler putting
the file in the wrong directory.
2013-11-14 10:17:35 -08:00
John Ralls
d3655f65de Fix gramps.modules for git conversion 2013-11-09 17:28:56 -08:00
Nick Hall
10b6c433d4 Update url to example file 2013-11-09 19:45:18 +00:00
Nick Hall
ccdc4297ce Skip .git instead of .svn directories 2013-11-09 00:11:30 +00:00
Nick Hall
adfafbc478 Change version string to contain git hash instead of svn revision 2013-11-08 19:54:16 +00:00
Nick Hall
93fe889a4c 7182: Avoid using private functions in GExiv2 > 0.5
svn: r23475
2013-11-08 09:26:04 -08:00
Jérôme Rapinat
56878b3205 bump to 4.0.3
svn: r23472
2013-11-08 09:25:35 -08:00
Jérôme Rapinat
9f0f9be8ea update NEWS
svn: r23470
2013-11-08 09:25:13 -08:00
John Ralls
870f5334ec Prepare mac build for 4.0.2 release.
svn: r23469
2013-11-08 09:24:53 -08:00
Doug Blank
cdbcbd1446 Python3 spacing
svn: r23466
2013-11-07 11:35:21 -08:00
Doug Blank
17ac22d959 Python3 spacing
svn: r23464
2013-11-07 11:34:59 -08:00
Doug Blank
7e1eb33466 Python3 syntax
svn: r23463
2013-11-07 11:34:31 -08:00
Doug Blank
2c266cada1 Missing newline
svn: r23462
2013-11-07 11:34:05 -08:00
Mirko Leonhäuser
92f65f5628 updated german translation
svn: r23460
2013-11-07 11:33:40 -08:00
Jérôme Rapinat
959162e862 6918: http://lintian.debian.org/tags/old-fsf-address-in-copyright-file.html
svn: r23456
2013-11-07 11:33:16 -08:00
Doug Blank
61347c3093 Added callback parameter to __init__ method so that all editors have a uniform signature (called from Note Link)
svn: 23454
2013-11-07 11:32:35 -08:00
Doug Blank
dd818829bd Fix long columns of text that span pages
svn: r23453
2013-11-07 11:32:09 -08:00
Paul Franklin
a4c17b6573 add Greek date handler to NEWS
svn: r23452
2013-11-07 11:31:37 -08:00
Vassilii Khachaturov
4aa97e3ee9 merge gramps34 news
svn: r23451
2013-11-07 11:31:02 -08:00
Mirko Leonhäuser
e127df70c5 updated german translation
svn: r23443
2013-10-30 20:33:47 +00:00
Mirko Leonhäuser
2e28011a25 updated german translation
svn: r23441
2013-10-29 22:14:52 +00:00
Jérôme Rapinat
5bb0d47b2c 7151: update start of Ramadan in France
svn: r23439
2013-10-29 17:52:02 +00:00
Paul Franklin
72aae8ea69 typos
svn: r23436
2013-10-29 15:35:14 +00:00
Mirko Leonhäuser
3c55f8c668 updated german translation
svn: r23428
2013-10-27 20:57:33 +00:00
Mirko Leonhäuser
e5586c67da updated german translation
svn: r23427
2013-10-27 13:10:31 +00:00
Jérôme Rapinat
8015627b30 7154: fix Norwegian Bokmål's header
svn: r23425
2013-10-27 00:54:14 +00:00
Paul Franklin
5732e96e8b updated Arabic translation (by Muhammad Bashir Al-Noimi)
svn: r23423
2013-10-26 20:56:32 +00:00
Vassilii Khachaturov
6971d583ac RU: translation update
svn: r23403
2013-10-25 11:39:36 +00:00
Vassilii Khachaturov
1541ad9543 RU: translation update for navweb
svn: r23402
2013-10-25 11:38:55 +00:00
Vassilii Khachaturov
18fb7ac41a RU: fix name editor keywords
svn: r23400
2013-10-25 11:15:43 +00:00
Jérôme Rapinat
88314f3ccd 7154: fix Norwegian Bokmål's header
svn: r23398
2013-10-25 11:01:10 +00:00
Jérôme Rapinat
e39cb42091 merge some strings (need review) for Breton
svn: r23396
2013-10-25 09:27:20 +00:00
Jérôme Rapinat
0837003bc9 merge some strings from gramps34 and Devhelp (Gtk/Gnome API)
svn: r23395
2013-10-25 09:11:25 +00:00
Jérôme Rapinat
d982726200 update template
svn: r23394
2013-10-25 08:39:56 +00:00
Zdenek Hatas
395a4f6110 czech translation update
svn: r23379
2013-10-24 08:41:10 +00:00
Paul Franklin
841f5c261b 7150: crash on backup or export
svn: r23366
2013-10-22 16:52:53 +00:00
Vassilii Khachaturov
47b9144ed1 5098: fix a runaway merge artifact
svn: r23365
2013-10-22 15:07:47 +00:00
Erik De Richter
940fb10ecc updated dutch translation
svn: r23358
2013-10-20 21:20:21 +00:00