* src/PedView.py: Fix remnants of gnome.canvas syntax.

* src/ReadGrdb.py: Add to CVS: native database importer.
* src/DbPrompter.py: Support for the native importer.
* src/Errors.py: Add HandleError exception for duplicate handles.


svn: r3984
This commit is contained in:
Alex Roitman
2005-01-29 05:13:29 +00:00
parent 4604784b81
commit 5e6c9ffb37
5 changed files with 216 additions and 23 deletions

View File

@@ -1,7 +1,7 @@
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2003 Donald N. Allingham
# Copyright (C) 2003-2005 Donald N. Allingham
#
# 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
@@ -18,6 +18,8 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# $Id$
class FilterError(Exception):
"""Error used to report Filter errors"""
def __init__(self,value,value2=""):
@@ -70,3 +72,12 @@ class PluginError(Exception):
def __str__(self):
return self.value
class HandleError(Exception):
"""Error used to report wrong database handle errors"""
def __init__(self,value):
Exception.__init__(self)
self.value = value
def __str__(self):
return self.value