From ddbc702c8331310ed818c2db76ff4a174ce03cf2 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Thu, 13 Mar 2008 03:54:09 +0000 Subject: [PATCH] Remove the beta warning. I was going to add a welcome message, but there is a default welcom gramplet that works just as well. svn: r10286 --- src/Config/_GrampsConfigKeys.py | 4 ---- src/gramps_main.py | 31 +------------------------------ 2 files changed, 1 insertion(+), 34 deletions(-) diff --git a/src/Config/_GrampsConfigKeys.py b/src/Config/_GrampsConfigKeys.py index 27d45388d..c79993033 100644 --- a/src/Config/_GrampsConfigKeys.py +++ b/src/Config/_GrampsConfigKeys.py @@ -67,8 +67,6 @@ USE_LAST_VIEW = ('preferences', 'use-last-view', 0) FAMILY_SIBLINGS = ('preferences', 'family-siblings', 0) AUTOLOAD = ('behavior', 'autoload', 0) SPELLCHECK = ('behavior', 'spellcheck', 0) -BETAWARN = ('behavior', 'betawarn', 0) -WELCOME = ('behavior', 'welcome', 1) DATE_FORMAT = ('preferences', 'date-format', 1) DONT_ASK = ('interface', 'dont-ask', 0) RELEDITBTN = ('interface', 'releditbtn', 0) @@ -188,8 +186,6 @@ default_value = { FAMILY_SIBLINGS : True, AUTOLOAD : False, SPELLCHECK : False, - BETAWARN : False, - WELCOME : 100, DATE_FORMAT : 0, DONT_ASK : False, RELEDITBTN : False, diff --git a/src/gramps_main.py b/src/gramps_main.py index dffa64750..e97b643cd 100644 --- a/src/gramps_main.py +++ b/src/gramps_main.py @@ -183,37 +183,11 @@ def register_stock_icons (): factory.add (data[0], icon_set) - def build_user_paths(): """ check/make user-dirs on each Gramps session""" for path in const.USER_DIRLIST: if not os.path.isdir(path): os.mkdir(path) - -def _display_welcome_message(): - """ - Display a welcome message to the user. - """ - if not Config.get(Config.BETAWARN): - from QuestionDialog import WarningDialog - WarningDialog( - _('Danger: This is unstable code!'), - _("This GRAMPS 3.0 Beta release is an early, experimental " - "peek at the future 3.0 release. This version is " - "not meant for normal usage. Use at your own risk.\n\n" - "This version may:\n" - "1) Work differently than you expect.\n" - "2) Fail to run at all.\n" - "3) Crash often.\n" - "4) Corrupt your data.\n" - "5) Save data in a format that is incompatible with the " - "official release.\n" - "\nBACKUP your existing databases " - "before opening them with this version, and make " - "sure to export your data to XML every now and then.")) - Config.set(Config.AUTOLOAD, False) -# Config.set(Config.BETAWARN, True) - Config.set(Config.BETAWARN, Config.get(Config.BETAWARN)) #------------------------------------------------------------------------- # @@ -231,8 +205,7 @@ class Gramps: def __init__(self, args): stopload = False try: - build_user_paths() - _display_welcome_message() + build_user_paths() except OSError, msg: ErrorDialog(_("Configuration error"), str(msg)) except Errors.GConfSchemaError, val: @@ -286,5 +259,3 @@ class Gramps: if Config.get(Config.USE_TIPS): TipOfDay.TipOfDay(self.vm.uistate) - -