Skip to content

Commit

Permalink
Renamed StringQ to TextQ
Browse files Browse the repository at this point in the history
  • Loading branch information
barometz committed Sep 2, 2012
1 parent e49494c commit fa05a36
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
question='Do you agree to the TOS?',
onanswer={True: 'email'},
default='noTOS'))
c.add(inter.StringQ('email',
question='What is your email address?',
message='We will not share this with bad people',
validation=[(lambda x: '@' in x, 'Invalid address.'),
(lambda x: x != None, 'Cannot be empty')],
confirm=True))
c.add(inter.TextQ('email',
question='What is your email address?',
message='We will not share this with bad people',
validation=[(lambda x: '@' in x, 'Invalid address.'),
(lambda x: x != None, 'Cannot be empty')],
confirm=True))
c.add(inter.InterroQ('noTOS',
message='Well, that\'s unfortunate. Bye!'))

Expand Down
2 changes: 1 addition & 1 deletion interro.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def nextq(self):
return self.default


class StringQ(InterroQ):
class TextQ(InterroQ):
"""Text question class.
Does very little, other than - if desired - making sure the input isn't
Expand Down

0 comments on commit fa05a36

Please sign in to comment.