Elimination of redundant code, new registering method for plugins

svn: r367
This commit is contained in:
Don Allingham
2001-08-31 03:40:23 +00:00
parent 8543bd85f7
commit 59d53915b9
59 changed files with 1872 additions and 2518 deletions

View File

@ -1550,28 +1550,6 @@ def readData(database,active_person,cb):
#
#
#-------------------------------------------------------------------------
def get_name():
return _("Import from GEDCOM")
if __name__ == "__main__":
import sys
db = RelDataBase()
if len(sys.argv) == 1:
g = GedcomParser(db,"test.ged")
else:
g = GedcomParser(db,sys.argv[1])
g.parse_gedcom_file()
from Plugins import register_import
register_import(readData,"Import from GEDCOM")