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
This commit is contained in:
Brian Matherly 2008-03-13 03:54:09 +00:00
parent 634be62d3b
commit ddbc702c83
2 changed files with 1 additions and 34 deletions

View File

@ -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,

View File

@ -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"
"\n<b>BACKUP</b> 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)