* src/DbPrompter.py (format_maker): Add mnemonic activation target

to the format selector label; Use new import format; don't treat
native formats as plugins anymore.
* src/PluginMgr.py: Add format name to import registration.
* src/ReadGedcom.py: Cleanups; Don't register already native import.
* src/ReadXML.py: Don't register already native import.
* src/data/gramps.xml: Add magic patterns for XML, GEDCOM, and GW.
* src/plugins/ImportGeneWeb.py: Register with format name.
* src/plugins/ReadNative.py: Remove obsolete file.
* src/plugins/ReadPkg.py: Lots of cleanups; Register with format name.


svn: r4105
This commit is contained in:
Alex Roitman
2005-02-28 01:51:21 +00:00
parent 017fe976b2
commit c7b909ae02
9 changed files with 116 additions and 340 deletions

View File

@@ -1,4 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id$ -->
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-gramps">
<comment xml:lang="en">GRAMPS database</comment>
@@ -7,6 +10,9 @@
<mime-type type="application/x-gedcom">
<comment xml:lang="en">GEDCOM</comment>
<glob pattern="*.ged"/>
<magic priority="80">
<match type="string" value="0 HEAD" offset="0:1"/>
</magic>
</mime-type>
<mime-type type="application/x-gramps-package">
<comment xml:lang="en">GRAMPS package</comment>
@@ -15,9 +21,18 @@
<mime-type type="application/x-gramps-xml">
<comment xml:lang="en">GRAMPS XML database</comment>
<glob pattern="*.gramps"/>
<magic priority="80">
<match type="string" value="&lt;!DOCTYPE database" offset="0:256"/>
<match type="string" value="&lt;database" offset="0:64"/>
</magic>
</mime-type>
<mime-type type="application/x-geneweb">
<comment xml:lang="en">GeneWeb source file</comment>
<glob pattern="*.gw"/>
<magic priority="80">
<match type="string" value="fam" offset="0:64"/>
<match type="string" value="beg" offset="0:64"/>
<match type="string" value="end" offset="0:64"/>
</magic>
</mime-type>
</mime-info>