# -*- coding: utf-8 -*-

from datetime import datetime
import os

TMPDIR = 'tmp/'

def create_tmp_dir():
	if not os.path.exists(TMPDIR):
		os.makedirs(TMPDIR)

def savefile(filedata):
	create_tmp_dir()
	zip_name = "gtfs_{0}.zip".format(datetime.today().strftime('%Y-%m-%d_%H-%M-%S'))
	zip_path = os.path.join(TMPDIR, zip_name)
	with open(zip_path, 'wb') as f:
		f.write(filedata)
	return zip_path

@@ -390,8 +390,53 @@
 ip_path%0A
+%0Adef add_gtfs_to_db(file):%0A%09#dao.Dao()%0A%09pass%0A

add pass for function to work