Commits

Atsushi Odagiri committed e5af41b

fix deform

Comments (0)

Files changed (1)

deform/pyconjp2011/deform_demo/__init__.py

 from deform.form import Form
 import colander as c
 import deform.widget as w
+from deform import FileData
 
 from .. import models
 
     username = c.SchemaNode(c.String())
     password = c.SchemaNode(c.String(),
             widget=w.PasswordWidget())
+    user_image = c.SchemaNode(FileData(),
+            widget=w.FileUploadWidget(os.path.join(here, 'deform_tmpdata')))
 
 @wsgify
 def index(request):