def _set(self, instance, value, **kw):
logger.debug("<STR_LIT>" % value)<EOL>if not self.field.checkPermission("<STR_LIT>", instance):<EOL><INDENT>raise Unauthorized("<STR_LIT>"<EOL>.format(self.name))<EOL><DEDENT>if not self.field.writeable(instance):<EOL><INDENT>raise Unauthorized("<STR_LIT>"<EOL>.format(self.name))<EOL><DEDENT>if self.name == "<STR_LIT:id>":<EOL><INDENT>value = str(value)<EOL><DEDENT>mutator = self.field.getMutator(instance)<EOL>mapply(mutator, value, **kw)<EOL>return True<EOL>
Set the value of the field