2008-03-05 Raphael Ackermann <raphael.ackermann@gmail.com>

* src/ReportBase/_CommandLineReport.py: print warning if show=option is 
	not a valid option. Addresses some of 0001891.

svn: r10196
This commit is contained in:
Raphael Ackermann 2008-03-05 20:31:20 +00:00
parent 81974e12c2
commit 3650d1c564
2 changed files with 18 additions and 11 deletions

View File

@ -1,13 +1,17 @@
2008-03-05 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/ReportBase/_CommandLineReport.py: print warning if show=option is
not a valid option. Addresses some of 0001891.
2008-03-05 Jerome Rapinat <romjerome@yahoo.fr> 2008-03-05 Jerome Rapinat <romjerome@yahoo.fr>
* src/plugins/DateParserDisplayTest.py: allow to translate QuestionDialog * src/plugins/DateParserDisplayTest.py: allow to translate QuestionDialog
2008-03-05 Douglas S. Blank <dblank@cs.brynmawr.edu> 2008-03-05 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/docgen/TextBufDoc.py: fixed translations of Quick View * src/docgen/TextBufDoc.py: fixed translations of Quick View
* src/plugins/References.py: fixed translations of ref types * src/plugins/References.py: fixed translations of ref types
2008-03-05 Łukasz Rymarczyk <yenidai(at)poczta(dot)onet(dot)pl> 2008-03-05 Łukasz Rymarczyk <yenidai(at)poczta(dot)onet(dot)pl>
* src/plugins/rel_pl.py: 0001776: Relationship calculator, update Polish * src/plugins/rel_pl.py: 0001776: Relationship calculator, update Polish
Rewritten for 3.x version Rewritten for 3.x version
2008-03-04 Douglas S. Blank <dblank@cs.brynmawr.edu> 2008-03-04 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/Simple/_SimpleTable.py: * src/Simple/_SimpleTable.py:
@ -29,16 +33,16 @@
Fixed indentation issue Fixed indentation issue
2008-03-04 Raphael Ackermann <raphael.ackermann@gmail.com> 2008-03-04 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/Bookmarks.py: 0001770: Bookmark Editor window and deleting entries * src/Bookmarks.py: 0001770: Bookmark Editor window and deleting entries
Set focus on bookmark right above the deleted bookmark Set focus on bookmark right above the deleted bookmark
* src/gramps.py: comment typo * src/gramps.py: comment typo
* src/ListModel.py: fix, changed func((param)) to func(param) * src/ListModel.py: fix, changed func((param)) to func(param)
2008-03-04 Peter Landgren <peter.talken2telia.com> 2008-03-04 Peter Landgren <peter.talken2telia.com>
* src/docgen/HtmlDoc.py: Issues 1875 and 1879# * src/docgen/HtmlDoc.py: Issues 1875 and 1879#
2008-03-04 Raphael Ackermann <raphael.ackermann@gmail.com> 2008-03-04 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/plugins/WritePkg.py: added import Utils to prevent crash on export * src/plugins/WritePkg.py: added import Utils to prevent crash on export
2008-03-04 Douglas S. Blank <dblank@cs.brynmawr.edu> 2008-03-04 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/DataViews/GrampletView.py: added infrastructure for * src/DataViews/GrampletView.py: added infrastructure for

View File

@ -3,6 +3,7 @@
# #
# Copyright (C) 2001-2007 Donald N. Allingham # Copyright (C) 2001-2007 Donald N. Allingham
# Copyright (C) 2008 Lukasz Rymarczyk # Copyright (C) 2008 Lukasz Rymarczyk
# Copyright (C) 2008 Raphael Ackermann
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@ -55,7 +56,7 @@ import const
#------------------------------------------------------------------------ #------------------------------------------------------------------------
def _validate_options(options, dbase): def _validate_options(options, dbase):
""" """
Validates all options by making sure that their values are consistent with Validate all options by making sure that their values are consistent with
the database. the database.
menu: The Menu class menu: The Menu class
@ -355,7 +356,9 @@ class CommandLineReport:
print " %s" % self.options_help[self.show][2] print " %s" % self.options_help[self.show][2]
else: else:
self.show = None #there was a show option given, but the option is invalid
print ("option %s not valid. Use 'show=all' to see all valid "
"options." % self.show)
#------------------------------------------------------------------------ #------------------------------------------------------------------------
# #