34 Commits

Author SHA1 Message Date
Paul Culley
f3b5f75e37 Fix strings containing deprecated illegal escape sequences (#648)
Python 3.6 and above has deprecated illegal string escape sequences. Escape sequences are preceded by a '\' and valid ones are "\n\t\r" etc. Illegal ones are not in the list https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals.

Previous to Python 3.6 these illegal sequences were ignored and the '\' was left in place. Pylint has been noting these for a while now.

This PR corrects these sequences in Gramps. I used

find . -name "*.py" | xargs -t -n 1 python3 -Wd -m py_compile 2>&1 | grep Depre

to locate the failing strings.
2018-09-04 12:03:17 +10:00
Sam Manzi
495c7f310a
[ReorderGrampsID]Fix broken help link 2018-03-28 12:52:23 +11:00
prculley
05800c530a Pylint improvements 2017-10-12 16:46:08 +01:00
prculley
fdccc733a2 Remove eval() and rename self.dbstate 2017-10-12 16:45:59 +01:00
prculley
3d1095d9ca Another way to protect GOV IDs in Gramps ID position 2017-10-12 16:45:52 +01:00
prculley
d5ca13254f Correct ReorderID tool for several bugs and deal with GetGov ID
Fixes #10177, #10175, #10176
2017-09-29 15:28:58 +01:00
Paul Culley
dc645c813b ReorderIds tool crashes with 'bytes' error on bsddb (#428)
fixes #10098
2017-06-26 22:17:40 +01:00
Alois Poettker
022da0cb82 Extend ReorderIDs-II functionality. (#383) 2017-05-13 16:34:15 +01:00
Nick Hall
662c5c8866 Modify to avoid using table maps 2016-10-17 23:25:33 +01:00
Paul Franklin
2ffe1d141f remove temporary debugging flags 2016-09-10 15:44:07 -07:00
Paul Franklin
da8f99bab7 8128: GtkDialog mapped without a transient parent 2016-08-04 08:54:34 -07:00
Paul Franklin
7accf755d5 typo 2016-04-16 11:40:06 -07:00
Doug Blank
157604b40e Rename *_media_object methods to *_media 2016-01-23 21:53:14 -05:00
Doug Blank
2eeda93617 Renamed get_object_from to get_media_from 2016-01-23 19:00:13 -05:00
Doug Blank
ee05e0b451 7335: Cleanup code, filenames, and documentation
First part of cleanup, changes:

MediaObject -> Media
mediaobj -> media
mediaobject -> media
2016-01-23 14:22:41 -05:00
Nick Hall
2d92101438 Replace GRAMPS with Gramps in comments 2015-09-07 21:58:52 +01:00
Nick Hall
cdee00aca2 Remove trailing whitespace 2015-08-23 18:42:07 +01:00
Doug Blank
719fdfe2ae Revert "Use DbTxn from database backend"
This reverts commit 92ca9d7571500533db7af85088e3690f069b3431.
2015-08-22 21:44:52 -04:00
Doug Blank
92ca9d7571 Use DbTxn from database backend 2015-08-22 18:17:22 -04:00
Nick Hall
3b5efdf7ae Remove imports from __future__ module 2015-03-14 16:10:36 +00:00
Jérôme Rapinat
612a72a455 1685: Tools: some strings into print statement were untranslated 2014-10-08 11:43:11 +02: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
Vassilii Khachaturov
15623c6c27 7469: ReorderIDs: global name 'gen' is not defined 2014-02-16 11:44:00 +02:00
Theophraste
313eb9ba07 5775: ID reorder tool doesn't update citation IDs
reapplied from gramps34
2014-01-21 21:52:24 +02: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
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
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
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
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
Nick Hall
55c19e4180 Changes to imports - part 7
svn: r20492
2012-10-02 21:08:19 +00:00
Nick Hall
a5c41d0566 Changes to imports - part 3
svn: r20487
2012-10-02 19:47:38 +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