Skip to content

Commit

Permalink
cleanup incongruities in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mmerickel committed Aug 16, 2013
1 parent 06a86d3 commit b46bde7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/basics.rst
Expand Up @@ -174,7 +174,7 @@ The imperative style that looks like this still works, of course:
ranged_int = colander.SchemaNode(
validator=colander.Range(0, 10),
default = 10,
default=10,
title='Ranged Int'
)
Expand All @@ -184,7 +184,7 @@ But in 1.0a1+, you can alternately now do something like this:
from colander import SchemaNode
class RangedIntSchemaNode(SchemaNode):
class RangedInt(SchemaNode):
validator = colander.Range(0, 10)
default = 10
title = 'Ranged Int'
Expand All @@ -198,7 +198,7 @@ the schemanode subclass instead of plain attributes:
from colander import SchemaNode
class RangedIntSchemaNode(SchemaNode):
class RangedInt(SchemaNode):
default = 10
title = 'Ranged Int'
Expand All @@ -224,7 +224,7 @@ example this will *not* work:
from colander import SchemaNode
class RangedIntSchemaNode(SchemaNode):
class RangedInt(SchemaNode):
default = 10
title = 'Ranged Int'
Expand Down Expand Up @@ -252,7 +252,7 @@ indeed work):
from colander import SchemaNode
class RangedIntSchemaNode(SchemaNode):
class RangedInt(SchemaNode):
default = 10
title = 'Ranged Int'
Expand All @@ -277,7 +277,7 @@ the bind parameters within values that are plain old methods:
from colander import SchemaNode
class RangedIntSchemaNode(SchemaNode):
class RangedInt(SchemaNode):
default = 10
title = 'Ranged Int'
Expand Down Expand Up @@ -312,7 +312,7 @@ constructor:
from colander import SchemaNode
class RangedIntSchemaNode(SchemaNode):
class RangedInt(SchemaNode):
default = 10
title = 'Ranged Int'
validator = colander.Range(0, 10)
Expand Down

0 comments on commit b46bde7

Please sign in to comment.