Commit Graph

20 Commits

Author SHA1 Message Date
Josip
e172b6520d 8128: GtkDialog mapped without a transient parent 2015-05-03 20:04:28 +02:00
Nick Hall
2ecf1a3ddc Fix failing unit test 2015-03-14 20:51:08 +00:00
Nick Hall
e0608f0ec4 Remove python2 specific code 2015-03-14 19:29:16 +00:00
Nick Hall
3b5efdf7ae Remove imports from __future__ module 2015-03-14 16:10:36 +00:00
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
Doug Blank
a859b5f562 Added unicode_literals; thanks Nick 2013-12-20 11:14:32 -05:00
Nick Hall
55a3c9813f Improve cli documentation 2013-11-13 17:40:16 +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
ff89425e50 7013: strip underscores from accept/reject labels
svn: r23077
2013-09-10 12:41:05 +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
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
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
ef6892abbd GrampsLocale: Remove ggettext
svn: r21144
2013-01-17 19:46:55 +00:00
Benny Malengier
b4ca613e21 Fix some gettext warnings
svn: r20646
2012-11-10 11:26:14 +00:00
Benny Malengier
bb5fc7cb7c 2620: GEPS 031: Python 3 support - 3.2
This does patch updates Gramps to the 3.2 syntax, it does not yet mean Gramps works with python 3.2
Expect next day commits to fix further issues, but this is the main 2to3 tool created patch changed
where needed to have python 2.7 work. 
Specific issues might be:
  1. next has been changed, must be checked
  2. new division as on the wiki page listed is to do
  3. ...


svn: r20634
2012-11-07 17:53:14 +00:00
Benny Malengier
e6cd5b5d2d Coding Guidelines: relative and absolute imports, some fixes and shortenings
svn: r20496
2012-10-03 07:39:26 +00:00
Nick Hall
e96d4dd43f Changes to imports - part 6
svn: r20491
2012-10-02 20:49:07 +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