Pylons/deform — Issue #54: form.pt does not show validation errors from the top node of the schema
Author: groner
Created: 2011-10-13 22:11:12+00:00
State: open

The error message generated by the test below isn't rendered.

```python

import deform
import colander

class LoginForm(colander.Schema):
username = colander.SchemaNode(colander.String())
password = colander.SchemaNode(colander.String(),
widget=deform.widget.PasswordWidget())

def validate_password(node, d):
raise colander.Invalid(node, 'Username does not match password')

loginform = LoginForm(validator=validate_password)

try:
d = deform.Form(loginform).validate([
('__formid__', 'deform'),
('username', 'kai'),
('password', '123')])
except deform.ValidationFailure, e:
print e.render()
```

This snippet appears in .errorLi of mapping.pt but seems to be missing in form.pt.

```html

${field.errormsg}

```