* src/Exporter.py (Exporter.native_export): Use callback.

* src/Utils.py (get_new_filename): Add path separator.
	* src/GrampsDb/_WriteGrdb.py: Proper export of tables with and
	without transaction support, add callback.


svn: r6600
This commit is contained in:
Alex Roitman
2006-05-09 23:15:38 +00:00
parent 8133c888f8
commit 8a8d5342ce
4 changed files with 93 additions and 28 deletions

View File

@ -905,13 +905,14 @@ def get_media_referents(media_handle,db):
#
#
#-------------------------------------------------------------------------
_NEW_NAME_PATTERN = '%sUntitled_%d.%s'
_NEW_NAME_PATTERN = '%s%sUntitled_%d.%s'
def get_new_filename(ext,folder='~/'):
ix = 1
while os.path.isfile(os.path.expanduser(_NEW_NAME_PATTERN % (folder,ix,ext) )):
while os.path.isfile(os.path.expanduser(_NEW_NAME_PATTERN %
(folder,os.path.sep,ix,ext))):
ix = ix + 1
return os.path.expanduser(_NEW_NAME_PATTERN % (folder,ix,ext))
return os.path.expanduser(_NEW_NAME_PATTERN % (folder,os.path.sep,ix,ext))
def get_type_converter(val):
"""