Tracker: Bugs

5 requireifpresent with timeconverter - ID: 3154138
Last Update: Comment added ( cito )

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:




Nobody/Anonymous ( nobody ) - 2011-01-10 02:22:08 PST

5

Closed

Fixed

Nobody/Anonymous

None

None

Public


Comments ( 2 )

Date: 2011-09-24 14:50:13 PDT
Sender: citoProject Admin

Fixed by <<changeset a7de80955c47>>.


Date: 2011-09-24 13:19:35 PDT
Sender: plantian

Working on solution. --plantian


Attached File

No Files Currently Attached

Changes ( 4 )

Field Old Value Date By
status_id Open 2011-09-24 14:50:13 PDT cito
resolution_id None 2011-09-24 14:50:13 PDT cito
allow_comments 1 2011-09-24 14:50:13 PDT cito
close_date - 2011-09-24 14:50:13 PDT cito