Convert more that IOU pre 1.3 projects but also other modules on remote servers.

This commit is contained in:
grossmj
2015-03-09 21:46:23 -06:00
parent 5ca65093e4
commit ad5548f70b
2 changed files with 11 additions and 10 deletions

View File

@ -16,6 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
import aiohttp
import stat
from ..config import Config
@ -56,7 +57,7 @@ class UploadHandler:
return
if data["type"] not in ["IOU", "IOURC", "QEMU", "IOS"]:
raise HTTPForbidden("You are not authorized to upload this kind of image {}".format(data["type"]))
raise aiohttp.web.HTTPForbidden("You are not authorized to upload this kind of image {}".format(data["type"]))
if data["type"] == "IOURC":
destination_dir = os.path.expanduser("~/")