Pylons/colander — Issue #39: Can't define declarative schema with non python identifiers as name
Author: dwt
Created: 2012-02-22 12:24:56+00:00
State: open

Here's an example

```python
class FnordSchema(colander.Schema):
fnord = colander.SchemaNode(
colander.Sequence(),
colander.SchemaNode(colander.Integer(), name='integer in sequence'),
name="fnord[]"))
```

Instead I have to use this workaround:

```python
class FnordSchema(colander.Schema):
schema = FnordSchema()
schema.add(colander.SchemaNode(
colander.Sequence(),
colander.SchemaNode(colander.Integer(), name='integer in sequence'),
name="fnord[]"))
```

Ideally the parsed value would be available under the name 'fnord' instead of 'fnord[]', but that would be an exciter. :-)