dd06f124d9762aba787e47a6109b5d28fda54f7a
3 from pylons
import request
, response
, session
, tmpl_context
as c
, config
4 from pylons
.controllers
.util
import abort
, redirect_to
6 from floof
.lib
.base
import BaseController
, render
8 log
= logging
.getLogger(__name__
)
12 from floof
.lib
.file_storage
import save_file
14 class ArtController(BaseController
):
17 # c.artwork = Art.query.order_by(Art.id.desc()).all()
22 return render("/art/new.mako")
26 file = request
.POST
['file']
27 root
= config
['app_conf']['art_root']
29 redirect_to(controller
="main", action
="index")