Finishing command line options

svn: r1564
This commit is contained in:
Alex Roitman
2003-05-21 18:06:41 +00:00
parent 8b2e282bc0
commit e727f0075b
5 changed files with 144 additions and 80 deletions

View File

@@ -143,6 +143,10 @@ class PackageWriter:
self.copy_file(oldfile,'burn:///%s/%s' % (base,root))
if obj.getMimeType()[0:5] == "image":
self.make_thumbnail(base,root,obj.getPath())
else:
print "Warning: media file %s was not found," % root,\
"so it was ignored."
# Write XML now
g = gnome.vfs.create('burn:///%s/data.gramps' % base,gnome.vfs.OPEN_WRITE )
gfile = WriteXML.XmlWriter(self.db,None,1)