def dbRestore(self, db_value, context=None):
if db_value is None:<EOL><INDENT>return None<EOL><DEDENT>elif isinstance(db_value, (str, unicode)):<EOL><INDENT>return self.valueFromString(db_value, context=context)<EOL><DEDENT>else:<EOL><INDENT>return super(AbstractDatetimeColumn, 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>