Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Commit

Permalink
rename to Trivalent
Browse files Browse the repository at this point in the history
  • Loading branch information
reedstrm committed Dec 11, 2014
1 parent 932aa51 commit 38e6671
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cnxauthoring/schemata.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def deferred_datetime_missing(node, kw):
return dt


class TriStateBoolean(colander.SchemaType):
"""A type representing a boolean object with 3 states.
class Trinary(colander.SchemaType):
"""A type representing a trivalued logic object - 3 states.
That is true, false and unknown. These are represented in Python
as True, False and None.
"""
Expand Down Expand Up @@ -134,7 +134,7 @@ def schema_type(self, **kw):

class RoleSchema(UserSchema):
has_accepted = colander.SchemaNode(
TriStateBoolean(),
Trinary(),
missing=colander.drop,
)
requester = colander.SchemaNode(
Expand Down

0 comments on commit 38e6671

Please sign in to comment.