* src/GrampsGconfKeys.py (get_bool,get_int,get_string): Raise exception when default value could not be get from gconf schema
* src/const.py.in: Add custom exception "ErrorSchemaInvalid" * src/GrampsMime.py (mime_type_is_defined): New method that returns True/False * src/gramps_main.py (__init__) Catch "ErrorSchemaInvalid" exception and check for installed MIME-type. Show error because installation is incomplete. svn: r4200
This commit is contained in:
@@ -154,6 +154,13 @@ documenters = [
|
||||
|
||||
translators = _('TRANSLATORS: Translate this to your name in your native language')
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# custom exception
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
ErrorSchemaInvalid = "GConf schema not properly installed"
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Constants
|
||||
|
Reference in New Issue
Block a user