Skip to content

Commit

Permalink
Remove IgnoredField
Browse files Browse the repository at this point in the history
  • Loading branch information
paj committed Nov 3, 2010
1 parent 7277c23 commit d2e59f8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion tw2/forms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""

from widgets import (Button, CheckBox,
FieldSet, FileField, Form, HiddenField, IgnoredField, ImageButton,
FieldSet, FileField, Form, HiddenField, ImageButton,
Label, Spacer, ListLayout, TableLayout, PasswordField,
RadioButton, ResetButton, SubmitButton, TextField, TextArea,
SingleSelectField, MultipleSelectField, RadioButtonList, CheckBoxList,
Expand Down
9 changes: 0 additions & 9 deletions tw2/forms/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,6 @@ class HiddenField(InputField):
type = 'hidden'


class IgnoredField(HiddenField):
"""
A hidden field. The value is never included in validated data.
"""
def _validate(self, value):
super(IgnoredField, self)._validate(value)
return twc.EmptyField


class LabelField(InputField):
"""
A read-only label showing the value of a field. The value is stored in a hidden field, so it remains through validation failures. However, the value is never included in validated data.
Expand Down

0 comments on commit d2e59f8

Please sign in to comment.