def dbRestore(self, db_value, context=None):
<EOL>if self.testFlag(self.Flags.I18n):<EOL><INDENT>if isinstance(db_value, (str, unicode)):<EOL><INDENT>if db_value.startswith('<STR_LIT:{>'):<EOL><INDENT>try:<EOL><INDENT>value = projex.text.safe_eval(db_value)<EOL><DEDENT>except StandardError:<EOL><INDENT>value = {context.locale: db_value}<EOL><DEDENT><DEDENT>else:<EOL><INDENT>value = {context.locale: db_value}<EOL><DEDENT><DEDENT>else:<EOL><INDENT>value = db_value<EOL><DEDENT>return value<EOL><DEDENT>else:<EOL><INDENT>return db_value<EOL><DEDENT>
Converts a stored database value to Python.

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

:return: <variant>