def process_formdata(self, valuelist):
        if valuelist:
            date_str = u' '.join(valuelist)

            for format in self.formats:
                try:
                    timetuple = time.strptime(date_str, format)
                    self.data = datetime.time(timetuple.tm_hour,
                                              timetuple.tm_min,
                                              timetuple.tm_sec)
                    return
                except __HOLE__:
                    pass

            raise ValueError(gettext('Invalid time format'))
dataset/ETHPy150Open syrusakbary/Flask-SuperAdmin/flask_superadmin/form.py/TimeField.process_formdata