<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_access_control(self, mode, onerror = None):
 """Enable use of access control lists at connection setup if mode is X.EnableAccess, disable if it is X.DisableAccess."""

        request.SetAccessControl(display = self.display,
                                 onerror = onerror,
                                 mode = mode)