From 29a55e8d7f3657ba5fab837bfee18218e4b3017d Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Thu, 24 Aug 2006 20:23:55 +0000 Subject: [PATCH] * src/plugins/PHPGedViewConnector.py: Disable registration, until this plugin is fixed. svn: r7256 --- gramps2/ChangeLog | 2 + gramps2/src/plugins/PHPGedViewConnector.py | 86 +++++++++++----------- 2 files changed, 45 insertions(+), 43 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 9601e372b..0677d5704 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,4 +1,6 @@ 2006-08-24 Alex Roitman + * src/plugins/PHPGedViewConnector.py: Disable registration, until + this plugin is fixed. * src/glade/gramps.glade (family_editor): Remove Y expansion property on mother-related buttons. * src/DataViews/_FamilyList.py: Add column editor. diff --git a/gramps2/src/plugins/PHPGedViewConnector.py b/gramps2/src/plugins/PHPGedViewConnector.py index 6675deb81..0de708640 100644 --- a/gramps2/src/plugins/PHPGedViewConnector.py +++ b/gramps2/src/plugins/PHPGedViewConnector.py @@ -390,49 +390,49 @@ def filter_url( url): return url -# for Testing -if __name__ == "__main__": - def dummy_progress( text,pos=0,max=0): - if max > 0: - percent = pos*100/max - print "%s: %d%%" % (text,percent) - else: - print text +## # for Testing +## if __name__ == "__main__": +## def dummy_progress( text,pos=0,max=0): +## if max > 0: +## percent = pos*100/max +## print "%s: %d%%" % (text,percent) +## else: +## print text - try: - f = open("/tmp/sites.txt") - l = f.readline() - while l: - l = filter_url(l.strip()) - print l - try: - c = PHPGedViewConnector(l,dummy_progress) - c.connect_to_gedcom() - v = c.get_version() - if v: - print("%s\t\t%s" % (v,l)) - c.fetch_full_gedcom() - except KeyboardInterrupt: - exit - l = f.readline() - except IOError: - phpGedViewImporter(None) - gtk.main() +## try: +## f = open("/tmp/sites.txt") +## l = f.readline() +## while l: +## l = filter_url(l.strip()) +## print l +## try: +## c = PHPGedViewConnector(l,dummy_progress) +## c.connect_to_gedcom() +## v = c.get_version() +## if v: +## print("%s\t\t%s" % (v,l)) +## c.fetch_full_gedcom() +## except KeyboardInterrupt: +## exit +## l = f.readline() +## except IOError: +## phpGedViewImporter(None) +## gtk.main() -else: - #------------------------------------------------------------------------- - # - # - # - #------------------------------------------------------------------------- - def phpGedViewImporterCaller(database,active_person,callback,parent=None): - phpGedViewImporter(database) +## else: +## #------------------------------------------------------------------------- +## # +## # +## # +## #------------------------------------------------------------------------- +## def phpGedViewImporterCaller(database,active_person,callback,parent=None): +## phpGedViewImporter(database) - register_tool( - phpGedViewImporterCaller, - _("Import the gedcom from a phpGedView driven website"), - category=_("Import"), - description=_("phpGedView is an open source web application that generates dynamic webpages" - " out of a GEDCOM file. This plugin uses the gedcom access protocol to" - " retrieve the gedcom file from the webserver.") - ) +## register_tool( +## phpGedViewImporterCaller, +## _("Import the gedcom from a phpGedView driven website"), +## category=_("Import"), +## description=_("phpGedView is an open source web application that generates dynamic webpages" +## " out of a GEDCOM file. This plugin uses the gedcom access protocol to" +## " retrieve the gedcom file from the webserver.") +## )