def default_value(self):
if self.has_default:<EOL><INDENT>if hasattr(self.default, '<STR_LIT>'):<EOL><INDENT>return self.default()<EOL><DEDENT>else:<EOL><INDENT>return self.default<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise Exception("<STR_LIT>")<EOL><DEDENT>
Generate a default value

:return: the value