#!/usr/bin/env python
# -*- coding: UTF-8 -*-
from modpy import authentication, template
@authentication.auth_user
def index(req):
return template.load_template(req, {
"banner" : "Dodawanie nowych zadań",
"message" : '''
Pracuj na plikach z FTP
'''})
#@authentication.auth_user
def files_upload(req):
# read the first byte to check if it's not empty
file_names = [req.form[f] for f in req.form if req.form[f].file.read(1)]
return template.load_template(req, {"banner": "TODO", "message" :
str(file_names)})