[processing] fixed table export

This commit is contained in:
volaya 2014-10-19 21:33:04 +02:00
parent c3914f0c40
commit 4ff831f995
2 changed files with 3 additions and 3 deletions

View File

@ -351,7 +351,7 @@ def exportTable(table):
settings = QSettings()
systemEncoding = settings.value('/UI/encoding', 'System')
output = getTempFilename('dbf')
output = getTempFilename()
provider = table.dataProvider()
isASCII = True
try:
@ -367,7 +367,7 @@ def exportTable(table):
for feat in table.getFeatures():
writer.addFeature(feat)
del writer
return output
return output + '.dbf'
else:
filename = unicode(table.source())
if unicode(table.source()).endswith('shp'):

View File

@ -70,7 +70,7 @@ def setTempOutput(out, alg):
out.value = getTempFilenameInTempFolder(out.name + '.' + ext)
def getTempFilename(ext):
def getTempFilename(ext = None):
path = tempFolder()
if ext is None:
filename = path + os.sep + str(time.time()) \