Commit Graph

11 Commits

Author SHA1 Message Date
Malcom Lewis
86303f6116 Update FSF address to current location. 2014-08-08 19:39:45 -07:00
Nick Hall
f6be31eb39 Remove subversion substitution variables 2014-04-15 14:10:18 +01:00
Nick Hall
6eab64c901 Improve gen documentation 2013-11-11 23:38:26 +00:00
Vassilii Khachaturov
32a63852e0 7061: docstring update
svn: r23104
2013-09-12 21:48:23 +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
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
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
Benny Malengier
326d604365 GEPS 026: Replace 'make' for Gramps build
If we want to use Gramps from the code directory, src should be called gramps to allow import


svn: r20466
2012-09-30 11:55:52 +00:00