* src/ArgHandler.py (parse_args): Switch from 'tgz' to 'gpkg'
for Gramps package; (handle_args): Use separate dir for all import-produced files; (cl_export): Convert media objects export to the database interface. * src/ReadXML.py (importData): Copy all local (with respect to the old XML way) media object files into <database>.images dir (created if did not previously exist). Change objects' paths accordingly; (GrampsParser.start_object): Do not modify path in the parser. This way we know that the objects are local. * src/RelLib.py (get_event_keys): Add method to GrampsDB class. * src/plugins/WritePkg.py (PackageWriter.export): Convert missing media handling to the database interface. svn: r3227
This commit is contained in:
@ -3367,6 +3367,11 @@ class GrampsDB:
|
||||
return self.media_map.keys()
|
||||
return []
|
||||
|
||||
def get_event_keys(self):
|
||||
if self.event_map:
|
||||
return self.event_map.keys()
|
||||
return []
|
||||
|
||||
def sortbysource(self,f,s):
|
||||
f1 = self.source_map[f][1].upper()
|
||||
s1 = self.source_map[s][1].upper()
|
||||
|
Reference in New Issue
Block a user