def dbRestore(self, db_value, context=None):
if isinstance(db_value, datetime.timedelta):<EOL><INDENT>hours, remain = divmod(db_value.seconds, <NUM_LIT>)<EOL>minutes, seconds = divmod(remain, <NUM_LIT>)<EOL>return datetime.time(hours, minutes, seconds)<EOL><DEDENT>else:<EOL><INDENT>return super(TimeColumn, self).dbRestore(db_value, context=context)<EOL><DEDENT>
Converts a stored database value to Python.

:param py_value: <variant>
:param context: <orb.Context>

:return: <variant>