def can_write(self):
sm = getSecurityManager()<EOL>permission = permissions.ModifyPortalContent<EOL>if not sm.checkPermission(permission, self.context):<EOL><INDENT>return False<EOL><DEDENT>return True<EOL>
Check if the field is writeable