#114 requireifpresent with timeconverter

closed-fixed
nobody
None
5
2011-09-24
2011-01-10
Anonymous
No

if a TimeConverter field is used with RequireIfPresent and a time in format '0:0' is given the form give a missing error

hch = fe.validators.TimeConverter(use_datetime=True, use_seconds=False)
chained_validators = [
fe.validators.RequireIfPresent(present='mane_id', required='hin')
]

the problem is at row 2648 of the validator.py module

if is_required and not value_dict.get(self.required):

this row I think must be:

if is_required and value_dict.get(self.required) is None:

Discussion

  • plantian

    plantian - 2011-09-24

    Working on solution. --plantian

     
  • Christoph Zwerschke

    Fixed by <<changeset a7de80955c47>>.

     
  • Christoph Zwerschke

    • status: open --> closed-fixed
     

Log in to post a comment.