Skip to content
Permalink
Browse files

[processing] fixed table export

  • Loading branch information
volaya committed Oct 19, 2014
1 parent c3914f0 commit 4ff831f995a9b500f08f373a804f6c58e3f48030
Showing with 3 additions and 3 deletions.
  1. +2 −2 python/plugins/processing/tools/dataobjects.py
  2. +1 −1 python/plugins/processing/tools/system.py
@@ -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'):
@@ -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()) \

0 comments on commit 4ff831f

Please sign in to comment.
You can’t perform that action at this time.