Commit Graph

21412 Commits

Author SHA1 Message Date
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
Jérôme Rapinat
840e88f840 6028: same change for cli (thank you Nick); still something wrong with my config (GrampsLocale init)
svn: r23051
2013-09-07 09:42:47 +00:00
Nick Hall
4385cdc382 6028: Fix imports for documentation generation
svn: r23049
2013-09-06 23:09:43 +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
Zdenek Hatas
b58a76a1b6 czech translation update
svn: r23045
2013-09-06 13:59:58 +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
2637ab109a Bump version in xmlns
svn: r23035
2013-09-04 20:46: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