Minor variable renaming
This commit is contained in:
@@ -183,10 +183,12 @@ class FileAPI(Resource):
|
|||||||
# TODO, once all files are uploaded, unpack and run the tasklist (copy, add, remove
|
# TODO, once all files are uploaded, unpack and run the tasklist (copy, add, remove
|
||||||
# files on a filesystem level and subsequently as svn commands)
|
# files on a filesystem level and subsequently as svn commands)
|
||||||
import zipfile
|
import zipfile
|
||||||
fh = open(tmp_filepath, 'rb')
|
zipped_file = open(tmp_filepath, 'rb')
|
||||||
z = zipfile.ZipFile(fh)
|
z = zipfile.ZipFile(zipped_file)
|
||||||
z.extractall(os.path.splitext(tmp_filepath)[0])
|
z.extractall(os.path.splitext(tmp_filepath)[0])
|
||||||
fh.close()
|
zipped_file.close()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# TODO, dry run commit (using committ message)
|
# TODO, dry run commit (using committ message)
|
||||||
# Seems not easily possible with SVN
|
# Seems not easily possible with SVN
|
||||||
@@ -205,7 +207,6 @@ class FileAPI(Resource):
|
|||||||
else:
|
else:
|
||||||
return jsonify(message='File not allowed')
|
return jsonify(message='File not allowed')
|
||||||
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def pack_fn(filepath):
|
def pack_fn(filepath):
|
||||||
import os
|
import os
|
||||||
|
Reference in New Issue
Block a user