1. Atsushi Odagiri
  2. pyconjp2011

Commits

Atsushi Odagiri  committed d61884d

fix formalchemy

  • Participants
  • Parent commits e5af41b
  • Branches task.fileupload

Comments (0)

Files changed (1)

File formalchemy/pyconjp2011/formalchemy_demo/__init__.py

View file
 from sqlalchemy import engine_from_config
 from mako.lookup import TemplateLookup
 from formalchemy import FieldSet
+from formalchemy import Field
+from formalchemy import fields
 
 from .. import models
 
 templates = TemplateLookup(directories=[templates_dir])
 
 user_form = FieldSet(models.User, models.DBSession)
+user_form.append(Field(name='user_image').with_renderer(fields.FileFieldRenderer))
 
 @wsgify
 def index(request):