How to list events with "Visibility to everyone" in registration form

Hi,

The RGPD team of my university is asking me the list of events where the participant list is public. Is there a simple way to get it?

You can do it in indico shell:


for e in Event.query.all():
  print (e.id, e.title)
  if not e.registration_forms: 
     continue
  print ('visible for participants')
  for r in e.registration_forms:
     print (r.id,r.title, r.is_participant_list_visible(True))
  print ('visible for participants')
  for r in e.registration_forms:
     print (r.id,r.title, r.is_participant_list_visible(False))
```

And you probably need to check the visibibilty of the particiapnt page in the menu config as well

Thank you for the prompt answer

Looking at the code, I deduce that the first condition is ‘visibility for participants’ and de second ‘Public visibility’

for e in Event.query.all():
    print ('EVENT: ', e.id, e.title)
    if not e.registration_forms:
        continue
    print ('Visible for participants')
    for r in e.registration_forms:
        print ('FORM: ', r.id,r.title, r.is_participant_list_visible(True))
    print ('Public visibility')
    for r in e.registration_forms:
        print ('FORM: ', r.id,r.title, r.is_participant_list_visible(False))
    print('--------------------')

This means that if the participants page is active, the list appears regardless of the status of the variable is_participant_list_visible, or is the page just empty?

The list may be empty if no registration form allows listing.

My comment hinted at: If the participant page is hidden, then the other settings are not relevant.

1 Like