* src/plugins/PHPGedViewConnector.py: Disable registration, until
this plugin is fixed. svn: r7256
This commit is contained in:
parent
81917ad580
commit
9324a41b77
@ -1,4 +1,6 @@
|
|||||||
2006-08-24 Alex Roitman <shura@gramps-project.org>
|
2006-08-24 Alex Roitman <shura@gramps-project.org>
|
||||||
|
* src/plugins/PHPGedViewConnector.py: Disable registration, until
|
||||||
|
this plugin is fixed.
|
||||||
* src/glade/gramps.glade (family_editor): Remove Y expansion
|
* src/glade/gramps.glade (family_editor): Remove Y expansion
|
||||||
property on mother-related buttons.
|
property on mother-related buttons.
|
||||||
* src/DataViews/_FamilyList.py: Add column editor.
|
* src/DataViews/_FamilyList.py: Add column editor.
|
||||||
|
@ -390,49 +390,49 @@ def filter_url( url):
|
|||||||
return url
|
return url
|
||||||
|
|
||||||
|
|
||||||
# for Testing
|
## # for Testing
|
||||||
if __name__ == "__main__":
|
## if __name__ == "__main__":
|
||||||
def dummy_progress( text,pos=0,max=0):
|
## def dummy_progress( text,pos=0,max=0):
|
||||||
if max > 0:
|
## if max > 0:
|
||||||
percent = pos*100/max
|
## percent = pos*100/max
|
||||||
print "%s: %d%%" % (text,percent)
|
## print "%s: %d%%" % (text,percent)
|
||||||
else:
|
## else:
|
||||||
print text
|
## print text
|
||||||
|
|
||||||
try:
|
## try:
|
||||||
f = open("/tmp/sites.txt")
|
## f = open("/tmp/sites.txt")
|
||||||
l = f.readline()
|
## l = f.readline()
|
||||||
while l:
|
## while l:
|
||||||
l = filter_url(l.strip())
|
## l = filter_url(l.strip())
|
||||||
print l
|
## print l
|
||||||
try:
|
## try:
|
||||||
c = PHPGedViewConnector(l,dummy_progress)
|
## c = PHPGedViewConnector(l,dummy_progress)
|
||||||
c.connect_to_gedcom()
|
## c.connect_to_gedcom()
|
||||||
v = c.get_version()
|
## v = c.get_version()
|
||||||
if v:
|
## if v:
|
||||||
print("%s\t\t%s" % (v,l))
|
## print("%s\t\t%s" % (v,l))
|
||||||
c.fetch_full_gedcom()
|
## c.fetch_full_gedcom()
|
||||||
except KeyboardInterrupt:
|
## except KeyboardInterrupt:
|
||||||
exit
|
## exit
|
||||||
l = f.readline()
|
## l = f.readline()
|
||||||
except IOError:
|
## except IOError:
|
||||||
phpGedViewImporter(None)
|
## phpGedViewImporter(None)
|
||||||
gtk.main()
|
## gtk.main()
|
||||||
|
|
||||||
else:
|
## else:
|
||||||
#-------------------------------------------------------------------------
|
## #-------------------------------------------------------------------------
|
||||||
#
|
## #
|
||||||
#
|
## #
|
||||||
#
|
## #
|
||||||
#-------------------------------------------------------------------------
|
## #-------------------------------------------------------------------------
|
||||||
def phpGedViewImporterCaller(database,active_person,callback,parent=None):
|
## def phpGedViewImporterCaller(database,active_person,callback,parent=None):
|
||||||
phpGedViewImporter(database)
|
## phpGedViewImporter(database)
|
||||||
|
|
||||||
register_tool(
|
## register_tool(
|
||||||
phpGedViewImporterCaller,
|
## phpGedViewImporterCaller,
|
||||||
_("Import the gedcom from a phpGedView driven website"),
|
## _("Import the gedcom from a phpGedView driven website"),
|
||||||
category=_("Import"),
|
## category=_("Import"),
|
||||||
description=_("phpGedView is an open source web application that generates dynamic webpages"
|
## 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"
|
## " out of a GEDCOM file. This plugin uses the gedcom access protocol to"
|
||||||
" retrieve the gedcom file from the webserver.")
|
## " retrieve the gedcom file from the webserver.")
|
||||||
)
|
## )
|
||||||
|
Loading…
Reference in New Issue
Block a user