def validate_port(confvar):
  port_val = confvar.get()
  error_res = [(confvar, 'Port should be an integer between 0 and 65535 (inclusive).')]
  try:
    port = int(port_val)
    if port < 0 or port > 65535:
      return error_res
  except ValueError:
    return error_res
  return [ ]
simulate behaviour of group 3 member
dataset/ETHPy150Open cloudera/hue/desktop/core/src/desktop/lib/conf.py/validate_port--crossover with--dataset/ETHPy150Open divio/django-cms/cms/tests/test_menu_page_viewperm_staff.py/ViewPermissionComplexMenuStaffNodeTests.test_node_staff_access_page_and_descendants_group_3_nostaff