Nick Hall
99bf949afa
Revert "Move comments away from translated strings"
...
This reverts commit 1423662e33
.
2021-06-03 00:04:53 +01:00
Nick Hall
7ef0cc3bff
Convert old translator tags
...
Change the old tags "translator" and "TRANSLATOR" to "Translator".
2021-06-01 14:16:44 +01:00
Nick Hall
1423662e33
Move comments away from translated strings
...
This will remove comments not relevant to translators from the
POT file.
2021-05-24 18:54:28 +01:00
prculley
81a1b675af
Fix CLI import so that different db types can be used
...
Fixes #11171
2019-06-15 17:21:34 +01:00
Nick Hall
77cc12a42e
Replace eval with getattr when loading plugin classes
2019-01-12 19:10:40 +00:00
Paul Culley
0340337107
Fix startup messages with bad filename ( #720 )
...
Fixes #10885
2018-11-29 10:37:49 +11:00
Nick Hall
e53603a1fc
Check that backend exists before loading database
2018-04-10 17:11:07 +01:00
Nick Hall
efabb77567
Remove write_version method from the database API
...
This is specific to the BSDDB backend.
2017-12-12 21:35:13 +00:00
Nick Hall
c048ebcfbb
Add login dialog and username/password command line options
2017-10-12 21:11:37 +01:00
Nick Hall
382987f366
Create module for database utilities
2016-11-24 17:57:18 +00:00
Paul Franklin
a512c9d5eb
improve pylint score on some CLI files
...
cli/arghandler.py went from 8.30 to 9.52
cli/argparser.py went from 8.43 to 9.74
cli/grampscli.py went from 7.99 to 9.29
cli/plug/__init__.py went from 7.63 to 9.69
2016-07-25 12:56:56 -07:00
Nick Hall
4eb27dfcfa
Create new database section in configuration file
2016-07-03 16:15:38 +01:00
Nick Hall
f688a96e9a
Tidy up class definitions
...
All python3 classes are new-style classes. It is no longer
necessary to inherit from object.
2016-05-10 16:06:49 +01:00
Doug Blank
8a6d766b06
CLI: -l, -L, -t should match names with re patterns in them
2016-05-03 13:04:24 -04:00
Doug Blank
f0e89ef9d3
CLI: require exact re.match for -t
2016-04-23 20:35:37 -04:00
Doug Blank
42a14b6aae
CLI prompt: don't default to yes for truly dangerous
2016-04-17 08:26:46 -04:00
Doug Blank
516bba4180
CLI: add regular expression patterns to -t, -l, and -L
2016-04-16 03:03:57 -04:00
Doug Blank
dd55b367ce
Add optional list of trees to command-line args: -t -l -L
2016-04-14 20:42:40 -04:00
Doug Blank
d44673c260
Don't exit from arghandler, just return
2016-01-05 13:00:30 -05:00
Doug Blank
4d5c28ad3a
CLI -r/--remove asks firsts, uses reg exp
2015-12-18 17:10:11 -05:00
Doug Blank
72662bcf06
Adds -r, --remove FAMILY_TREE_NAME to command-line
...
* gives error if doesn't exist
* currently requires exact match
* doesn't ask for permission (yet)
2015-12-18 07:30:03 -05:00
Doug Blank
7eb8015aee
Add tests to handle command-line arguments
2015-12-15 23:51:03 -05:00
Doug Blank
7710544936
gramps -L prints as it goes
...
Gramps -l now lists details as it goes, rather than after collecting details from all databases.
2015-12-13 10:49:47 -05:00
Paul Franklin
aaca511c75
7276: translate some currently-untranslated punctuation marks
...
slightly alter the comment near the translated punctuation
2015-12-05 19:50:43 -08:00
Nick Hall
6fa47010cf
Unicode conversion of command line arguments no longer needed
...
Arguments are a list of str in python3.
2015-12-05 10:53:56 +00:00
Nick Hall
cdee00aca2
Remove trailing whitespace
2015-08-23 18:42:07 +01:00
Doug Blank
1b71908bca
clidbman and arghandler: use database-backend for CLI imports
2015-08-07 19:24:37 -04:00
Doug Blank
644fff5f18
ArgHandler: allow gramps -C create to use dbid database backend type
2015-08-07 18:22:24 -04:00
Doug Blank
af7348a987
Added config 'database-backend' preference; removed backend dialog
2015-06-06 10:23:27 -04:00
Doug Blank
2d6a319c13
Moved make_database to DbState
2015-05-26 20:07:44 -04:00
Doug Blank
b059bdec66
Database backend as a plugin: this set of changes moves most or
...
all of Bsddb from gramps.gen.db to gramps.plugins.database. The
id of the plugin is 'bsddb' which can be loaded using the
make_database(id, dbstate) API (for now).
Next step is to add an identifying text in the directory to
indicate which database backend to use.
2015-05-26 20:07:44 -04:00
Nick Hall
3b5efdf7ae
Remove imports from __future__ module
2015-03-14 16:10:36 +00:00
Paul Franklin
dd20212156
give "update_po.py -p" fewer things to moan about
2015-03-01 15:01:52 -08:00
Paul Franklin
89dc89d83a
7276: translate some currently-untranslated punctuation marks -- partial
2015-02-01 11:51:34 -08:00
kulath
bfc2ef5ab3
8196: Spurious spaces in CLI List Family Trees, tab delimited output.
...
Print statements changed to assemble the whole line before output.
2014-11-24 23:10:35 +00:00
Paul Franklin
4f85cf0278
7276: translate some punctuation marks -- partial
2014-08-13 09:22:04 -07:00
Malcom Lewis
86303f6116
Update FSF address to current location.
2014-08-08 19:39:45 -07:00
Paul Franklin
c5d5285e7e
7784 "IndexError: list index out of range" on [initial CLI "gramps -t"]
2014-06-05 08:04:07 -07:00
Nick Hall
4f7f2db4ef
7152: Fix error when importing database from the CLI
2014-05-20 13:26:53 +01:00
John Ralls
55610b6f0a
Remove get_unicode_path_from_env_var(), get_unicode_path_from_file_chooser()
...
Two very cumbersome ways of saying conv_to_unicode().
2014-04-20 17:05:53 -07:00
Nick Hall
f6be31eb39
Remove subversion substitution variables
2014-04-15 14:10:18 +01:00
Nick Hall
55a3c9813f
Improve cli documentation
2013-11-13 17:40:16 +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
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
Vassilii Khachaturov
6336e35a29
7021: merge r22867 fix of #6863 to trunk
...
svn: r22929
2013-08-29 12:13:26 +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
Paul Franklin
f3fc5c5257
6821: CLI asks forever when trying to overwrite while exporting
...
svn: r22542
2013-06-20 16:34:22 +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
Peter Landgren
a71e8f5689
Update for spelling of Family Tree.
...
svn: r21938
2013-04-10 09:34:27 +00:00