#!/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" : '''

Plik #1:

Plik #2:

Plik #3:

Plik #4:

Plik #5:

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)})