61 Commits

Author SHA1 Message Date
prculley
d210275a4e Fix Windows GUI mode startup for crash with some languages
Fixes: #11612. #11490, #11518, #9179, #9201, #9266
2020-05-15 14:50:54 -05:00
Paul Culley
c54f381737 Fix Gramps -v error when Gtk is not present (#923)
Via email a user noted a bug when "Gramps -v" was used with Gtk not installed (and gi was).
When the "gi.require_version('Gtk', '3.0')" was added during Gramps 5.0.0 timeframe, a corresponding exception was not.
2019-10-17 10:23:21 +11:00
Paul Culley
5c6a0ebff3
Fix graphs on Windows for font selection not working (#850)
Fixes #11212
2019-07-31 16:46:09 -05:00
prculley
c82ec4c65b Bump required Python version to 3.3 2019-05-13 18:45:38 +01:00
prculley
b765d7eae0 On restart after crash, offer to run Check & Repair 2019-05-12 15:14:58 +01:00
Nick Hall
3096c2b09a Remove extraneous whitespace after assignment 2019-05-12 11:41:11 +01:00
prculley
051311bbbd New CLI commands; 'safe' mode and 'default' 2019-01-14 19:38:43 +00:00
prculley
824bf7e40f Geps044 - Replace deprecated Gtk.UIManager, Gtk.Actions etc. 2018-10-07 16:49:12 +01:00
Nick Hall
f75a8f9497 Enable Sqlite backend for all users 2017-12-11 22:18:39 +00:00
Paul Franklin
3ee28584cb tweak sqlite3 info typeout to conform, only output sometimes 2017-01-11 04:22:29 -08:00
Josip
bb919efec7 Support for Windows Python3 pythonw.exe 2016-11-12 14:05:49 +01:00
prculley
7efee37123 use relative import 2016-08-21 15:00:19 -05:00
prculley
30a6f4267b Add GUI and CLI config option to allow easy setting 2016-08-21 15:00:19 -05:00
Paul Franklin
b308d97bed cope when import of GExiv2 gets a ValueError 2016-05-09 18:31:07 -07:00
Ross Gammon
25627dac07 PyGIWarning: importing without specifiying a version first
Follow-on from https://gramps-project.org/bugs/view.php?id=8981
This patch was applied in Debian (gramps 42 branch) due to warnings picked
up in the build log and from testing by running gramps from the command
line. I have rebased it on master, as it will probably be a while before the
warnings become errors.
2016-05-08 13:05:04 +02:00
Doug Blank
f00a355110 sqlite: add version number 2016-05-07 06:43:33 -04:00
Sam Manzi
230c9d6bd0
8981 Specify required GtkSpell and GExiv2 version 2016-04-23 10:17:52 +10:00
Paul Franklin
c27f663137 9383: the Family Tree Manager dialog should show the database type 2016-04-22 08:31:51 -07:00
Doug Blank
048151f447 9383: the Family Tree Manager dialog should show the database type 2016-04-22 07:52:34 -04:00
Doug Blank
cef7bc9af5 Moved guiQML to its own project 2016-04-17 13:01:47 -04:00
Doug Blank
d71f9494b8 Move GRAMPS_RESOURCE default into grampsapp.main() 2016-04-14 20:58:27 -04:00
Sam Manzi
4960f859ed 8294 Recognise Ghostscript on 64bit ms-windows 2016-03-03 15:28:38 +11:00
John Ralls
cb58270bf6 Fix comment about getting the right encoding for stdout. 2016-02-09 11:19:45 -08:00
John Ralls
bd27233cfc Bug 9178: Error loading Participants add-on in French locale
Restores setting the stdout encoding to sys.getdefaultencoding() in a
way that works with Python3 (thanks to Jack O'Connor on stackoverflow)
and in a place that sets it for the loggers, too.
2016-02-09 11:15:02 -08:00
Doug Blank
decb51eac7 Remove encoding on stdout and stderr 2015-12-13 11:19:32 -05:00
Sam Manzi
0666614be7 Improved Pylint score on grampsapp.py 7.44/10 (previous run: 5.56/10, +1.88) 2015-08-31 11:47:17 +10:00
Nick Hall
cdee00aca2 Remove trailing whitespace 2015-08-23 18:42:07 +01:00
Doug Blank
e7d62cf9b1 Only BSDDB plugin needs bsddb3; back/restore moved to db 2015-05-26 20:07:44 -04:00
Jérôme Rapinat
4a06f9c0e3 fix confusing strings
update tempate

xgettext prior to 0.18.3 leads to error

try to limit bsddb3 mistake on new installation
2015-03-25 18:58:15 +01:00
Paul Franklin
e70bb04f82 add missing import 2015-03-01 14:53:14 -08:00
Nick Hall
1a661bcc3d Set minimum python version required to 3.2 2015-02-28 17:57:00 +00:00
Doug Blank
d5b93c52be Moved stderr and stdin handlers to only be installed for cli application; allows Gramps libraries to be used in other REPLs 2015-02-17 16:36:52 -05: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
John Ralls
85a1c39092 7258: Transcode FS paths to avoid a crash
The problem is really that the paths get munged into strings in the
system codepage, losing or misinterpreting most Unicode. Python's os
module is smart enough to encode the unicode to the file system
encoding, but the bsddb module needs a little help.

Provide a new function, constfunc.get_env_var(name, default=None) to
cleanly import Unicode environment variables in Windows and use it in
place of all instances of foo = os.environ['BAR] or foo =
os.environ.get('BAR').

Os path functions are smart enough to convert unicode to the file system
encoding on their own, but Db functions aren't, so provide an _encode
function in gen.db.write.py and apply it where a path is being passed to
DBEnv.open().

Also convert paths from the UI to unicode from 'utf8' rather than
sysfilesystemencoding. The latter happens to be correct most of the time
on Linux and OSX but is wrong on Windows.
2014-03-23 15:09:51 -07:00
Josip
f829e550a0 7378: Starting Gramps without console not possible 2014-01-21 19:37:28 +01:00
Doug Blank
41f8df9a94 Don't show stack variables; redo this and dump to a file 2013-11-12 21:50:10 -05:00
Doug Blank
ec76905791 Show local variables on unhandled crash
svn: r23446
2013-11-02 16:38:35 +00:00
Vassilii Khachaturov
8d5a98af2d 7088: remove SDN version reporting
svn: r23232
2013-09-30 19:31:47 +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
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
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
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
Paul Franklin
e142003601 restore SVN number to "gramps -v" output
svn: r21751
2013-03-26 19:01:54 +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
Paul Franklin
7823280d22 handle CLI pathological case
svn: r21584
2013-03-07 23:30:21 +00:00
Paul Franklin
1e208f02bb add ICU/PyICU to "gramps -v"
svn: r21531
2013-03-03 03:19:56 +00:00
Paul Franklin
4e04ec09fb behave gracefully if no GExiv2 under Python3
svn: r21468
2013-02-26 20:36:52 +00:00
Nick Hall
ddf9dc9f14 6408: Display GExiv2 version rather than pyexiv2 version
svn: r21388
2013-02-23 23:36:12 +00:00
Peter Landgren
1db1aefc81 Fix of gramps -v for Graphviz and ghostscript.
svn: r21301
2013-02-05 15:11:45 +00:00